ruby_rabbitmq_janus 2.2.0.pre.173 → 2.2.0.pre.177
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/rrj/errors/janus/responses/standard.rb +2 -0
- data/lib/rrj/errors/tools/gem/cluster.rb +2 -0
- data/lib/rrj/errors/tools/gem/config.rb +3 -1
- data/lib/rrj/errors/tools/gem/log.rb +2 -0
- data/spec/config/database.rb +13 -8
- data/spec/config/database.yml +1 -1
- data/spec/config/instance.rb +12 -10
- data/spec/rrj/messages/messages_message_spec.rb +1 -1
- data/spec/rrj/models/janus_instance_definition_spec.rb +8 -2
- data/spec/rrj/tools/gem/rrj_log_spec.rb +2 -2
- data/spec/support/sdp.rb +131 -131
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61b709556d831e3c858e1293e2046278c67866a5
|
4
|
+
data.tar.gz: 77303b8410e0fdceb79b0049a474b46acdf1eeb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84fab7ef2ea0b7b1d696f48d54ca1ea07f040a2e9429bf44c5e08965abe7c3cdc8fb121e91c15ab23924d2562c76995a96cba23d80efefaf649020d9a2a0ee60
|
7
|
+
data.tar.gz: ec09f77a95304c0a774d554af089c249f0c0cd2a28c0c81968c217c8e80b39367e306b9445c2e37531462f099ccfc5239243977c88f9c2900425640b1e758b70
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# :reek:IrresponsibleModule
|
4
|
+
|
3
5
|
# @author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv>
|
4
6
|
|
5
7
|
module RubyRabbitmqJanus
|
@@ -68,7 +70,7 @@ module RubyRabbitmqJanus
|
|
68
70
|
|
69
71
|
class Cluster < RubyRabbitmqJanus::Errors::Tools::BaseConfig
|
70
72
|
def initialize(parameter)
|
71
|
-
super
|
73
|
+
super "[Cluster] Cluster parameter is missing, with parameter #{parameter}", :warn
|
72
74
|
end
|
73
75
|
end
|
74
76
|
end
|
data/spec/config/database.rb
CHANGED
@@ -1,22 +1,27 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# :reek:DuplicateMethodCall
|
4
|
+
|
3
5
|
def load_active_record
|
4
6
|
# Configure active record
|
5
|
-
active_record = YAML
|
7
|
+
active_record = YAML.safe_load(File.open('./spec/config/database.yml'))
|
6
8
|
|
7
9
|
# Connect to database
|
8
10
|
ActiveRecord::Base.establish_connection(active_record)
|
9
|
-
unless ActiveRecord::Base.connection.table_exists? 'janus_instances'
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
migrate unless ActiveRecord::Base.connection.table_exists? 'janus_instances'
|
12
|
+
end
|
13
|
+
|
14
|
+
# :reek:UtilityFunction
|
15
|
+
def migrate
|
16
|
+
ActiveRecord::Base.connection.create_table(:janus_instances) do |table|
|
17
|
+
table.integer :session, limit: 8
|
18
|
+
table.boolean :enable
|
19
|
+
table.integer :thread, limit: 8
|
15
20
|
end
|
16
21
|
end
|
17
22
|
|
23
|
+
# :reek:UtilityFunction
|
18
24
|
def load_mongo
|
19
|
-
# DatabaseCleaner[:mongoid, { connection: :test }]
|
20
25
|
Mongoid.load!('./spec/config/mongoid.yml', :test)
|
21
26
|
end
|
22
27
|
|
data/spec/config/database.yml
CHANGED
data/spec/config/instance.rb
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# :reek:TooManyStatements
|
4
|
+
# :reek:UtilityFunction
|
5
|
+
|
3
6
|
def create_janus_instances
|
4
7
|
instance = RubyRabbitmqJanus::Models::JanusInstance
|
5
8
|
|
6
9
|
(1..2).each do |number|
|
7
|
-
id_instance =
|
8
|
-
{ _id: number.to_s }
|
9
|
-
else
|
10
|
-
{ id: number }
|
11
|
-
end
|
10
|
+
id_instance = ENV['MONGO'].match?('true') ? { _id: number.to_s } : { id: number }
|
12
11
|
janus = instance.create(id_instance.merge(enable: true))
|
13
12
|
janus.save
|
14
13
|
end
|
@@ -43,13 +42,16 @@ def clear
|
|
43
42
|
@options = {}
|
44
43
|
end
|
45
44
|
|
45
|
+
# :reek:NilCheck
|
46
46
|
def find_instance
|
47
47
|
janus_instance = RubyRabbitmqJanus::Models::JanusInstance.all.sample
|
48
|
-
unless janus_instance.nil?
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
48
|
+
define_variables(janus_instance) unless janus_instance.nil?
|
49
|
+
end
|
50
|
+
|
51
|
+
def define_variables(janus_instance)
|
52
|
+
@session = { 'session_id' => janus_instance.session_id }
|
53
|
+
@instance = { 'instance' => janus_instance.instance }
|
54
|
+
@session_instance = @session.merge(@instance)
|
53
55
|
end
|
54
56
|
|
55
57
|
def initializer_rrj(metadata)
|
@@ -4,7 +4,7 @@ require 'spec_helper'
|
|
4
4
|
|
5
5
|
describe RubyRabbitmqJanus::Janus::Messages::Message, type: :messages,
|
6
6
|
name: :message do
|
7
|
-
before { @gateway }
|
7
|
+
before { @gateway }
|
8
8
|
let(:template) { 'base::info' }
|
9
9
|
let(:msg_new) { RubyRabbitmqJanus::Janus::Messages::Message.new(template) }
|
10
10
|
|
@@ -9,10 +9,16 @@ describe RubyRabbitmqJanus::Models::JanusInstance, type: :model,
|
|
9
9
|
context 'Janus Instance model definition' do
|
10
10
|
if ENV['MONGO'].match?('true')
|
11
11
|
it { expect(model.attribute_names).to include('_id') }
|
12
|
-
it
|
12
|
+
it do
|
13
|
+
parameter = { 'id' => '_id', 'session_id' => 'session', 'thread_id' => 'thread', 'instance' => '_id' }
|
14
|
+
expect(model.aliased_fields).to eq(parameter)
|
15
|
+
end
|
13
16
|
else
|
14
17
|
it { expect(model.attribute_names).to include('id') }
|
15
|
-
it
|
18
|
+
it do
|
19
|
+
parameter = { 'instance' => 'id', 'session_id' => 'session', 'thread_id' => 'thread' }
|
20
|
+
expect(model.attribute_aliases).to eq(parameter)
|
21
|
+
end
|
16
22
|
end
|
17
23
|
it { expect(model.attribute_names).to include('session') }
|
18
24
|
it { expect(model.attribute_names).to include('enable') }
|
@@ -3,7 +3,7 @@
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
5
|
describe 'RubyRabbitmqJanus::Log', type: :tools, name: :log do
|
6
|
-
let(:levels)
|
6
|
+
let(:levels) do
|
7
7
|
{
|
8
8
|
DEBUG: Logger::DEBUG,
|
9
9
|
INFO: Logger::INFO,
|
@@ -12,7 +12,7 @@ describe 'RubyRabbitmqJanus::Log', type: :tools, name: :log do
|
|
12
12
|
FATAL: Logger::FATAL,
|
13
13
|
UNKNOWN: Logger::UNKNOWN
|
14
14
|
}
|
15
|
-
|
15
|
+
end
|
16
16
|
let(:sensitives) { %i[admin_secret apisecret] }
|
17
17
|
let(:log) { RubyRabbitmqJanus::Tools::Log.instance }
|
18
18
|
let(:log_constant) { RubyRabbitmqJanus::Tools::Log }
|
data/spec/support/sdp.rb
CHANGED
@@ -1,136 +1,136 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
SDP_OFFER
|
4
|
-
v=0
|
5
|
-
o=- 7041456084360858977 2 IN IP4 127.0.0.1
|
6
|
-
s=-
|
7
|
-
t=0 0
|
8
|
-
a=group:BUNDLE audio video
|
9
|
-
a=msid-semantic: WMS 2jKToeOlpzKTn7anwnHOJmzFyhvEYt1kpcMY
|
10
|
-
m=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 126
|
11
|
-
c=IN IP4 0.0.0.0
|
12
|
-
a=rtcp:9 IN IP4 0.0.0.0
|
13
|
-
a=ice-ufrag:T9QI
|
14
|
-
a=ice-pwd:s9YvfGuavTZN0Lqc53JNInEP
|
15
|
-
a=fingerprint:sha-256 6D:ED:BC:93:AC:EC:C2:29:03:7D:6A:60:9F:D3:F5:A1:6D:1A:38:CE:F0:C0:EC:C8:5D:87:19:19:BE:0F:89:BB
|
16
|
-
a=setup:actpass
|
17
|
-
a=mid:audio
|
18
|
-
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
|
19
|
-
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
|
20
|
-
a=sendonly
|
21
|
-
a=rtcp-mux
|
22
|
-
a=rtpmap:111 opus/48000/2
|
23
|
-
a=rtcp-fb:111 transport-cc
|
24
|
-
a=fmtp:111 minptime=10;useinbandfec=1
|
25
|
-
a=rtpmap:103 ISAC/16000
|
26
|
-
a=rtpmap:104 ISAC/32000
|
27
|
-
a=rtpmap:9 G722/8000
|
28
|
-
a=rtpmap:0 PCMU/8000
|
29
|
-
a=rtpmap:8 PCMA/8000
|
30
|
-
a=rtpmap:106 CN/32000
|
31
|
-
a=rtpmap:105 CN/16000
|
32
|
-
a=rtpmap:13 CN/8000
|
33
|
-
a=rtpmap:126 telephone-event/8000
|
34
|
-
a=ssrc:2786155512 cname:/+YL75rdcn+UKbf9
|
35
|
-
a=ssrc:2786155512 msid:2jKToeOlpzKTn7anwnHOJmzFyhvEYt1kpcMY e0f2490b-468a-4abc-9770-a5f99b13c152
|
36
|
-
a=ssrc:2786155512 mslabel:2jKToeOlpzKTn7anwnHOJmzFyhvEYt1kpcMY
|
37
|
-
a=ssrc:2786155512 label:e0f2490b-468a-4abc-9770-a5f99b13c152
|
38
|
-
m=video 9 UDP/TLS/RTP/SAVPF 100 101 107 116 117 96 97 99 98
|
39
|
-
c=IN IP4 0.0.0.0
|
40
|
-
a=rtcp:9 IN IP4 0.0.0.0
|
41
|
-
a=ice-ufrag:T9QI
|
42
|
-
a=ice-pwd:s9YvfGuavTZN0Lqc53JNInEP
|
43
|
-
a=fingerprint:sha-256 6D:ED:BC:93:AC:EC:C2:29:03:7D:6A:60:9F:D3:F5:A1:6D:1A:38:CE:F0:C0:EC:C8:5D:87:19:19:BE:0F:89:BB
|
44
|
-
a=setup:actpass
|
45
|
-
a=mid:video
|
46
|
-
a=extmap:2 urn:ietf:params:rtp-hdrext:toffset
|
47
|
-
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
|
48
|
-
a=extmap:4 urn:3gpp:video-orientation
|
49
|
-
a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
|
50
|
-
a=sendonly
|
51
|
-
a=rtcp-mux
|
52
|
-
a=rtcp-rsize
|
53
|
-
a=rtpmap:100 VP8/90000
|
54
|
-
a=rtcp-fb:100 ccm fir
|
55
|
-
a=rtcp-fb:100 nack
|
56
|
-
a=rtcp-fb:100 nack pli
|
57
|
-
a=rtcp-fb:100 goog-remb
|
58
|
-
a=rtcp-fb:100 transport-cc
|
59
|
-
a=rtpmap:101 VP9/90000
|
60
|
-
a=rtcp-fb:101 ccm fir
|
61
|
-
a=rtcp-fb:101 nack
|
62
|
-
a=rtcp-fb:101 nack pli
|
63
|
-
a=rtcp-fb:101 goog-remb
|
64
|
-
a=rtcp-fb:101 transport-cc
|
65
|
-
a=rtpmap:107 H264/90000
|
66
|
-
a=rtcp-fb:107 ccm fir
|
67
|
-
a=rtcp-fb:107 nack
|
68
|
-
a=rtcp-fb:107 nack pli
|
69
|
-
a=rtcp-fb:107 goog-remb
|
70
|
-
a=rtcp-fb:107 transport-cc
|
71
|
-
a=fmtp:107 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
|
72
|
-
a=rtpmap:116 red/90000
|
73
|
-
a=rtpmap:117 ulpfec/90000
|
74
|
-
a=rtpmap:96 rtx/90000
|
75
|
-
a=fmtp:96 apt=100
|
76
|
-
a=rtpmap:97 rtx/90000
|
77
|
-
a=fmtp:97 apt=101
|
78
|
-
a=rtpmap:99 rtx/90000
|
79
|
-
a=fmtp:99 apt=107
|
80
|
-
a=rtpmap:98 rtx/90000
|
81
|
-
a=fmtp:98 apt=116
|
82
|
-
a=ssrc-group:FID 1022811670 258141567
|
83
|
-
a=ssrc:1022811670 cname:/+YL75rdcn+UKbf9
|
84
|
-
a=ssrc:1022811670 msid:2jKToeOlpzKTn7anwnHOJmzFyhvEYt1kpcMY 25d58816-114a-41d2-aa08-1039e09f942f
|
85
|
-
a=ssrc:1022811670 mslabel:2jKToeOlpzKTn7anwnHOJmzFyhvEYt1kpcMY
|
86
|
-
a=ssrc:1022811670 label:25d58816-114a-41d2-aa08-1039e09f942f
|
87
|
-
a=ssrc:258141567 cname:/+YL75rdcn+UKbf9
|
88
|
-
a=ssrc:258141567 msid:2jKToeOlpzKTn7anwnHOJmzFyhvEYt1kpcMY 25d58816-114a-41d2-aa08-1039e09f942f
|
89
|
-
a=ssrc:258141567 mslabel:2jKToeOlpzKTn7anwnHOJmzFyhvEYt1kpcMY
|
90
|
-
a=ssrc:258141567 label:25d58816-114a-41d2-aa08-1039e09f942f
|
3
|
+
SDP_OFFER = <<~EOF
|
4
|
+
v=0
|
5
|
+
o=- 7041456084360858977 2 IN IP4 127.0.0.1
|
6
|
+
s=-
|
7
|
+
t=0 0
|
8
|
+
a=group:BUNDLE audio video
|
9
|
+
a=msid-semantic: WMS 2jKToeOlpzKTn7anwnHOJmzFyhvEYt1kpcMY
|
10
|
+
m=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 126
|
11
|
+
c=IN IP4 0.0.0.0
|
12
|
+
a=rtcp:9 IN IP4 0.0.0.0
|
13
|
+
a=ice-ufrag:T9QI
|
14
|
+
a=ice-pwd:s9YvfGuavTZN0Lqc53JNInEP
|
15
|
+
a=fingerprint:sha-256 6D:ED:BC:93:AC:EC:C2:29:03:7D:6A:60:9F:D3:F5:A1:6D:1A:38:CE:F0:C0:EC:C8:5D:87:19:19:BE:0F:89:BB
|
16
|
+
a=setup:actpass
|
17
|
+
a=mid:audio
|
18
|
+
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
|
19
|
+
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
|
20
|
+
a=sendonly
|
21
|
+
a=rtcp-mux
|
22
|
+
a=rtpmap:111 opus/48000/2
|
23
|
+
a=rtcp-fb:111 transport-cc
|
24
|
+
a=fmtp:111 minptime=10;useinbandfec=1
|
25
|
+
a=rtpmap:103 ISAC/16000
|
26
|
+
a=rtpmap:104 ISAC/32000
|
27
|
+
a=rtpmap:9 G722/8000
|
28
|
+
a=rtpmap:0 PCMU/8000
|
29
|
+
a=rtpmap:8 PCMA/8000
|
30
|
+
a=rtpmap:106 CN/32000
|
31
|
+
a=rtpmap:105 CN/16000
|
32
|
+
a=rtpmap:13 CN/8000
|
33
|
+
a=rtpmap:126 telephone-event/8000
|
34
|
+
a=ssrc:2786155512 cname:/+YL75rdcn+UKbf9
|
35
|
+
a=ssrc:2786155512 msid:2jKToeOlpzKTn7anwnHOJmzFyhvEYt1kpcMY e0f2490b-468a-4abc-9770-a5f99b13c152
|
36
|
+
a=ssrc:2786155512 mslabel:2jKToeOlpzKTn7anwnHOJmzFyhvEYt1kpcMY
|
37
|
+
a=ssrc:2786155512 label:e0f2490b-468a-4abc-9770-a5f99b13c152
|
38
|
+
m=video 9 UDP/TLS/RTP/SAVPF 100 101 107 116 117 96 97 99 98
|
39
|
+
c=IN IP4 0.0.0.0
|
40
|
+
a=rtcp:9 IN IP4 0.0.0.0
|
41
|
+
a=ice-ufrag:T9QI
|
42
|
+
a=ice-pwd:s9YvfGuavTZN0Lqc53JNInEP
|
43
|
+
a=fingerprint:sha-256 6D:ED:BC:93:AC:EC:C2:29:03:7D:6A:60:9F:D3:F5:A1:6D:1A:38:CE:F0:C0:EC:C8:5D:87:19:19:BE:0F:89:BB
|
44
|
+
a=setup:actpass
|
45
|
+
a=mid:video
|
46
|
+
a=extmap:2 urn:ietf:params:rtp-hdrext:toffset
|
47
|
+
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
|
48
|
+
a=extmap:4 urn:3gpp:video-orientation
|
49
|
+
a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
|
50
|
+
a=sendonly
|
51
|
+
a=rtcp-mux
|
52
|
+
a=rtcp-rsize
|
53
|
+
a=rtpmap:100 VP8/90000
|
54
|
+
a=rtcp-fb:100 ccm fir
|
55
|
+
a=rtcp-fb:100 nack
|
56
|
+
a=rtcp-fb:100 nack pli
|
57
|
+
a=rtcp-fb:100 goog-remb
|
58
|
+
a=rtcp-fb:100 transport-cc
|
59
|
+
a=rtpmap:101 VP9/90000
|
60
|
+
a=rtcp-fb:101 ccm fir
|
61
|
+
a=rtcp-fb:101 nack
|
62
|
+
a=rtcp-fb:101 nack pli
|
63
|
+
a=rtcp-fb:101 goog-remb
|
64
|
+
a=rtcp-fb:101 transport-cc
|
65
|
+
a=rtpmap:107 H264/90000
|
66
|
+
a=rtcp-fb:107 ccm fir
|
67
|
+
a=rtcp-fb:107 nack
|
68
|
+
a=rtcp-fb:107 nack pli
|
69
|
+
a=rtcp-fb:107 goog-remb
|
70
|
+
a=rtcp-fb:107 transport-cc
|
71
|
+
a=fmtp:107 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
|
72
|
+
a=rtpmap:116 red/90000
|
73
|
+
a=rtpmap:117 ulpfec/90000
|
74
|
+
a=rtpmap:96 rtx/90000
|
75
|
+
a=fmtp:96 apt=100
|
76
|
+
a=rtpmap:97 rtx/90000
|
77
|
+
a=fmtp:97 apt=101
|
78
|
+
a=rtpmap:99 rtx/90000
|
79
|
+
a=fmtp:99 apt=107
|
80
|
+
a=rtpmap:98 rtx/90000
|
81
|
+
a=fmtp:98 apt=116
|
82
|
+
a=ssrc-group:FID 1022811670 258141567
|
83
|
+
a=ssrc:1022811670 cname:/+YL75rdcn+UKbf9
|
84
|
+
a=ssrc:1022811670 msid:2jKToeOlpzKTn7anwnHOJmzFyhvEYt1kpcMY 25d58816-114a-41d2-aa08-1039e09f942f
|
85
|
+
a=ssrc:1022811670 mslabel:2jKToeOlpzKTn7anwnHOJmzFyhvEYt1kpcMY
|
86
|
+
a=ssrc:1022811670 label:25d58816-114a-41d2-aa08-1039e09f942f
|
87
|
+
a=ssrc:258141567 cname:/+YL75rdcn+UKbf9
|
88
|
+
a=ssrc:258141567 msid:2jKToeOlpzKTn7anwnHOJmzFyhvEYt1kpcMY 25d58816-114a-41d2-aa08-1039e09f942f
|
89
|
+
a=ssrc:258141567 mslabel:2jKToeOlpzKTn7anwnHOJmzFyhvEYt1kpcMY
|
90
|
+
a=ssrc:258141567 label:25d58816-114a-41d2-aa08-1039e09f942f
|
91
91
|
EOF
|
92
92
|
|
93
|
-
SDP_ANSWER =
|
94
|
-
v=0
|
95
|
-
o=- 7041456084360858977 2 IN IP4 127.0.0.1
|
96
|
-
s=-
|
97
|
-
t=0 0
|
98
|
-
a=group:BUNDLE audio video
|
99
|
-
a=msid-semantic: WMS 2jKToeOlpzKTn7anwnHOJmzFyhvEYt1kpcMY
|
100
|
-
m=audio 9 UDP/TLS/RTP/SAVPF 111
|
101
|
-
c=IN IP4 0.0.0.0
|
102
|
-
a=rtcp:9 IN IP4 0.0.0.0
|
103
|
-
a=ice-ufrag:T9QI
|
104
|
-
a=ice-pwd:s9YvfGuavTZN0Lqc53JNInEP
|
105
|
-
a=fingerprint:sha-256 6D:ED:BC:93:AC:EC:C2:29:03:7D:6A:60:9F:D3:F5:A1:6D:1A:38:CE:F0:C0:EC:C8:5D:87:19:19:BE:0F:89:BB
|
106
|
-
a=setup:actpass
|
107
|
-
a=mid:audio
|
108
|
-
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
|
109
|
-
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
|
110
|
-
a=sendonly
|
111
|
-
a=rtcp-mux
|
112
|
-
a=rtpmap:111 opus/48000/2
|
113
|
-
a=rtcp-fb:111 transport-cc
|
114
|
-
a=fmtp:111 minptime=10;useinbandfec=1
|
115
|
-
m=video 9 UDP/TLS/RTP/SAVPF 100
|
116
|
-
c=IN IP4 0.0.0.0
|
117
|
-
a=rtcp:9 IN IP4 0.0.0.0
|
118
|
-
a=ice-ufrag:T9QI
|
119
|
-
a=ice-pwd:s9YvfGuavTZN0Lqc53JNInEP
|
120
|
-
a=fingerprint:sha-256 6D:ED:BC:93:AC:EC:C2:29:03:7D:6A:60:9F:D3:F5:A1:6D:1A:38:CE:F0:C0:EC:C8:5D:87:19:19:BE:0F:89:BB
|
121
|
-
a=setup:actpass
|
122
|
-
a=mid:video
|
123
|
-
a=extmap:2 urn:ietf:params:rtp-hdrext:toffset
|
124
|
-
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
|
125
|
-
a=extmap:4 urn:3gpp:video-orientation
|
126
|
-
a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
|
127
|
-
a=sendonly
|
128
|
-
a=rtcp-mux
|
129
|
-
a=rtcp-rsize
|
130
|
-
a=rtpmap:100 VP8/90000
|
131
|
-
a=rtcp-fb:100 ccm fir
|
132
|
-
a=rtcp-fb:100 nack
|
133
|
-
a=rtcp-fb:100 nack pli
|
134
|
-
a=rtcp-fb:100 goog-remb
|
135
|
-
a=rtcp-fb:100 transport-cc
|
93
|
+
SDP_ANSWER = <<~SDP
|
94
|
+
v=0
|
95
|
+
o=- 7041456084360858977 2 IN IP4 127.0.0.1
|
96
|
+
s=-
|
97
|
+
t=0 0
|
98
|
+
a=group:BUNDLE audio video
|
99
|
+
a=msid-semantic: WMS 2jKToeOlpzKTn7anwnHOJmzFyhvEYt1kpcMY
|
100
|
+
m=audio 9 UDP/TLS/RTP/SAVPF 111
|
101
|
+
c=IN IP4 0.0.0.0
|
102
|
+
a=rtcp:9 IN IP4 0.0.0.0
|
103
|
+
a=ice-ufrag:T9QI
|
104
|
+
a=ice-pwd:s9YvfGuavTZN0Lqc53JNInEP
|
105
|
+
a=fingerprint:sha-256 6D:ED:BC:93:AC:EC:C2:29:03:7D:6A:60:9F:D3:F5:A1:6D:1A:38:CE:F0:C0:EC:C8:5D:87:19:19:BE:0F:89:BB
|
106
|
+
a=setup:actpass
|
107
|
+
a=mid:audio
|
108
|
+
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
|
109
|
+
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
|
110
|
+
a=sendonly
|
111
|
+
a=rtcp-mux
|
112
|
+
a=rtpmap:111 opus/48000/2
|
113
|
+
a=rtcp-fb:111 transport-cc
|
114
|
+
a=fmtp:111 minptime=10;useinbandfec=1
|
115
|
+
m=video 9 UDP/TLS/RTP/SAVPF 100
|
116
|
+
c=IN IP4 0.0.0.0
|
117
|
+
a=rtcp:9 IN IP4 0.0.0.0
|
118
|
+
a=ice-ufrag:T9QI
|
119
|
+
a=ice-pwd:s9YvfGuavTZN0Lqc53JNInEP
|
120
|
+
a=fingerprint:sha-256 6D:ED:BC:93:AC:EC:C2:29:03:7D:6A:60:9F:D3:F5:A1:6D:1A:38:CE:F0:C0:EC:C8:5D:87:19:19:BE:0F:89:BB
|
121
|
+
a=setup:actpass
|
122
|
+
a=mid:video
|
123
|
+
a=extmap:2 urn:ietf:params:rtp-hdrext:toffset
|
124
|
+
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
|
125
|
+
a=extmap:4 urn:3gpp:video-orientation
|
126
|
+
a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
|
127
|
+
a=sendonly
|
128
|
+
a=rtcp-mux
|
129
|
+
a=rtcp-rsize
|
130
|
+
a=rtpmap:100 VP8/90000
|
131
|
+
a=rtcp-fb:100 ccm fir
|
132
|
+
a=rtcp-fb:100 nack
|
133
|
+
a=rtcp-fb:100 nack pli
|
134
|
+
a=rtcp-fb:100 goog-remb
|
135
|
+
a=rtcp-fb:100 transport-cc
|
136
136
|
SDP
|