ruby_rabbitmq_janus 1.2.5 → 1.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/requests/peer/trickles.json +7 -0
- data/lib/rrj/info.rb +1 -1
- data/lib/rrj/tools/replaces/standard.rb +10 -23
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a70cf1e631886fb8abe670a48fba99cf51d97955
|
4
|
+
data.tar.gz: 7fd9f966d2705f2ae068ae5865ae148ff91f3e18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b144c4d07e028cc100636fbdd590dd4e52858c6fe905d8df199d068441ea102cde01eb68b0261aaed02a934f1fb0d2a9a87d21059772b8a0845c012b23831a0c
|
7
|
+
data.tar.gz: 69697a0f967fde7c64269f0938cbb9ad36bcc5320b7c2e8b7bdfdd6e95e90266c394886f2c959da3e26249484e3c94b55931b88da60880a73679240f3159dc90
|
data/lib/rrj/info.rb
CHANGED
@@ -12,6 +12,7 @@ module RubyRabbitmqJanus
|
|
12
12
|
def replace_classic
|
13
13
|
super
|
14
14
|
replace_handle if request.key?('handle_id')
|
15
|
+
replace_candidates if request.key?('candidates')
|
15
16
|
replace_candidate if request.key?('candidate')
|
16
17
|
replace_sdp if request.key?('jsep')
|
17
18
|
end
|
@@ -23,9 +24,16 @@ module RubyRabbitmqJanus
|
|
23
24
|
Tools::Log.instance.warn "Error handle replace : #{message}"
|
24
25
|
end
|
25
26
|
|
26
|
-
# Replace
|
27
|
+
# Replace candidates
|
28
|
+
def replace_candidates
|
29
|
+
request['candidates'] = opts['replace']['candidates']
|
30
|
+
rescue => message
|
31
|
+
Tools::Log.instance.warn "Error candidate replace : #{message}"
|
32
|
+
end
|
33
|
+
|
34
|
+
# Replace candidate
|
27
35
|
def replace_candidate
|
28
|
-
|
36
|
+
request['candidate'] = opts['replace']['candidate']
|
29
37
|
rescue => message
|
30
38
|
Tools::Log.instance.warn "Error candidate replace : #{message}"
|
31
39
|
end
|
@@ -37,27 +45,6 @@ module RubyRabbitmqJanus
|
|
37
45
|
Tools::Log.instance.warn "Error sdp replace : #{message}"
|
38
46
|
end
|
39
47
|
|
40
|
-
# Save candidate or candidates in request
|
41
|
-
def save_candidate(value)
|
42
|
-
if opts.key?('candidates')
|
43
|
-
request['candidates'] = value
|
44
|
-
else
|
45
|
-
request['candidate'] = value
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
|
-
# Test candidates or candidate
|
50
|
-
def candidates?
|
51
|
-
options = opts['replace']
|
52
|
-
if options.key?('candidates')
|
53
|
-
request['candidates'] = request['candidate']
|
54
|
-
request.delete('candidate')
|
55
|
-
options['candidates']
|
56
|
-
else
|
57
|
-
options['candidate']
|
58
|
-
end
|
59
|
-
end
|
60
|
-
|
61
48
|
# Replace other element in request
|
62
49
|
def replace_other
|
63
50
|
values = opts['replace']
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_rabbitmq_janus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- VAILLANT Jeremy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -310,6 +310,7 @@ files:
|
|
310
310
|
- config/requests/peer/answer.json
|
311
311
|
- config/requests/peer/offer.json
|
312
312
|
- config/requests/peer/trickle.json
|
313
|
+
- config/requests/peer/trickles.json
|
313
314
|
- lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
|
314
315
|
- lib/generators/ruby_rabbitmq_janus/create_request_generator.rb
|
315
316
|
- lib/generators/ruby_rabbitmq_janus/default_request_generator.rb
|