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

createPlayer(String url) → void
override
getPosition() → Future<Duration>
Retrieves the current playback position of the player.
override
getQualities({String? url}) → Future<List<String>>
Retrieves the list of available streaming qualities.
override
getThumbnail({String? url}) → Future<Uint8List>
Get Screenshot of the player. Returns a Future that resolves to a Uint8List representing the path of the screenshot.
override
isAutoQuality() → Future<bool>
Checks if the player is set to auto-quality adjustment mode.
override
multiPlayer(List<String> urls, {required bool autoPlay, void onData(dynamic)?, void onError(dynamic)?}) → void
Sets the player to play multiple streams simultaneously.
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
selectPlayer(String url) → void
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({String? url}) → 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