-
Notifications
You must be signed in to change notification settings - Fork 160
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Component your feature request relates to
- Signalling server
- Frontend library
- Frontend UI library
- Matchmaker
- SFU
- This repo
Problem your feature solves? Please describe.
Currently, the only way I see to send arbitrary data through the data channel is to run everything through emitUIInteraction
which runs everything throughJSON.stringify()
. This makes sending arbitrary bytes through rather annoying.
Describe the solution you'd like
I'd like a function that sends a byte array ( Uint8Array
.?) through the data channel without any processing.
public emitBytes(bytes: Uint8Array) {
if (!this._webRtcController.videoPlayer.isVideoReady()) {
return false;
}
this._webRtcController.emitBytes(bytes);
return true;
}
Additional context
uneeq-paul, Zeouterlimits and jasoncatchpole
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request