ChangeFramerate method

dynamic ChangeFramerate(
  1. int framerate
)

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})));
}