peers / peerjs

Simple peer-to-peer with WebRTC.
https://peerjs.com
MIT License
12.43k stars 1.43k forks source link

Can't seem to play remote Video #682

Open CeoFred opened 4 years ago

CeoFred commented 4 years ago

Peerjs handles connection, signalling and every other thing perfectly. I get my on stream event fired, and a mediaStreamObject is received from the remote end, but after i set the srcObject of a video element the video does not play, any reason why??

Airell98 commented 4 years ago

teuing bray, aing ge kitu saruana

bennlich commented 4 years ago

@CeoFred does your video tag have an autoplay attribute? And are you seeing the same behavior in firefox and chrome?

CeoFred commented 4 years ago

Yes , I actually have solved that issues.. but I get another issue though, on my live server , I seem to see a duplicate of peers videos.

On Thu, Jul 2, 2020, 8:17 AM Benny Lichtner notifications@github.com wrote:

@CeoFred https://github.com/CeoFred does your video tag have an autoplay attribute? And are you seeing the same behavior in firefox and chrome?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/peers/peerjs/issues/682#issuecomment-652830644, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH3QHHQBTXS2L2EGJKYNMMDRZQYBVANCNFSM4N4PTXXA .

eysteinbye commented 4 years ago

Yes , I actually have solved that issues.. but I get another issue though, on my live server , I seem to see a duplicate of peers videos.

@CeoFred Can you share the solution to the problem? Why was your remote video playing?

CeoFred commented 4 years ago

So you actually need to have your internet connection up and running for signaling to happen.. note that, your servers do little or no work with the data transfer, only sets up a network connection between two or more endpoints, I'll call the server a signalling server.. this is actually what worked for me.

On Sun, Aug 9, 2020, 12:29 PM Eystein Bye notifications@github.com wrote:

Yes , I actually have solved that issues.. but I get another issue though, on my live server , I seem to see a duplicate of peers videos. … <#m5473063496542611014>

@CeoFred https://github.com/CeoFred Can you share the solution to the problem? Why was your remote video playing?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/peers/peerjs/issues/682#issuecomment-671040360, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH3QHHRUF2WHVN4KKUGZKMLR72CCJANCNFSM4N4PTXXA .

iamafasha commented 4 years ago

I am facing the same problem I tried following @CeoFred but I don't get it. It looks like it works sometimes and sometimes it never works.

CeoFred commented 4 years ago

Well, you are not doing something right then

On Thu, Sep 3, 2020 at 3:39 PM Afasha Isakiye notifications@github.com wrote:

I am facing the same problem I tried following @CeoFred https://github.com/CeoFred but I don't get it. It looks like it works sometimes and sometimes it never works.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/peers/peerjs/issues/682#issuecomment-686538027, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH3QHHSHKBG3EWDDBDN325TSD6TBFANCNFSM4N4PTXXA .