HaloVideoplayerPlatform class abstract
- Inheritance
-
- Object
- PlatformInterface
- HaloVideoplayerPlatform
- Implementers
Constructors
- HaloVideoplayerPlatform()
- Constructs a HaloVideoplayerPlatform.
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
-
dispose(
int textureId) → Future< void> - Dispose a video player
-
getTextureId(
int playerId) → Future< int?> - Get video texture ID for rendering
-
getValue(
int textureId) → Future< HaloVideoPlayerValue> - Get current player value
-
getValueStream(
int textureId) → Stream< HaloVideoPlayerValue> - Stream of player value updates
-
initialize(
{required HaloVideoPlayerDataSource dataSource, bool autoPlay = false, bool looping = false, double volume = 1.0}) → Future< int> - Initialize a video player with the given data source
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
int textureId) → Future< void> - Pause the video
-
play(
int textureId) → Future< void> - Play the video
-
seekTo(
int textureId, Duration position) → Future< void> - Seek to a specific position
-
setLooping(
int textureId, bool looping) → Future< void> - Set looping
-
setPlaybackSpeed(
int textureId, double speed) → Future< void> - Set playback speed
-
setVolume(
int textureId, double volume) → Future< void> - Set volume (0.0 to 1.0)
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ HaloVideoplayerPlatform
-
The default instance of HaloVideoplayerPlatform to use.
getter/setter pair