peerjs
peerjs copied to clipboard
> no
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."
Make sure you are using the latest version of PeerJS.