搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

How do i solve this? (Webrtc)

  • 4 回覆
  • 1 有這個問題
  • 3 次檢視
  • 最近回覆由 orijit17

more options

Hi, I am facing a problem with getuserMedia function for webcam display. here is my error code(navigator.mozGetUserMedia has been replaced by navigator.mediaDevices.getUserMedia). How do i solve this? It's working with chrome but not firefox. Please help me. I'm in trouble. I'm creating a project where i need to implement webrtc brodcusting chat etc. It's working fine with chrome but now with mozilla current version. Waiting for reply. Please solve my issue. Thanks

Hi, I am facing a problem with getuserMedia function for webcam display. here is my error code(navigator.mozGetUserMedia has been replaced by navigator.mediaDevices.getUserMedia). How do i solve this? It's working with chrome but not firefox. Please help me. I'm in trouble. I'm creating a project where i need to implement webrtc brodcusting chat etc. It's working fine with chrome but now with mozilla current version. Waiting for reply. Please solve my issue. Thanks

由 orijit17 於 修改

所有回覆 (4)

more options

Use the getUserMedia() instead of mozGetUserMedia()

https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia

more options

Hii TyDraniu, Thanks for your reply but this does not work for me. I got another error if use getUserMedia().

Here i have upload my js file can you check this one.

The new error I'm getting (TypeError: navigator.userAgent.match(...) is null)


http://orijit.aqualeafitsol.com/RTCPeerConnection-v1.5.js

Waiting for your reply.

more options

That's correct.

navigator.userAgent.match( /Chrom(e|ium)\/([0-9]+)\./ )

is null when it's not Chrome/Chromium and then

navigator.userAgent.match( /Chrom(e|ium)\/([0-9]+)\./ )[2] 

is not a table so it throws an error

more options

Thanks for your reply but it does'n solve my problem. I have solve it by changing some code. Right now i have get another error that is socket error. I have install socket in my server. But when i try to use var SIGNALING_SERVER = 'mydomain,.com:3000/'; it not responding. what is the problem?