MethodChannelHaloVideoplayer class
An implementation of HaloVideoplayerPlatform that uses video_player for Android, iOS, macOS, and Web platforms.
- Inheritance
-
- Object
- PlatformInterface
- HaloVideoplayerPlatform
- MethodChannelHaloVideoplayer
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
int textureId) → Future< void> -
Dispose a video player
override
-
getTextureId(
int playerId) → Future< int?> -
Get video texture ID for rendering
override
-
getValue(
int textureId) → Future< HaloVideoPlayerValue> -
Get current player value
override
-
getValueStream(
int textureId) → Stream< HaloVideoPlayerValue> -
Stream of player value updates
override
-
getVideoPlayerController(
int playerId) → VideoPlayerController? - Get VideoPlayerController for a player ID (for internal use)
-
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
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
int textureId) → Future< void> -
Pause the video
override
-
play(
int textureId) → Future< void> -
Play the video
override
-
seekTo(
int textureId, Duration position) → Future< void> -
Seek to a specific position
override
-
setLooping(
int textureId, bool looping) → Future< void> -
Set looping
override
-
setPlaybackSpeed(
int textureId, double speed) → Future< void> -
Set playback speed
override
-
setVolume(
int textureId, double volume) → Future< void> -
Set volume (0.0 to 1.0)
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited