oney / react-native-webrtc-server

145 stars 91 forks source link

Video is not shown #15

Open anjanaNewput opened 6 years ago

anjanaNewput commented 6 years ago

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

gilpanal commented 6 years ago

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!

anjanaNewput commented 6 years ago

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

gilpanal commented 6 years ago

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!