peerjs icon indicating copy to clipboard operation
peerjs copied to clipboard

> no

Open kenfouo opened this issue 2 years ago • 1 comments

do not receive stream on ios and safari

What is the issue here? What approach should i try?

Originally posted by @Koushik-Sarker-Seemanto in https://github.com/peers/peerjs/issues/921#issuecomment-1031805351

I use this code for call

myPeer.on('call', call => {
call.answer(stream)

call.on('stream', userVideoStream => {
    console.log("OK!")
})

call.on('close', () => {
    //
})

}) console.log("OK!") work fine on PC and android. but not working on iOS browsers. (Safari, chrome and ...)

How we can fix it?

Note: I debug on safari and get this error:

ERROR – "PeerJS: " – "Error:" – "(TypeError) Attempted to assign to readonly property."

kenfouo avatar May 31 '22 08:05 kenfouo

Make sure you are using the latest version of PeerJS.

rushglen avatar Sep 19 '22 14:09 rushglen