问题:dtx打开后订阅没有声音

非 Y 不嫁゛ 提交于 2020-02-07 00:06:26

未打开dtx时:

推流:

v=0
o=- 8155467687897462485 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0
a=msid-semantic: WMS stream_id
m=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 102 0 8 106 105 13 110 112 113 126
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:ujEi
a=ice-pwd:tgWqJZt1eWauIk+z7I62NjiE
a=ice-options:trickle
a=fingerprint:sha-256 26:9B:97:4E:53:FB:DD:C5:97:8D:62:50:1D:88:FD:CC:AE:1C:75:CC:64:47:51:A8:56:4F:55:6B:31:F2:20:15
a=setup:actpass
a=mid:0
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=sendonly
a=msid:stream_id audio_label
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:102 ILBC/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:112 telephone-event/32000
a=rtpmap:113 telephone-event/16000
a=rtpmap:126 telephone-event/8000
a=ssrc:91619396 cname:tJjk3m2s24XfEbkT
a=ssrc:91619396 msid:stream_id audio_label
a=ssrc:91619396 mslabel:stream_id
a=ssrc:91619396 label:audio_label

********************************************

v=0
o=- 8155467687897462485 2 IN IP4 120.24.60.187
s=VideoRoom 0
t=0 0
a=group:BUNDLE 0
a=msid-semantic: WMS janus
m=audio 9 UDP/TLS/RTP/SAVPF 111
c=IN IP4 120.24.60.187
a=recvonly
a=mid:0
a=rtcp-mux
a=ice-ufrag:32FU
a=ice-pwd:KetmlEXMpWb3UUHho4ZTX1
a=ice-options:trickle
a=fingerprint:sha-256 D2:B9:31:8F:DF:24:D8:0E:ED:D2:EF:25:9E:AF:6F:B8:34:AE:53:9C:E6:F3:8F:F2:64:15:FA:E8:7F:53:2D:38
a=setup:active
a=rtpmap:111 opus/48000/2
a=fmtp:111 useinbandfec=1
a=candidate:1 1 udp 2013266431 172.25.0.37 15928 typ host
a=candidate:2 1 udp 1677722111 120.24.60.187 15928 typ srflx raddr 172.25.0.37 rport 15928
a=end-of-candidates

订阅:

v=0
o=- 785276820297665115 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0
a=msid-semantic: WMS
m=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 102 0 8 106 105 13 110 112 113 126
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:BvMy
a=ice-pwd:BDk32p1111WCKf4u5rE8ltjz
a=ice-options:trickle
a=fingerprint:sha-256 3C:05:89:FE:71:F1:FC:28:5E:24:BE:1E:80:A5:EF:16:36:1A:CC:65:40:C1:63:83:23:4B:7E:E5:BC:56:6F:A6
a=setup:actpass
a=mid:0
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=recvonly
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:102 ILBC/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:112 telephone-event/32000
a=rtpmap:113 telephone-event/16000
a=rtpmap:126 telephone-event/8000

***************************************

v=0
o=- 1581003029264595 1 IN IP4 120.24.60.187
s=VideoRoom 0
t=0 0
a=group:BUNDLE 0
a=msid-semantic: WMS janus
m=audio 9 UDP/TLS/RTP/SAVPF 111
c=IN IP4 120.24.60.187
a=sendonly
a=mid:0
a=rtcp-mux
a=ice-ufrag:k00f
a=ice-pwd:rFeD8zMahXP5maEs6U7/jX
a=ice-options:trickle
a=fingerprint:sha-256 D2:B9:31:8F:DF:24:D8:0E:ED:D2:EF:25:9E:AF:6F:B8:34:AE:53:9C:E6:F3:8F:F2:64:15:FA:E8:7F:53:2D:38
a=setup:active
a=rtpmap:111 opus/48000/2
a=fmtp:111 useinbandfec=1
a=ssrc:3914013539 cname:janusaudio
a=ssrc:3914013539 msid:janus janusa0
a=ssrc:3914013539 mslabel:janus
a=ssrc:3914013539 label:janusa0
a=candidate:1 1 udp 2013266431 172.25.0.37 15541 typ host
a=candidate:2 1 udp 1677722111 120.24.60.187 15541 typ srflx raddr 172.25.0.37 rport 15541
a=end-of-candidates

打开dtx时:

rtp包会在E:\webrtc-checkout\webrtc\src\audio\channel_receive.cc-OnRtpPacket因找不到编码器而丢弃

  const auto& it = payload_type_frequencies_.find(packet.PayloadType());
  if (it == payload_type_frequencies_.end())
    return;

推流:

