IvsPlayerMethodChannel class

IvsPlayerMethodChannel is a platform-specific implementation of the IvsPlayerInterface using the MethodChannel and EventChannel to communicate with native code.

Inheritance

Constructors

IvsPlayerMethodChannel()

Properties

hashCode int
The hash code for this object.
no setterinherited
playerStateSubscription StreamSubscription?
StreamSubscription for listening to player state changes.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getPosition() Future<Duration>
Retrieves the current playback position of the player.
override
getQualities() Future<List<String>>
Retrieves the list of available streaming qualities.
override
isAutoQuality() Future<bool>
Checks if the player is set to auto-quality adjustment mode.
override
muteUnmute() → void
Toggles mute/unmute for the player.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → void
Pauses the player.
override
resume() → void
Resumes playback on the player.
override
seekTo(Duration duration) Future<void>
Seeks the player to the specified duration.
override
setQuality(String value) Future<void>
Sets the streaming quality to the specified value.
override
startPlayer(String url, {required bool autoPlay, void onData(dynamic)?, void onError(dynamic)?}) → void
Starts the player with a given url and optional autoPlay flag.
override
stopPlayer() → void
Stops the player and cancels the player state subscription.
override
toggleAutoQuality() Future<void>
Toggles the auto-quality adjustment setting.
override
toString() String
A string representation of this object.
inherited

Operators

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