在WebRTC视频和音频流的情况下浏览器实现之间的差异

时间:2018-07-13 13:01:33

标签: javascript c++ webrtc

我想问一下,使用webrtc视频和音频插入的浏览器实现之间有什么区别。就我而言,它是Chrome和Firefox。问题是我使用WebRTC在Firefox上冻结了视频和音频。 Chrome,Opera和Chromium都可以正常运行,但Firefox除外。我将视频从应用程序传输到浏览器。如果我从Firefox连接到本地网络,那么一切也都可以正常工作。当我从外部网络通过Firefox连接时,我收到必须应用电击并打开服务器的消息。我从应用程序和浏览器两方面添加了它们。流持续几秒钟并冻结,这就是为什么我询问实现的原因。在一个浏览器中,我不需要眩晕,在其他浏览器中,我会收到错误消息。一个浏览器可以正常播放视频,另一个可以冻结。对我来说,最新的Firefox工作版本是50.0。我测试了从51到61-不起作用。需要你的帮助。谢谢。 这是从外部网络通过Chrome连接时的sdp。

浏览器:

    type: offer, sdp: v=0
    o=- 7419868893587265840 2 IN IP4 127.0.0.1
    s=-
    t=0 0
    a=group:BUNDLE audio video
    a=msid-semantic: WMS
    m=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 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:Hjfo
    a=ice-pwd:Wdhqc/B4zD3T0OTi2HivQvkk
    a=ice-options:trickle
    a=fingerprint:sha-256 7E:68:AC:90:14:B3:95:0F:00:97:B5:DA:81:4F:BB:EA:65:BD:B2:CB:EB:A9:89:54:3D:90:16:83:D9:3C:21:03
    a=setup:actpass
    a=mid:audio
    a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
    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: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
    m=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 102 124 127 123 125
    c=IN IP4 0.0.0.0
    a=rtcp:9 IN IP4 0.0.0.0
    a=ice-ufrag:Hjfo
    a=ice-pwd:Wdhqc/B4zD3T0OTi2HivQvkk
    a=ice-options:trickle
    a=fingerprint:sha-256 7E:68:AC:90:14:B3:95:0F:00:97:B5:DA:81:4F:BB:EA:65:BD:B2:CB:EB:A9:89:54:3D:90:16:83:D9:3C:21:03
    a=setup:actpass
    a=mid:video
    a=extmap:2 urn:ietf:params:rtp-hdrext:toffset
    a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
    a=extmap:4 urn:3gpp:video-orientation
    a=extmap:5 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
    a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
    a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type
    a=extmap:8 http://www.webrtc.org/experiments/rtp-hdrext/video-timing
    a=recvonly
    a=rtcp-mux
    a=rtcp-rsize
    a=rtpmap:96 VP8/90000
    a=rtcp-fb:96 goog-remb
    a=rtcp-fb:96 transport-cc
    a=rtcp-fb:96 ccm fir
    a=rtcp-fb:96 nack
    a=rtcp-fb:96 nack pli
    a=rtpmap:97 rtx/90000
    a=fmtp:97 apt=96
    a=rtpmap:98 VP9/90000
    a=rtcp-fb:98 goog-remb
    a=rtcp-fb:98 transport-cc
    a=rtcp-fb:98 ccm fir
    a=rtcp-fb:98 nack
    a=rtcp-fb:98 nack pli
    a=rtpmap:99 rtx/90000
    a=fmtp:99 apt=98
    a=rtpmap:100 H264/90000
    a=rtcp-fb:100 goog-remb
    a=rtcp-fb:100 transport-cc
    a=rtcp-fb:100 ccm fir
    a=rtcp-fb:100 nack
    a=rtcp-fb:100 nack pli
    a=fmtp:100 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f
    a=rtpmap:101 rtx/90000
    a=fmtp:101 apt=100
    a=rtpmap:102 H264/90000
    a=rtcp-fb:102 goog-remb
    a=rtcp-fb:102 transport-cc
    a=rtcp-fb:102 ccm fir
    a=rtcp-fb:102 nack
    a=rtcp-fb:102 nack pli
    a=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
    a=rtpmap:124 rtx/90000
    a=fmtp:124 apt=102
    a=rtpmap:127 red/90000
    a=rtpmap:123 rtx/90000
    a=fmtp:123 apt=127
    a=rtpmap:125 ulpfec/90000

