RemoteControl class
Controlador principal de sesión de control remoto WebRTC y WebSocket.
Constructors
- 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})
Properties
- autoAdjustQuality → bool
-
final
- cachedPermissions → PermissionsStatus?
-
no setter
- deviceMac → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inactivityDuration → Duration
-
final
- isConnected → bool
-
no setter
- isDisposed → bool
-
no setter
- isInitializingStream → bool
-
no setter
- isStreaming → bool
-
no setter
-
onCustomCommand
→ Stream<
Map< String, dynamic> > -
no setter
- permissionsVerified → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverUrl → String
-
final
- token → String
-
final
- turnServerCredential → String?
-
final
- turnServerIP → String?
-
final
- turnServerPort → int?
-
final
- turnServerUsername → String?
-
final
- videoFrameRate ↔ int
-
getter/setter pair
- videoHeight ↔ int
-
getter/setter pair
- videoWidth ↔ int
-
getter/setter pair
Methods
-
applyQualityForNetwork(
String networkType) → void - Ajusta resolución y tasa de refresco según el tipo de conexión ('wifi', '4g', '3g', '2g')
-
autoAdjustQualityForCurrentNetwork(
) → Future< String> - Detecta automáticamente el tipo de red actual (WiFi, 4G, 3G, 2G) y aplica los parámetros óptimos
-
checkPermissions(
) → Future< PermissionsStatus> - Consulta el estado actual de los permisos del sistema
-
connect(
) → Future< void> -
dispose(
) → Future< void> -
ensurePermissions(
{bool forceRefresh = false, bool requestNotifications = true, bool openAccessibilityIfMissing = false}) → Future< PermissionsStatus> -
Gestiona la verificación y solicitud de permisos de forma controlada.
Evita solicitudes duplicadas en la sesión salvo que
forceRefreshsea true. -
getPlatformVersion(
) → Future< String?> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reconnect(
) → Future< void> -
startScreenCapture(
{bool? autoAdjustNetworkQuality, bool forcePermissionCheck = false}) → Future< void> -
stopScreenCapture(
) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
-
verifyAndRequestPermissions(
{bool requestNotifications = true, bool openAccessibilityIfMissing = false}) → Future< PermissionsStatus> - Verifica y solicita permisos necesarios para streaming y control remoto
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited