flutter-webrtc-server | A simple WebRTC signaling server for flutter-webrtc | Websocket library
kandi X-RAY | flutter-webrtc-server Summary
kandi X-RAY | flutter-webrtc-server Summary
A simple WebRTC signaling server for flutter-webrtc.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Lazy initialization method .
- Watch for the given function name .
- Loops through the request .
- Downloads and download the resource data from the page
- Replace all functions in the placeholder names
- Sets the value of a wrapping getter for a given holder .
- Inherit a subclass .
- Lazy initialization methods .
- Tells when an element is IE tag .
- Takes a closure function and returns a new one .
flutter-webrtc-server Key Features
flutter-webrtc-server Examples and Code Snippets
Community Discussions
Trending Discussions on flutter-webrtc-server
QUESTION
In order to establish a visio between 2 peers, I developp an app for iOS and Android. The language is flutter and I use the flutter_webrtc plugin from pub.dev.
Video and audio work fine using flutter-webrtc-server (https://github.com/flutter-webrtc/flutter-webrtc-server) as signaling server and another TURN server.
Now, I want to send data from peer 1 to peer 2. The data is a simple int, sent every second in order to synchronise counters.
I try to send data using _socket.send(_encoder.convert(request)); (Signaling.dart), but if the type is not known ("peers", "offer", ...), the signaling server blocks my message (I set COUNTER as type) (Unknown type). It would have been a good solution...
Do you have any idea to send simple text message to another peer, or into a room, I don't care if other peers can read the messages !
Thanks, Luc
...ANSWER
Answered 2020-Nov-05 at 20:28I did it ! I added some code in singaler.go . Very simple : copy the case "candidate" block and paste it just above. Then rename "candidate" into "counter". So now, my signaling server relay the counter message. :-)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install flutter-webrtc-server
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page