How do i solve this? (Webrtc)
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 দ্বারা পরিমিত
All Replies (4)
Use the getUserMedia() instead of mozGetUserMedia()
https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia
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.
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
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?