simple-peer icon indicating copy to clipboard operation
simple-peer copied to clipboard

React native support

Open TriPSs opened this issue 5 years ago • 7 comments

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?

TriPSs avatar Mar 08 '19 13:03 TriPSs

Have you tried the troubleshooting steps in #202?

t-mullen avatar Mar 08 '19 13:03 t-mullen

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.

TriPSs avatar Mar 08 '19 13:03 TriPSs

Webtorrent does not use the latest simple-peer, so it's difficult to tell if your issue has already been solved in this library.

t-mullen avatar Mar 11 '19 12:03 t-mullen

I forced my app to use the simple-peer from GIT but it's still happening.

TriPSs avatar Mar 11 '19 15:03 TriPSs

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.

t-mullen avatar Mar 24 '19 22:03 t-mullen

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 :)

feross avatar Aug 11 '19 21:08 feross

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.

TheSalarKhan avatar Oct 23 '20 02:10 TheSalarKhan