ResetVideo method
dynamic
ResetVideo()
Implementation
ResetVideo() {
const dcName = "manual";
var channel = this.datachannels[dcName];
if (channel == null) {
Log(LogLevel.Warning,
'attempting to send message while data channel ${dcName} is ready');
return;
}
channel.HID.send(LibWebRTC.RTCDataChannelMessage(jsonEncode({
"type": "reset",
"reset": 0,
})));
}