ScrcpyVideoPlatform class abstract
Interface implemented by platform-specific scrcpy video backends.
- Inheritance
-
- Object
- PlatformInterface
- ScrcpyVideoPlatform
- Implementers
Constructors
- ScrcpyVideoPlatform()
- Creates a platform interface guarded by the plugin verification token.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearSessionCleanup(
) → Future< void> - Clears native emergency-cleanup state after normal stream shutdown.
-
createTexture(
) → Future< int> - Registers a native texture and returns its Flutter texture identifier.
-
decodeFrame(
{required int textureId, required Uint8List data, required int presentationTimeUs, required bool isConfig, required bool isKeyFrame}) → Future< void> - Sends one encoded H.264 access unit to the native decoder.
-
disposeTexture(
int textureId) → Future< void> -
Releases the native texture identified by
textureId. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerSessionCleanup(
{required String adbPath, required String serial, required int forwardPort, int? serverProcessId}) → Future< void> - Registers enough native state to clean up an active adb tunnel if the macOS host terminates before Dart cleanup runs.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ ScrcpyVideoPlatform
-
Active platform implementation.
getter/setter pair