owt-server 4.3报错:subscribe failed Error: connection failed.

1,064 阅读1分钟

使用owt-server 4.3版本,详细搭建过程和说明可参考【MCU系列】第一篇--OWT-Server环境搭建、调试和VideoMix的原理剖析,最近跑了一次,发现demo跑不起来了,在chrome下报错:

subscribe failed Error: connection failed.
    at t.value (owt.js:9)
    at t.value (owt.js:9)
    at RTCPeerConnection._pc.onconnectionstatechange (owt.js:9)

如图所示:

经查,发现是owt-server中licode对新版本chrome的兼容性问题,详细可参考: Set x509 version in DTLS

commit提交见:1c453f1a3a4a2443b6a283587e59d3149e150cc4

解决方法:更新owt-server 4.3到最新代码,或者使用低版本的chrome、360浏览器测试即可。