simple-peer
simple-peer copied to clipboard
React native support
I'm trying to implement webtorrent
lib in my react native application using react-native-webrtc
but the simple-peer
library keeps giving this error:
simple-peer [50766ba] iceStateChange (connection: failed) (gathering: gathering)
simple-peer [50766ba] destroy (error: Ice connection failed.)
webtorrent:peer destroy 2d5744303032302d756b692b6a4c7a7671464155 (error: Ice connection failed.)
Does anyone now how i can tackle this issue?
Have you tried the troubleshooting steps in #202?
I tried to do them but did not know what to do in some cases as the integration of simple-peer is in other libs.
Webtorrent does not use the latest simple-peer, so it's difficult to tell if your issue has already been solved in this library.
I forced my app to use the simple-peer
from GIT but it's still happening.
I'll see what I can do about getting our tests running on react-native and see if your issue comes up. We don't officially support it right now since it's WebRTC implementation is outdated.
Webtorrent does not use the latest simple-peer, so it's difficult to tell if your issue has already been solved in this library.
This is fixed now :)
Until react-native-webrtc adds support for 'addTrack' I've created a fork of simple-peer that works with react-native-webrtc.
Link: https://github.com/ExpandoPakistan/simple-peer-legacy
Leaving it here for anyone that needs react-native support in the meanwhile.