Safari与Chrome视频时前者无法看到远程视频

android

#1

操作上先用iphone safari打开链接,然后android chrome打开另外一个链接。
safari给chrome发的sdp如下:

{"to":"kyeIkZLd6GVpsSaeAAAB","type":"offer","payload":{"sdp":"v=0
o=- 8772847892291073737 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio video
a=msid-semantic: WMS 15b0889e-b12b-453f-911b-b837a5b5c7b3
m=audio 9 UDP/TLS/RTP/SAVPF 111 103 9 102 0 8 105 13 110 113 126
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:eipg
a=ice-pwd:7ciwTFZm4EgXdIhObM4LHzU+
a=ice-options:trickle
a=fingerprint:sha-256 1E:C9:BB:08:D9:5A:13:DA:A6:C0:5E:4B:BF:50:9E:79:A8:F3:51:32:C9:A7:E2:A3:8D:8B:70:00:9A:28:68:A1
a=setup:actpass
a=mid:audio
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=sendrecv
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:9 G722/8000
a=rtpmap:102 ILBC/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:113 telephone-event/16000
a=rtpmap:126 telephone-event/8000
a=ssrc:2209981559 cname:JSgNuNsMiGPVebW5
a=ssrc:2209981559 msid:15b0889e-b12b-453f-911b-b837a5b5c7b3 d39e3324-e758-4888-a8fe-f1f1c75e4595
a=ssrc:2209981559 mslabel:15b0889e-b12b-453f-911b-b837a5b5c7b3
a=ssrc:2209981559 label:d39e3324-e758-4888-a8fe-f1f1c75e4595
m=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 100
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:eipg
a=ice-pwd:7ciwTFZm4EgXdIhObM4LHzU+
a=ice-options:trickle
a=fingerprint:sha-256 1E:C9:BB:08:D9:5A:13:DA:A6:C0:5E:4B:BF:50:9E:79:A8:F3:51:32:C9:A7:E2:A3:8D:8B:70:00:9A:28:68:A1
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=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:96 H264/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=fmtp:96 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=96
a=rtpmap:98 red/90000
a=rtpmap:99 rtx/90000
a=fmtp:99 apt=98
a=rtpmap:100 ulpfec/90000
a=ssrc-group:FID 1695240278 1069260077
a=ssrc:1695240278 cname:JSgNuNsMiGPVebW5
a=ssrc:1695240278 msid:15b0889e-b12b-453f-911b-b837a5b5c7b3 a6297eae-6207-4933-ad1e-7443d55f949e
a=ssrc:1695240278 mslabel:15b0889e-b12b-453f-911b-b837a5b5c7b3
a=ssrc:1695240278 label:a6297eae-6207-4933-ad1e-7443d55f949e
a=ssrc:1069260077 cname:JSgNuNsMiGPVebW5
a=ssrc:1069260077 msid:15b0889e-b12b-453f-911b-b837a5b5c7b3 a6297eae-6207-4933-ad1e-7443d55f949e
a=ssrc:1069260077 mslabel:15b0889e-b12b-453f-911b-b837a5b5c7b3
a=ssrc:1069260077 label:a6297eae-6207-4933-ad1e-7443d55f949e
","type":"offer"}}

可以看到视频使用的首选编码是H264。

然后是chrome给safari发送sdp,内容如下:

{"to":"iqEViN604uAAgYUYAAAA","type":"answer","payload":{"type":"answer","sdp":"v=0
o=- 7881247376228508304 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio video
a=msid-semantic: WMS AUhj8co55E6C9dATiC3cKLgn1ZnzEyKuBKie
m=audio 9 UDP/TLS/RTP/SAVPF 111 103 9 0 8 105 13 110 113 126
c=IN IP4 0.0.0.0
b=AS:25
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:Xpvp
a=ice-pwd:fekgtLGyKC6ZAA7fdsS/ix58
a=fingerprint:sha-256 03:5E:3A:73:1C:AE:6D:F7:95:64:7C:07:D2:1F:AF:6C:72:FD:A8:10:CA:FF:C1:67:E9:B5:DA:39:3E:4E:55:59
a=setup:active
a=mid:audio
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=sendrecv
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:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:113 telephone-event/16000
a=rtpmap:126 telephone-event/8000
a=ssrc:262203369 cname:bB8ivc/s5iZawtYe
a=ssrc:262203369 msid:AUhj8co55E6C9dATiC3cKLgn1ZnzEyKuBKie aa01354b-6a5f-40cf-862c-6e19b7854cbb
a=ssrc:262203369 mslabel:AUhj8co55E6C9dATiC3cKLgn1ZnzEyKuBKie
a=ssrc:262203369 label:aa01354b-6a5f-40cf-862c-6e19b7854cbb
m=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 100
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:Xpvp
a=ice-pwd:fekgtLGyKC6ZAA7fdsS/ix58
a=fingerprint:sha-256 03:5E:3A:73:1C:AE:6D:F7:95:64:7C:07:D2:1F:AF:6C:72:FD:A8:10:CA:FF:C1:67:E9:B5:DA:39:3E:4E:55:59
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=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=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:96 H264/90000
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=fmtp:96 packetization-mode=1;profile-level-id=42e01f
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=96
a=rtpmap:98 red/90000
a=rtpmap:99 rtx/90000
a=fmtp:99 apt=98
a=rtpmap:100 ulpfec/90000
a=ssrc-group:FID 2559766218 1684011187
a=ssrc:2559766218 cname:bB8ivc/s5iZawtYe
a=ssrc:2559766218 msid:AUhj8co55E6C9dATiC3cKLgn1ZnzEyKuBKie 41cffff8-dedc-4c62-b783-1ad23eec9c9f
a=ssrc:2559766218 mslabel:AUhj8co55E6C9dATiC3cKLgn1ZnzEyKuBKie
a=ssrc:2559766218 label:41cffff8-dedc-4c62-b783-1ad23eec9c9f
a=ssrc:1684011187 cname:bB8ivc/s5iZawtYe
a=ssrc:1684011187 msid:AUhj8co55E6C9dATiC3cKLgn1ZnzEyKuBKie 41cffff8-dedc-4c62-b783-1ad23eec9c9f
a=ssrc:1684011187 mslabel:AUhj8co55E6C9dATiC3cKLgn1ZnzEyKuBKie
a=ssrc:1684011187 label:41cffff8-dedc-4c62-b783-1ad23eec9c9f
"}}

可以看到视频使用的首选编码也是H264。

chrome上可以正常看到本地也远程视频,But! safari上无法显示远程视频,请问原因出在哪里,有解决方案吗?

ps.

ios 12.1.2

chrome 59.0.3071.125

android 7.1.1

求帮助:pray:


#2

更新了一下android上的chrome,升级到70.0.3538.110,发现可以了。供大家参考。