应用程序:

    type: answer, sdp: v=0
    o=- 3849306709589196149 2 IN IP4 127.0.0.1
    s=-
    t=0 0
    a=group:BUNDLE audio video
    a=msid-semantic: WMS stream_label_1390580523
    m=audio 9 UDP/TLS/RTP/SAVPF 111 8 106 105 13 126
    c=IN IP4 0.0.0.0
    a=rtcp:9 IN IP4 0.0.0.0
    a=ice-ufrag:A4kcurv1yVSucCb8
    a=ice-pwd:Q1WJZXT+NfN0RdNPnVh6LHdD
    a=fingerprint:sha-256 06:59:7C:AF:10:17:7F:C3:F9:9F:C1:B1:04:0F:90:92:F9:65:2F:84:97:0D:12:6F:4A:30:59:10:9C:90:E8:01
    a=setup:active
    a=mid:audio
    a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
    a=sendonly
    a=rtcp-mux
    a=rtpmap:111 opus/48000/2
    a=fmtp:111 maxplaybackrate=48000; minptime=10; stereo=1; useinbandfec=1
    a=rtpmap:8 PCMA/8000
    a=rtpmap:106 CN/32000
    a=rtpmap:105 CN/16000
    a=rtpmap:13 CN/8000
    a=rtpmap:126 telephone-event/8000
    a=maxptime:60
    a=ssrc:1151136798 cname:pg4n1x2mj/AdnJwg
    a=ssrc:1151136798 msid:stream_label_1390580523 audio_label_1390580523
    a=ssrc:1151136798 mslabel:stream_label_1390580523
    a=ssrc:1151136798 label:audio_label_1390580523
    m=video 9 UDP/TLS/RTP/SAVPF 102
    c=IN IP4 0.0.0.0
    a=rtcp:9 IN IP4 0.0.0.0
    a=ice-ufrag:A4kcurv1yVSucCb8
    a=ice-pwd:Q1WJZXT+NfN0RdNPnVh6LHdD
    a=fingerprint:sha-256 06:59:7C:AF:10:17:7F:C3:F9:9F:C1:B1:04:0F:90:92:F9:65:2F:84:97:0D:12:6F:4A:30:59:10:9C:90:E8:01
    a=setup:active
    a=mid:video
    a=extmap:2 urn:ietf:params:rtp-hdrext:toffset
    a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
    a=sendonly
    a=rtcp-mux
    a=rtpmap:102 H264/90000
    a=rtcp-fb:102 ccm fir
    a=rtcp-fb:102 nack
    a=rtcp-fb:102 nack pli
    a=rtcp-fb:102 goog-remb
    a=fmtp:102 packetization-mode=1; profile-level-id=42e01f
    a=ssrc:2166771580 cname:pg4n1x2mj/AdnJwg
    a=ssrc:2166771580 msid:stream_label_1390580523 video_label_1390580523
    a=ssrc:2166771580 mslabel:stream_label_1390580523
    a=ssrc:2166771580 label:video_label_1390580523
通过Firefox从外部网络连接时

