Doesn't work with iOS
Tested with more iOS versions (12, 14, 15 Public Beta) and it never works: it doesn't connect with other peer (each peer seems to work but doesn't connect or handle connection to other). The problem is that there isn't any error in the console (I used Aruda on iOS, too) and in peerjs errors, too (handled with alert that is the best option for iOS debug). The strange thing is that if I use the library with Chrome to Chrome (only on the computer version, I don't use mobile version) it works fine and connects without problem.
P.S.: I want to add that I used json serialization, as explained on README.
Same problem. the listening side detects connection but the side that starts the connection never logs anything and simply doesn't function at all.
Is there an alternative to peerjs? This repo has seen no new commit since several months.
No, @guettli, unfortunately there isn't an alternative to peerjs that offers auto peer connection by just a name and real complete support for iOS (but, for now, peerjs doesn't work with it, too).
@Bellisario Did you try to use the TURN server? Which version of PeerJS you use?
Is there an alternative to peerjs? This repo has seen no new commit since several months.
try "simple peer" or "smoke" in github.
but, smoke not support "heartbeat" and "reconnect"
Is this still a problem? It works on iOS for me and has so for the last versions of both PeerJS and iOS.
If yes, please help me reproduce this issue.
@jonasgloning For me there is a issue, I just try this website to stream my smartphone stream to my desktop. https://glitch.com/~peerjs-video.
Thanks, @MirSowasVonEgal.
I can reproduce this in part; your link doesn't work on iOS 15. I modified your Glitch slightly: upgraded PeerJS to the latest stable version, and switched to the public PeerServer. At least on my testing devices, it works now with video in both directions.
Does this work with your setup?
It works, thank you.
Perfect! I’ll close this, as it seems to work with recent PeerJS versions.
If someone experiences issues with a particular setup, please open a new issue.