Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React native support #445

Open
TriPSs opened this issue Mar 8, 2019 · 7 comments
Open

React native support #445

TriPSs opened this issue Mar 8, 2019 · 7 comments

Comments

@TriPSs
Copy link

TriPSs commented Mar 8, 2019

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?

@t-mullen
Copy link
Collaborator

t-mullen commented Mar 8, 2019

Have you tried the troubleshooting steps in #202?

@TriPSs
Copy link
Author

TriPSs commented Mar 8, 2019

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.

@t-mullen
Copy link
Collaborator

t-mullen commented Mar 11, 2019

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

@TriPSs
Copy link
Author

TriPSs commented Mar 11, 2019

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

@t-mullen
Copy link
Collaborator

t-mullen commented Mar 24, 2019

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 t-mullen changed the title Ice connection failed react native React native support Jun 26, 2019
@feross
Copy link
Owner

feross commented Aug 11, 2019

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

@TheSalarKhan
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants