IvsPlayerInterface class abstract
IvsPlayerInterface serves as the abstract base class for platform-specific implementations of the IVS (Interactive Video Service) Player functionality. This interface ensures that any platform-specific implementation follows the same structure and behavior.
- Inheritance
-
- Object
- PlatformInterface
- IvsPlayerInterface
- Implementers
Constructors
- IvsPlayerInterface()
- Constructor for IvsPlayerInterface which passes a unique token to the superclass.
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
-
getPosition(
) → Future< Duration> - Retrieves the current playback position of the player.
-
getQualities(
) → Future< List< String> > - Retrieves the list of available streaming qualities.
-
isAutoQuality(
) → Future< bool> - Checks if the player is currently set to auto-quality adjustment mode.
-
muteUnmute(
) → void - Toggles mute/unmute for the player's audio.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → void - Pauses the playback of the player.
-
resume(
) → void - Resumes the playback if the player was paused.
-
seekTo(
Duration duration) → Future< void> -
Seeks the player to a specific
duration
within the content. -
setQuality(
String value) → Future< void> -
Sets the streaming quality to the specified
value
. -
startPlayer(
String url, {required bool autoPlay, void onData(dynamic)?, void onError(dynamic)?}) → void -
Starts the player with the given
url
. Optionally, it can auto-play the content. -
stopPlayer(
) → void - Stops the player from playing and releases any resources it was using.
-
toggleAutoQuality(
) → Future< void> - Toggles the auto-quality adjustment setting for the player.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ IvsPlayerInterface
-
Getter to retrieve the current instance of IvsPlayerInterface.
getter/setter pair