Add support for datachannel between broadcaster and player. Add an onmessage handler (or message event) to WebRTC player class. Proposed usage:
const player = new WebRTCPlayer(...);
player.onmessage = (message) => {
// do stuff with message from broadcaster
}
// or send a message to the broadcaster
player.send(myMessage);
Add support for datachannel between broadcaster and player. Add an
onmessage
handler (ormessage
event) to WebRTC player class. Proposed usage: