simplewebrtc / SimpleWebRTC

Simplest WebRTC ever
Other
4.65k stars 1.19k forks source link

Incoming videos not playing #730

Closed ilysorc closed 6 years ago

ilysorc commented 6 years ago

I have already made an application, but remote videos are not working now. Is there anyone living in it?

orkank commented 6 years ago

I got the similar problem. When the remote video is loaded, It does not play automatically and I fix it with video.play(); when remote is connected/completed.

wardhanster commented 6 years ago

I might be miles away from the actual problem, but here is my 2 cents. if you are trying to establish connection between chrome instances then it might be the chrome version you are trying to work with has disabled auto play for videos. you have to manually play the video as @orkank suggested. If you are experiencing this on safari browser - you need to add inline parameter. Hope it helps.

ilysorc commented 6 years ago

I solved this problem. I am working with ReactJs and ReactJs is using autoPlay instead of autoplay. The problem was fixed when I changed autoplay attribute with autoPlay attribute.