HarmonyOS 鸿蒙Next 华为浏览器拉WEBRTC H5流仅声音无视频问题

发布于 1周前 作者 eggper 来自 鸿蒙OS

HarmonyOS 鸿蒙Next 华为浏览器拉WEBRTC H5流仅声音无视频问题

鸿蒙系统的华为浏览器,拉WEBRTC H5的流只有声音没有视频

offer:

“v=0\r\no=- 3304326903771835068 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE 0 1\r\na=extmap-allow-mixed\r\na=msid-semantic: WMS\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111 63 103 104 9 0 8 106 105 13 110 112 113 126\r\nc=IN IP4 0.0.0.0\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=ice-ufrag:Sg0e\r\na=ice-pwd:WysfjAQEC94EQY1d9rIjNYtl\r\na=ice-options:trickle\r\na=fingerprint:sha-256 62:AA:66:B8:D5:66:61:BE:33:D9:44:42:DF:A6:23:91:E2:59:CD:08:54:D6:DB:59:6A:E9:42:89:F9:EF:72:6B\r\na=setup:actpass\r\na=mid:0\r\na=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level\r\na=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01\r\na=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid\r\na=recvonly\r\na=rtcp-mux\r\na=rtpmap:111 opus/48000/2\r\na=rtcp-fb:111 transport-cc\r\na=fmtp:111 minptime=10;useinbandfec=1\r\na=rtpmap:63 red/48000/2\r\na=fmtp:63 111/111\r\na=rtpmap:103 ISAC/16000\r\na=rtpmap:104 ISAC/32000\r\na=rtpmap:9 G722/8000\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:106 CN/32000\r\na=rtpmap:105 CN/16000\r\na=rtpmap:13 CN/8000\r\na=rtpmap:110 telephone-event/48000\r\na=rtpmap:112 telephone-event/32000\r\na=rtpmap:113 telephone-event/16000\r\na=rtpmap:126 telephone-event/8000\r\nm=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 125 102 124 123 107 108 109 35 36 100 101 122 121 127 37\r\nc=IN IP4 0.0.0.0\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=ice-ufrag:Sg0e\r\na=ice-pwd:WysfjAQEC94EQY1d9rIjNYtl\r\na=ice-options:trickle\r\na=fingerprint:sha-256 62:AA:66:B8:D5:66:61:BE:33:D9:44:42:DF:A6:23:91:E2:59:CD:08:54:D6:DB:59:6A:E9:42:89:F9:EF:72:6B\r\na=setup:actpass\r\na=mid:1\r\na=extmap:14 urn:ietf:params:rtp-hdrext:toffset\r\na=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=extmap:13 urn:3gpp:video-orientation\r\na=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01\r\na=extmap:5 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay\r\na=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type\r\na=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-timing\r\na=extmap:8 http://www.webrtc.org/experiments/rtp-hdrext/color-space\r\na=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid\r\na=extmap:10 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id\r\na=extmap:11 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id\r\na=recvonly\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:96 VP8/90000\r\na=rtcp-fb:96 goog-remb\r\na=rtcp-fb:96 transport-cc\r\na=rtcp-fb:96 ccm fir\r\na=rtcp-fb:96 nack\r\na=rtcp-fb:96 nack pli\r\na=rtpmap:97 rtx/90000\r\na=fmtp:97 apt=96\r\na=rtpmap:98 VP9/90000\r\na=rtcp-fb:98 goog-remb\r\na=rtcp-fb:98 transport-cc\r\na=rtcp-fb:98 ccm fir\r\na=rtcp-fb:98 nack\r\na=rtcp-fb:98 nack pli\r\na=fmtp:98 profile-id=0\r\na=rtpmap:99 rtx/90000\r\na=fmtp:99 apt=98\r\na=rtpmap:125 VP9/90000\r\na=rtcp-fb:125 goog-remb\r\na=rtcp-fb:125 transport-cc\r\na=rtcp-fb:125 ccm fir\r\na=rtcp-fb:125 nack\r\na=rtcp-fb:125 nack pli\r\na=fmtp:125 profile-id=1\r\na=rtpmap:102 VP9/90000\r\na=rtcp-fb:102 goog-remb\r\na=rtcp-fb:102 transport-cc\r\na=rtcp-fb:102 ccm fir\r\na=rtcp-fb:102 nack\r\na=rtcp-fb:102 nack pli\r\na=fmtp:102 profile-id=2\r\na=rtpmap:124 H264/90000\r\na=rtcp-fb:124 goog-remb\r\na=rtcp-fb:124 transport-cc\r\na=rtcp-fb:124 ccm fir\r\na=rtcp-fb:124 nack\r\na=rtcp-fb:124 nack pli\r\na=fmtp:124 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f\r\na=rtpmap:123 H264/90000\r\na=rtcp-fb:123 goog-remb\r\na=rtcp-fb:123 transport-cc\r\na=rtcp-fb:123 ccm fir\r\na=rtcp-fb:123 nack\r\na=rtcp-fb:123 nack pli\r\na=fmtp:123 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=4d001f\r\na=rtpmap:107 rtx/90000\r\na=fmtp:107 apt=123\r\na=rtpmap:108 H264/90000\r\na=rtcp-fb:108 goog-remb\r\na=rtcp-fb:108 transport-cc\r\na=rtcp-fb:108 ccm fir\r\na=rtcp-fb:108 nack\r\na=rtcp-fb:108 nack pli\r\na=fmtp:108 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=64001f\r\na=rtpmap:109 rtx/90000\r\na=fmtp:109 apt=108\r\na=rtpmap:35 AV1/90000\r\na=rtcp-fb:35 goog-remb\r\na=rtcp-fb:35 transport-cc\r\na=rtcp-fb:35 ccm fir\r\na=rtcp-fb:35 nack\r\na=rtcp-fb:35 nack pli\r\na=rtpmap:36 rtx/90000\r\na=fmtp:36 apt=35\r\na=rtpmap:100 H264/90000\r\na=rtcp-fb:100 goog-remb\r\na=rtcp-fb:100 transport-cc\r\na=rtcp-fb:100 ccm fir\r\na=rtcp-fb:100 nack\r\na=rtcp-fb:100 nack pli\r\na=fmtp:100 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f\r\na=rtpmap:101 rtx/90000\r\na=fmtp:101 apt=100\r\na=rtpmap:122 red/90000\r\na=rtpmap:121 rtx/90000\r\na=fmtp:121 apt=122\r\na=rtpmap:127 ulpfec/90000\r\na=rtpmap:37 flexfec-03/90000\r\na=rtcp-fb:37 goog-remb\r\na=rtcp-fb:37 transport-cc\r\na=fmtp:37 repair-window=10000000\r\n”

