NS_ERROR_UNEXPECTED in FireFox on mozRTCPeerConnection()

前端 未结 3 1737
一整个雨季
一整个雨季 2021-01-20 03:32

I am using adapter.js in my webrtc 1-1 video call application. It works fine on Google Chrome and both peers see each other\'s video and can hear audio. However, when I run

3条回答
  •  春和景丽
    2021-01-20 04:39

    This may be outdated but it may be of some help. I had the same NS_ERROR_UNEXPECTED when creating the new RTCPeerConnection(config).

    My problem was that my iceServers array had an invalid urls part that was giving problems to Firefox, specifically i had urls: 'turn:someUsername@ipAddress:port'

    I found out after some time that someUsername@ was not acceptable to FF although it works on Chrome.

    Removing the username@ part of the string fixed the issue for me, hope it helps.

提交回复
热议问题