v=0
o=- 1579512236441539021 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0
a=msid-semantic: WMS stream_id
m=audio 9 UDP/TLS/RTP/SAVPF 96 103 104 9 102 0 8 106 105 13 110 112 113 126
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:jkUu
a=ice-pwd:fUwxMu4JoAK88edFKISUfasU
a=ice-options:trickle
a=fingerprint:sha-256 D7:CF:0D:9D:7F:B6:EC:80:F1:F1:6F:5F:72:6A:4A:1C:3D:97:5A:3C:0A:A5:0D:AA:F9:FB:1F:06:0C:AF:43:8F
a=setup:actpass
a=mid:0
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=sendonly
a=msid:stream_id audio_label
a=rtcp-mux
a=rtpmap:96 opus/48000/2
a=rtcp-fb:96 transport-cc
a=fmtp:96 minptime=10;usedtx=1;useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:102 ILBC/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:112 telephone-event/32000
a=rtpmap:113 telephone-event/16000
a=rtpmap:126 telephone-event/8000
a=ssrc:3969198492 cname:RbwJRYnnvDufut7R
a=ssrc:3969198492 msid:stream_id audio_label
a=ssrc:3969198492 mslabel:stream_id
a=ssrc:3969198492 label:audio_label

**********************************

v=0
o=- 1579512236441539021 2 IN IP4 120.24.60.187
s=VideoRoom 0
t=0 0
a=group:BUNDLE 0
a=msid-semantic: WMS janus
m=audio 9 UDP/TLS/RTP/SAVPF 96
c=IN IP4 120.24.60.187
a=recvonly
a=mid:0
a=rtcp-mux
a=ice-ufrag:/wfc
a=ice-pwd:PzLfHlS22YjLqp8+KrMOlZ
a=ice-options:trickle
a=fingerprint:sha-256 D2:B9:31:8F:DF:24:D8:0E:ED:D2:EF:25:9E:AF:6F:B8:34:AE:53:9C:E6:F3:8F:F2:64:15:FA:E8:7F:53:2D:38
a=setup:active
a=rtpmap:96 opus/48000/2
a=fmtp:96 useinbandfec=1;usedtx=1
a=candidate:1 1 udp 2013266431 172.25.0.37 19601 typ host
a=candidate:2 1 udp 1677722111 120.24.60.187 19601 typ srflx raddr 172.25.0.37 rport 19601
a=end-of-candidates

订阅:

v=0
o=- 3720588689885472729 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0
a=msid-semantic: WMS
m=audio 9 UDP/TLS/RTP/SAVPF 96 103 104 9 102 0 8 106 105 13 110 112 113 126
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:JUJP
a=ice-pwd:k8QKVQLROATIdVBZUL0TCxVj
a=ice-options:trickle
a=fingerprint:sha-256 3A:9A:15:DA:E7:DF:97:D4:C4:CD:EB:A1:10:36:24:CE:7A:FE:D4:69:FC:14:D2:6C:6B:9D:B5:38:20:8F:D6:3A
a=setup:actpass
a=mid:0
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=recvonly
a=rtcp-mux
a=rtpmap:96 opus/48000/2
a=rtcp-fb:96 transport-cc
a=fmtp:96 minptime=10;usedtx=1;useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:102 ILBC/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:112 telephone-event/32000
a=rtpmap:113 telephone-event/16000
a=rtpmap:126 telephone-event/8000


**************************************


v=0
o=- 1581002379465633 1 IN IP4 120.24.60.187
s=VideoRoom 0
t=0 0
a=group:BUNDLE 0
a=msid-semantic: WMS janus
m=audio 9 UDP/TLS/RTP/SAVPF 111
c=IN IP4 120.24.60.187
a=sendonly
a=mid:0
a=rtcp-mux
a=ice-ufrag:aH6Z
a=ice-pwd:IZC2IBO8rALtwCmdWuope+
a=ice-options:trickle
a=fingerprint:sha-256 D2:B9:31:8F:DF:24:D8:0E:ED:D2:EF:25:9E:AF:6F:B8:34:AE:53:9C:E6:F3:8F:F2:64:15:FA:E8:7F:53:2D:38
a=setup:active
a=rtpmap:111 opus/48000/2
a=fmtp:111 useinbandfec=1;usedtx=1
a=ssrc:3023736237 cname:janusaudio
a=ssrc:3023736237 msid:janus janusa0
a=ssrc:3023736237 mslabel:janus
a=ssrc:3023736237 label:janusa0
a=candidate:1 1 udp 2013266431 172.25.0.37 17313 typ host
a=candidate:2 1 udp 1677722111 120.24.60.187 17313 typ srflx raddr 172.25.0.37 rport 17313
a=end-of-candidates

待续

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!