react-native-nearby-api icon indicating copy to clipboard operation
react-native-nearby-api copied to clipboard

Usage with react-native-webrtc?

Open butchmarshall opened this issue 8 years ago • 5 comments

I'm researching packages right now to put together a walkie-talkie type application.

Would I be able to connect multiple devices together using this library and push audio/video through them via https://github.com/oney/react-native-webrtc?

butchmarshall avatar Jan 09 '18 02:01 butchmarshall

I think that's what the intention of Google Nearby Connections, but this library currently only supports the Messages API, which is strictly low-bandwidth.

jacks205 avatar Jan 09 '18 02:01 jacks205

Yep that's exactly what I'm looking for!

Any plans to implement this API?

butchmarshall avatar Jan 09 '18 02:01 butchmarshall

I ended up impementing it if your interested.

The only issue im having with the package is onEndpointLost never fires (when an endpoint is discovered, never is connected to, then moves out of range/ stops broadcasting) - if you have any insight I'd love to hear it.

https://www.npmjs.com/package/react-native-google-nearby-connection

butchmarshall avatar Jan 28 '18 14:01 butchmarshall

Hi @butchmarshall are you saying you managed to implement a walkie-talkie type application in React Native? I'd be super interested in understanding better how you did it! :)

felixmeziere avatar Oct 12 '19 18:10 felixmeziere

Hey @felixmeziere - yep using the package https://github.com/butchmarshall/react-native-google-nearby-connection i built a demo app https://play.google.com/store/apps/details?id=com.butchmarshall.reactnative.nearby.connection

butchmarshall avatar Oct 24 '19 12:10 butchmarshall