Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

How do i solve this? (Webrtc)

  • 4 个回答
  • 1 人有此问题
  • 4 次查看
  • 最后回复者为 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?