ByteArkPlayerControllerPlatform class abstract
Abstract class defining the platform interface for controlling the ByteArk Player.
This class must be extended by platform-specific implementations that register themselves to provide platform-specific functionality.
- Inheritance
-
- Object
- PlatformInterface
- ByteArkPlayerControllerPlatform
- Implementers
Constructors
- ByteArkPlayerControllerPlatform.new()
- Constructs a ByteArkPlayerControllerPlatform.
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
-
currentPosition(
) → Future< double?> - Retrieves the current playback position.
-
dispose(
) → void - Releases resources held by the player.
-
getAudios(
) → Future< List< ByteArkPlayerMediaTrack> > - Retrieves the list of available audio tracks.
-
getAvailablePlaybackSpeeds(
) → Future< List< double> > - Retrieves the available playback speeds.
-
getCurrentAudio(
) → Future< ByteArkPlayerMediaTrack?> - Retrieves the current audio track.
-
getCurrentPlaybackSpeed(
) → Future< double?> - Retrieves the current playback speed.
-
getCurrentResolution(
) → Future< ByteArkPlayerMediaTrack?> - Retrieves the current video resolution.
-
getCurrentSubtitle(
) → Future< ByteArkPlayerMediaTrack?> - Retrieves the current subtitle track.
-
getCurrentTime(
) → Future< int> - Gets the current time.
-
getDuration(
) → Future< int> - Gets the duration of content.
-
getResolutions(
) → Future< List< ByteArkPlayerMediaTrack> > - Retrieves the list of available resolutions.
-
getSubtitles(
) → Future< List< ByteArkPlayerMediaTrack> > - Retrieves the list of available subtitle tracks.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → void - Pauses playback.
-
play(
) → void - Starts playback.
-
seekBackward(
) → void - Seeks backward in the media.
-
seekForward(
) → void - Seeks forward in the media.
-
seekTo(
int position) → void - Seeks to a specific position in the media.
-
setAudio(
ByteArkPlayerMediaTrack track) → void - Sets the active audio track.
-
setPlaybackSpeed(
double speed) → void - Sets the playback speed.
-
setResolution(
ByteArkPlayerMediaTrack track) → void - Sets the active resolution.
-
setSubtitle(
ByteArkPlayerMediaTrack track) → void - Sets the active subtitle track.
-
switchMediaSource(
ByteArkPlayerConfig config) → void -
Switches the media source with a new
config
. -
toggleFullScreen(
) → void - Toggles fullscreen mode.
-
togglePlayback(
) → void - Toggles between play and pause states.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ ByteArkPlayerControllerPlatform
-
The default instance of ByteArkPlayerControllerPlatform to use.
getter/setter pair