react-native-webrtc-server icon indicating copy to clipboard operation
react-native-webrtc-server copied to clipboard

Video is not shown

Open anjanaNewput opened this issue 7 years ago • 3 comments

I reference your code to create webrtc web app Earlier It was working fine. But today When I run the app its not showing video.

I got a warning in console URL.createObjectURL(stream) has been deprecated. use srcObject instead.

So I looks for its fix and got a solution suggested by many people. // Don't do this video.src = URL.createObjectURL(stream); // Do this video.srcObject = stream;

After using it warning goes away, but still i am not able to see the local as well as remote video.

Please help me. Thanks in advance

anjanaNewput avatar Sep 19 '18 08:09 anjanaNewput

Hi, please have a look into my fork. I solved some issues of the current project: https://github.com/gilpanal/react-native-webrtc-server

Let me know if you are able to see the video. Which browser are you using, by the way?

Thank you!

gilpanal avatar Sep 20 '18 05:09 gilpanal

@gilpanal I am facing this issue on both FF and Chrome.

anjanaNewput avatar Sep 20 '18 05:09 anjanaNewput

OK. For me, using my repo it works fine in both, from Mac, with latest version of the browsers. Please try it, and reply with the result. Thanks!

gilpanal avatar Sep 20 '18 06:09 gilpanal