PlatformVideoController class abstract

PlatformVideoController

This class provides the interface for platform specific VideoController implementations. The platform specific implementations are expected to implement the methods accordingly.

The subclasses are then used in composition with the VideoController class, based on the platform the application is running on.

Constructors

PlatformVideoController(Player player, VideoControllerConfiguration configuration)
PlatformVideoController

Properties

configuration VideoControllerConfiguration
User defined configuration for VideoController.
final
hashCode int
The hash code for this object.
no setterinherited
id ValueNotifier<int?>
Texture ID of the video output, registered with Flutter engine by the native implementation.
final
player Player
The Player instance associated with this instance.
final
rect ValueNotifier<Rect?>
Rect of the video output, received from the native implementation.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
waitUntilFirstFrameRendered Future<void>
A Future that completes when the first video frame has been rendered.
no setter
waitUntilFirstFrameRenderedCompleter Completer<void>
Completer used to signal the decoding & rendering of the first video frame. Use waitUntilFirstFrameRendered to wait for the first frame to be rendered.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setSize({int? width, int? height}) Future<void>
Sets the required size of the video output. This may yield substantial performance improvements if a small width & height is specified.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited