Reputation: 1213
I was learning about WebRTC and came across this demo app on MDN which does not work on my Firefox 76.0.1. The console error is : ReferenceError: RTCPeerConnection is not defined
. I tried to verify this by creating a new instance of RTCPeerConnection
: new RTCPeerConnection()
in the console and sure enough, it does not exist. It seems to be a firefox only issue. I did not get this error on other browsers. Do I need to enable something in my browser in order to use this API? I find it hard to believe that this API would not be suported by Firefox.
Oh, and it's not just RTCPeerConnection
. None of the other peer connection APIs such as RTCIceCandidate
are available either.
Upvotes: 3
Views: 4036
Reputation: 17315
Check the value of media.peerconnection.enabled
in about:config
. The default value is on but it might have been modified by an extension.
Upvotes: 7