answer:

“v=0\r\no=- 3304326903771835068 2 IN IP4 120.39.212.253\r\ns=-\r\nt=0 0\r\na=ice-lite\r\na=group:BUNDLE 0 1\r\na=msid-semantic: WMS wsrtc\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111\r\nc=IN IP4 120.39.212.253\r\na=ice-ufrag:080F_69954_665D2CF3_871_585\r\na=ice-pwd:Zd5IfYovIykOHtS4/bSHBg\r\na=fingerprint:sha-256 73:BF:21:59:E2:AC:69:F3:34:9F:80:52:AD:C8:F6:41:D4:B4:AE:A0:3A:78:C6:F8:ED:6C:A5:46:5B:45:8B:4E\r\na=setup:passive\r\na=mid:0\r\na=sendonly\r\na=rtcp-mux\r\na=rtpmap:111 opus/48000/2\r\na=fmtp:111 minptime=10;useinbandfec=1\r\na=rtcp-fb:111 transport-cc\r\na=ssrc:283091808 cname:wsrtcaudio\r\na=ssrc:283091808 msid:wsrtc wsrtca0\r\na=ssrc:283091808 mslabel:wsrtc\r\na=ssrc:283091808 label:wsrtca0\r\na=candidate:1 1 udp 2013266431 120.39.212.253 16000 typ host\r\nm=video 9 UDP/TLS/RTP/SAVPF 100 35\r\nc=IN IP4 120.39.212.253\r\na=ice-ufrag:080F_69954_665D2CF3_871_585\r\na=ice-pwd:Zd5IfYovIykOHtS4/bSHBg\r\na=fingerprint:sha-256 73:BF:21:59:E2:AC:69:F3:34:9F:80:52:AD:C8:F6:41:D4:B4:AE:A0:3A:78:C6:F8:ED:6C:A5:46:5B:45:8B:4E\r\na=setup:passive\r\na=mid:1\r\na=sendonly\r\na=rtcp-mux\r\na=rtpmap:100 H264/90000\r\na=fmtp:100 profile-level-id=42e01f;packetization-mode=1\r\na=rtcp-fb:100 ccm fir\r\na=rtcp-fb:100 nack\r\na=rtcp-fb:100 nack pli\r\na=rtcp-fb:100 goog-remb\r\na=rtcp-fb:100 transport-cc\r\na=rtpmap:35 AV1/90000\r\na=rtcp-fb:35 ccm fir\r\na=rtcp-fb:35 nack\r\na=rtcp-fb:35 nack pli\r\na=rtcp-fb:35 goog-remb\r\na=rtcp-fb:35 transport-cc\r\na=ssrc:641419927 cname:wsrtcvideo\r\na=ssrc:641419927 msid:wsrtc wsrtcv0\r\na=ssrc:641419927 mslabel:wsrtc\r\na=ssrc:641419927 label:wsrtcv0\r\na=candidate:1 1 udp 2013266431 120.39.212.253 16000 typ host\r\n”

3 回复

你可以推流吗

cke_179.png

好像是Mediacodec的问题?这是为啥

针对HarmonyOS 鸿蒙Next 华为浏览器拉WEBRTC H5流仅声音无视频的问题,这可能是由于多种因素导致,如浏览器对WebRTC的支持差异、媒体编解码器不兼容、网络配置问题或WebRTC服务器设置等。建议检查浏览器版本是否支持WebRTC及所需的媒体编解码器,确认网络配置无误,并检查WebRTC服务器设置。如果问题依旧没法解决,请加我微信,我的微信是itying888,进一步探讨解决方案。

回到顶部