和sdp
浏览器:

    v=0

    o=mozilla...THIS_IS_SDPARTA-57.0 4840145165645177749 0 IN IP4 0.0.0.0

    s=-

    t=0 0

    a=sendrecv

    a=fingerprint:sha-256 50:6E:89:28:BB:AE:82:D4:57:E7:1E:50:6D:A9:5E:BA:2F:B9:80:F9:8F:12:8F:BF:9B:27:AB:A8:86:10:53:03

    a=group:BUNDLE sdparta_0 sdparta_1

    a=ice-options:trickle

    a=msid-semantic:WMS *

    m=audio 60326 UDP/TLS/RTP/SAVPF 109 9 0 8 101

    c=IN IP4 66.228.45.110

    a=candidate:0 1 UDP 2122252543 192.168.10.104 56554 typ host

    a=candidate:4 1 TCP 2105524479 192.168.10.104 9 typ host tcptype active

    a=candidate:0 2 UDP 2122252542 192.168.10.104 38068 typ host

    a=candidate:4 2 TCP 2105524478 192.168.10.104 9 typ host tcptype active

    a=candidate:1 1 UDP 1686052863 83.12.247.121 56554 typ srflx raddr 192.168.10.104 rport 56554

    a=candidate:1 2 UDP 1686052862 83.12.247.121 38068 typ srflx raddr 192.168.10.104 rport 38068

    a=candidate:3 1 UDP 92217087 66.228.45.110 60326 typ relay raddr 66.228.45.110 rport 60326

    a=candidate:3 2 UDP 92217086 66.228.45.110 60328 typ relay raddr 66.228.45.110 rport 60328

    a=recvonly

    a=end-of-candidates

    a=extmap:1/sendonly urn:ietf:params:rtp-hdrext:ssrc-audio-level

    a=fmtp:109 maxplaybackrate=48000;stereo=1;useinbandfec=1

    a=fmtp:101 0-15

    a=ice-pwd:d0e1197ba6180cabee5b2388a2cb56de

    a=ice-ufrag:ca09e117

    a=mid:sdparta_0

    a=rtcp:38068 IN IP4 83.12.247.121

    a=rtcp-mux

    a=rtpmap:109 opus/48000/2

    a=rtpmap:9 G722/8000/1

    a=rtpmap:0 PCMU/8000

    a=rtpmap:8 PCMA/8000

    a=rtpmap:101 telephone-event/8000

    a=setup:actpass

    a=ssrc:630602556 cname:{58e9bb5f-4a3a-465f-abb4-7b5ad708ea2a}

    m=video 60326 UDP/TLS/RTP/SAVPF 120 121 126 97

    c=IN IP4 66.228.45.110

    a=candidate:0 1 UDP 2122252543 192.168.10.104 59472 typ host

    a=candidate:4 1 TCP 2105524479 192.168.10.104 9 typ host tcptype active

    a=candidate:0 2 UDP 2122252542 192.168.10.104 60090 typ host

    a=candidate:4 2 TCP 2105524478 192.168.10.104 9 typ host tcptype active

    a=candidate:1 1 UDP 1686052863 83.12.247.121 59472 typ srflx raddr 192.168.10.104 rport 59472

    a=candidate:1 2 UDP 1686052862 83.12.247.121 60090 typ srflx raddr 192.168.10.104 rport 60090

    a=recvonly

    a=extmap:1 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time

    a=extmap:2 urn:ietf:params:rtp-hdrext:toffset

    a=fmtp:120 max-fs=12288;max-fr=60

    a=fmtp:121 max-fs=12288;max-fr=60

    a=fmtp:126 profile-level-id=42e01f;level-asymmetry-allowed=1;packetization-mode=1

    a=fmtp:97 profile-level-id=42e01f;level-asymmetry-allowed=1

    a=ice-pwd:d0e1197ba6180cabee5b2388a2cb56de

    a=ice-ufrag:ca09e117

    a=mid:sdparta_1

    a=rtcp:60090 IN IP4 83.12.247.121

    a=rtcp-fb:120 nack

    a=rtcp-fb:120 nack pli

    a=rtcp-fb:120 ccm fir

    a=rtcp-fb:120 goog-remb

    a=rtcp-fb:121 nack

    a=rtcp-fb:121 nack pli

    a=rtcp-fb:121 ccm fir

    a=rtcp-fb:121 goog-remb

    a=rtcp-fb:126 nack

    a=rtcp-fb:126 nack pli

    a=rtcp-fb:126 ccm fir

    a=rtcp-fb:126 goog-remb

    a=rtcp-fb:97 nack

    a=rtcp-fb:97 nack pli

    a=rtcp-fb:97 ccm fir

    a=rtcp-fb:97 goog-remb

    a=rtcp-mux

    a=rtpmap:120 VP8/90000

    a=rtpmap:121 VP9/90000

    a=rtpmap:126 H264/90000

    a=rtpmap:97 H264/90000

    a=setup:actpass

    a=ssrc:2114098107 cname:{58e9bb5f-4a3a-465f-abb4-7b5ad708ea2a}

