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

Connection to Kraken API from React Native app #5

Open
silentlight opened this issue May 16, 2021 · 8 comments
Open

Connection to Kraken API from React Native app #5

silentlight opened this issue May 16, 2021 · 8 comments

Comments

@silentlight
Copy link

Hi there!

I have a problem connecting to Kraken API from RN app. It get's connected but then I get onTrackTimeout. It seems like initial connection between RN app and Kraken API is not established. What is weird is that if I start web app first and then make a connection to Kraken API it all works, so it seems that publish request does not make a connection?

My configuration is:

const configuration = {
      bundlePolicy: 'max-bundle',
      rtcpMuxPolicy: 'require',
      sdpSemantics: 'unified-plan'
    };

Any help would be appreciated :)

@cedricfung
Copy link
Contributor

Are you using rpc.kraken.fm or your own deployment?

@silentlight
Copy link
Author

We are using our own deployment. Using demo web app it all works but if we use the same code converted to RN with react-native-webrtc it does not work :(

@cedricfung
Copy link
Contributor

You should configure proper iceServers option.

@silentlight
Copy link
Author

Can I use rpc.kraken.fm to see if it works?

@silentlight
Copy link
Author

When I use your server publish request gives me error: "TypeError: offer SDP semantics does not match configuration"

@cedricfung
Copy link
Contributor

I think it's because your RN app uses old browser, which doesn't support some webrtc feature.

@silentlight
Copy link
Author

What is weird is that whenever someone is already in the room (using web app) and I connect using RN it all works. I can see my RN user on web app UI :/

@silentlight
Copy link
Author

Maybe passing some options to createOffer will make it work?

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

No branches or pull requests

2 participants