首页 > 解决方案 > Chrome webrtc-internals 显示 audioLevel 为 0 并且没有音频

问题描述

我将 Kurento 用于纯音频 Webrtc。我们有两个浏览器应用程序,用户可以从中连接和收听。但对于其中一款应用,Chrome 中没有音频。在其他浏览器中它工作正常。此外,其他应用程序在 Chrome 中运行良好。对于没有音频的应用程序,我检查了 chrome://webrtc-internals/,我发现和audioLevel0。这似乎是问题所在。但我无法找到它为 0 的原因,因为同一流在非零属性下被听到。totalAudioEnergy[Audio_Level_in_RMSaudio

在此处输入图像描述

从 chrome 生成的 SDP Offer:

v=0
o=- 5216768741743449485 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 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:RqhJ
a=ice-pwd:nzZ+GB+RAJ6H80ToE7uxpaZk
a=ice-options:trickle
a=fingerprint:sha-256 49:17:98:CC:EE:53:46:B4:A0:86:3B:29:B8:E4:E5:E8:E1:CD:49:B0:B5:AA:D8:3A:68:EF:2D:96:31:FF:F9:AE
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: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

Kurento的SDP回答:

v=0
o=- 3788596538 3788596538 IN IP4 0.0.0.0
s=Kurento Media Server
c=IN IP4 0.0.0.0
t=0 0
a=msid-semantic: WMS
a=group:BUNDLE 0
m=audio 1 UDP/TLS/RTP/SAVPF 111 0
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=sendonly
a=mid:0
a=rtcp:9 IN IP4 0.0.0.0
a=rtpmap:111 opus/48000/2
a=rtpmap:0 PCMU/8000
a=setup:active
a=rtcp-mux
a=fmtp:111 minptime=10;useinbandfec=1
a=ssrc:4159551798 cname:user3791831093@host-88916abf
a=ice-ufrag:dfqB
a=ice-pwd:nvfOteYfAIimzPMmD1E1Gx
a=fingerprint:sha-256 E5:D2:D9:1E:82:DD:21:E4:1B:8F:FC:62:F6:2C:FF:5B:C3:C4:17:75:97:DB:F0:BC:B5:F2:2C:6A:EB:35:83:4E

有什么想法/建议/调试步骤吗?请分享。提前致谢。

标签: webrtckurentoopenwebrtc

解决方案


推荐阅读