应用程序:

    v=0

    o=- 4869874212092764730 2 IN IP4 127.0.0.1

    s=-

    t=0 0

    a=sendrecv

    a=group:BUNDLE sdparta_0 sdparta_1

    a=msid-semantic:WMS stream_label_381803187

    m=audio 9 UDP/TLS/RTP/SAVPF 109 8 101

    c=IN IP4 0.0.0.0

    a=candidate:2984435223 1 udp 2122129151 10.0.135.42 38604 typ host generation 0

    a=candidate:415060418 1 udp 1685921535 83.12.247.121 49572 typ srflx raddr 10.0.135.42 rport 38604 generation 0

    a=candidate:4284556007 1 tcp 1518149375 10.0.135.42 45815 typ host tcptype passive generation 0

    a=candidate:2565634929 1 udp 41754367 66.228.45.110 60327 typ relay raddr 83.12.247.121 rport 59428 generation 0

    a=sendonly

    a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level

    a=fingerprint:sha-256 2A:D8:5B:E6:56:9E:AB:3A:17:74:67:28:8C:B7:C9:C5:32:64:43:7C:A0:FB:B0:BA:0A:F6:11:C1:8B:DD:8E:F4

    a=fmtp:109 maxplaybackrate=48000;stereo=1;useinbandfec=1

    a=ice-pwd:FpQEco49mH6bf5m4oVI+FPbB

    a=ice-ufrag:SWDqV5zrHfJo1TgX

    a=maxptime:60

    a=mid:sdparta_0

    a=rtcp:9 IN IP4 0.0.0.0

    a=rtcp-mux

    a=rtpmap:109 opus/48000/2

    a=rtpmap:8 PCMA/8000

    a=rtpmap:101 telephone-event/8000

    a=setup:active

    a=ssrc:2063848393 cname:GzEXlBFW+K/mjjuR

    a=ssrc:2063848393 msid:stream_label_381803187 audio_label_381803187

    a=ssrc:2063848393 mslabel:stream_label_381803187

    a=ssrc:2063848393 label:audio_label_381803187

    m=video 9 UDP/TLS/RTP/SAVPF 97

    c=IN IP4 0.0.0.0

    a=candidate:2984435223 1 udp 2122129151 10.0.135.42 38604 typ host generation 0

    a=candidate:415060418 1 udp 1685921535 83.12.247.121 49572 typ srflx raddr 10.0.135.42 rport 38604 generation 0

    a=candidate:4284556007 1 tcp 1518149375 10.0.135.42 45815 typ host tcptype passive generation 0

    a=candidate:2565634929 1 udp 41754367 66.228.45.110 60327 typ relay raddr 83.12.247.121 rport 59428 generation 0

    a=sendonly

    a=extmap:2 urn:ietf:params:rtp-hdrext:toffset

    a=extmap:1 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time

    a=fingerprint:sha-256 2A:D8:5B:E6:56:9E:AB:3A:17:74:67:28:8C:B7:C9:C5:32:64:43:7C:A0:FB:B0:BA:0A:F6:11:C1:8B:DD:8E:F4

    a=fmtp:97 profile-level-id=42e01f;level-asymmetry-allowed=0;packetization-mode=1

    a=ice-pwd:FpQEco49mH6bf5m4oVI+FPbB

    a=ice-ufrag:SWDqV5zrHfJo1TgX

    a=mid:sdparta_1

    a=rtcp:9 IN IP4 0.0.0.0

    a=rtcp-fb:97 ccm fir

    a=rtcp-fb:97 nack

    a=rtcp-fb:97 nack pli

    a=rtcp-fb:97 goog-remb

    a=rtcp-mux

    a=rtpmap:97 H264/90000

    a=setup:active

    a=ssrc:1725076660 cname:GzEXlBFW+K/mjjuR

    a=ssrc:1725076660 msid:stream_label_381803187 video_label_381803187

    a=ssrc:1725076660 mslabel:stream_label_381803187

    a=ssrc:1725076660 label:video_label_381803187

0 个答案:

没有答案