0

我根据WebRTC 文档在 Chrome 浏览器上启动 Express + node.js 网络服务器时部署了这个 Agora.io Webrtc 示例。

This appears to be Chrome
(index):78 Init AgoraRTC client with vendor key: ***
AgoraRTCSDK-1.8.0.js:842 INFO: Client in Live mode
(index):83 AgoraRTC client initialized
AgoraRTCSDK-1.8.0.js:842 INFO: VOSGateway connected.
(index):85 User 2502359564 join channel successfully
AgoraRTCSDK-1.8.0.js:842 DEBUG: Requested access to local media
AgoraRTCSDK-1.8.0.js:842 DEBUG: Object {video: Object, audio: true, fake: undefined}
adapter.js:32 chrome: {"video":{"mandatory":{"minWidth":1280,"minHeight":720,"maxWidth":1280,"maxHeight":720,"maxFrameRate":25,"minFrameRate":25},"optional":[]},"audio":true}
AgoraRTCSDK-1.8.0.js:842 INFO: User has granted access to local media.
(index):94 getUserMedia successfully
AgoraRTCSDK-1.8.0.js:842 DEBUG: Safari
AgoraRTCSDK-1.8.0.js:842 DEBUG: Set Video Bitrate - min:30 max:1500
adapter.js:340 Uncaught (in promise) DOMException: Failed to parse SessionDescription.  Failed to parse video codecs correctly.
(anonymous) @ adapter.js:340
(anonymous) @ adapter.js:332
webkitRTCPeerConnection.(anonymous function) @ adapter.js:331
(anonymous) @ AgoraRTCSDK-1.8.0.js:457
AgoraRTCSDK-1.8.0.js:842 INFO: video dimensions: 1280 720

我得到了失败的结果并尝试重新安装一些包含 v54、v56、v57、v59 和最新版本的 google chrome 版本。但是每个 chrome 版本都有相同的错误

adapter.js:340 Uncaught (in promise) DOMException: Failed to parse SessionDescription. Failed to parse video codecs correctly.

是什么意思?

4

1 回答 1

1

“无法正确解析视频编解码器”错误是由 setMaxBW 接口引起的已知 sdp 兼容性问题。不推荐使用 1.8.0 版本,因为它已过时。我建议升级到最新版本。

于 2017-11-28T17:53:35.800 回答