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