RemoteControl constructor

RemoteControl({
  1. required String serverUrl,
  2. required String deviceMac,
  3. required String token,
  4. String? turnServerIP,
  5. int? turnServerPort,
  6. String? turnServerUsername,
  7. String? turnServerCredential,
  8. int videoWidth = 1280,
  9. int videoHeight = 720,
  10. int videoFrameRate = 30,
  11. bool autoAdjustQuality = false,
  12. Duration inactivityDuration = const Duration(minutes: 1),
  13. WebSocketChannelFactory? channelFactory,
})

Implementation

RemoteControl({
  required this.serverUrl,
  required this.deviceMac,
  required this.token,
  this.turnServerIP,
  this.turnServerPort,
  this.turnServerUsername,
  this.turnServerCredential,
  this.videoWidth = 1280,
  this.videoHeight = 720,
  this.videoFrameRate = 30,
  this.autoAdjustQuality = false,
  this.inactivityDuration = const Duration(minutes: 1),
  WebSocketChannelFactory? channelFactory,
}) : _channelFactory = channelFactory {
  _ensureCommandController();
}