I want to send text messages directly to browser. Till now I'm only seeing the audio/video transmission demos in the web. These are my doubts:
Thanks in advance for any help..
The answer to your question is: Yes - you need to use dataChannel API
Its not cross-browser as they're still implementing it - I'd probably use socket.io with node atm for a cross-browser app.
Once datachannel is done, it'll be AMAZING! :)
You need to use the DataChannel part of of the PeerConnection API. This will work in firefox 18 and forward and is coming to Chrome some time soon.
A good starting point to understand how to do this is https://hacks.mozilla.org/2012/11/progress-update-on-webrtc-for-firefox-on-desktop/ and the latest draft of the specification at http://dev.w3.org/2011/webrtc/editor/webrtc.html!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With