RemoteControl constructor
RemoteControl({
- required String serverUrl,
- required String deviceMac,
- required String token,
- String? turnServerIP,
- int? turnServerPort,
- String? turnServerUsername,
- String? turnServerCredential,
- int videoWidth = 1280,
- int videoHeight = 720,
- int videoFrameRate = 30,
- bool autoAdjustQuality = false,
- Duration inactivityDuration = const Duration(minutes: 1),
- 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();
}