MethodChannelByteArkPlayerFlutter class

An implementation of ByteArkPlayerControllerPlatform that uses method channels.

Inheritance

Constructors

MethodChannelByteArkPlayerFlutter.new(String _playerId)
MethodChannelByteArkPlayerFlutter

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

convertToMap(dynamic result) Map<String, dynamic>?
Converts any Map<dynamic, dynamic> into a Map<String, dynamic>
currentPosition() Future<double?>
Retrieves the current playback position.
override
dispose() → void
Releases resources held by the player.
override
getAudios() Future<List<ByteArkPlayerMediaTrack>>
Retrieves the list of available audio tracks.
override
getAvailablePlaybackSpeeds() Future<List<double>>
Retrieves the available playback speeds.
override
getCurrentAudio() Future<ByteArkPlayerMediaTrack?>
Retrieves the current audio track.
override
getCurrentPlaybackSpeed() Future<double?>
Retrieves the current playback speed.
override
getCurrentResolution() Future<ByteArkPlayerMediaTrack?>
Retrieves the current video resolution.
override
getCurrentSubtitle() Future<ByteArkPlayerMediaTrack?>
Retrieves the current subtitle track.
override
getCurrentTime() Future<int>
Gets the current time.
override
getDuration() Future<int>
Gets the duration of content.
override
getResolutions() Future<List<ByteArkPlayerMediaTrack>>
Retrieves the list of available resolutions.
override
getSubtitles() Future<List<ByteArkPlayerMediaTrack>>
Retrieves the list of available subtitle tracks.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → void
Pauses playback.
override
play() → void
Starts playback.
override
seekBackward() → void
Seeks backward in the media.
override
seekForward() → void
Seeks forward in the media.
override
seekTo(int position) → void
Seeks to a specific position in the media.
override
setAudio(ByteArkPlayerMediaTrack track) → void
Sets the active audio track.
override
setPlaybackSpeed(double speed) → void
Sets the playback speed.
override
setResolution(ByteArkPlayerMediaTrack track) → void
Sets the active resolution.
override
setSubtitle(ByteArkPlayerMediaTrack? track) → void
Sets the active subtitle track.
override
switchMediaSource(ByteArkPlayerConfig config) → void
Switches the media source with a new config.
override
toggleFullScreen() → void
Toggles fullscreen mode.
override
togglePlayback() → void
Toggles between play and pause states.
override
toString() String
A string representation of this object.
inherited

Operators

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