MethodChannelAudioPlayer class
An implementation of AudioPlayerPlatform that uses method channels.
- Inheritance
-
- Object
- AudioPlayerPlatform
- MethodChannelAudioPlayer
Constructors
Properties
- hashCode → int
-
The hash code for this object.
read-only, inherited
- id → String
-
final, inherited
-
playbackEventMessageStream
→ Stream<
PlaybackEventMessage> -
A stream of playback events.
read-only, override
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
concatenatingInsertAll(
ConcatenatingInsertAllRequest request) → Future< ConcatenatingInsertAllResponse> -
Inserts audio sources into the given concatenating audio source.
override
-
concatenatingMove(
ConcatenatingMoveRequest request) → Future< ConcatenatingMoveResponse> -
Moves an audio source within a concatenating audio source.
override
-
concatenatingRemoveRange(
ConcatenatingRemoveRangeRequest request) → Future< ConcatenatingRemoveRangeResponse> -
Removes audio sources from the given concatenating audio source.
override
-
dispose(
DisposeRequest request) → Future< DisposeResponse> -
This method has been superceded by JustAudioPlatform.disposePlayer.
For backward compatibility, this method will still be called as a
fallback if JustAudioPlatform.disposePlayer is not implemented.
override
-
load(
LoadRequest request) → Future< LoadResponse> -
Loads an audio source.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
pause(
PauseRequest request) → Future< PauseResponse> -
Pauses playback.
override
-
play(
PlayRequest request) → Future< PlayResponse> -
Plays the current audio source at the current index and position.
override
-
seek(
SeekRequest request) → Future< SeekResponse> -
Seeks to the given index and position.
override
-
setAndroidAudioAttributes(
SetAndroidAudioAttributesRequest request) → Future< SetAndroidAudioAttributesResponse> -
On Android, sets the audio attributes, and does nothing on other
platforms.
override
-
setAutomaticallyWaitsToMinimizeStalling(
SetAutomaticallyWaitsToMinimizeStallingRequest request) → Future< SetAutomaticallyWaitsToMinimizeStallingResponse> -
On iOS and macOS, sets the automaticallyWaitsToMinimizeStalling option,
and does nothing on other platforms.
override
-
setLoopMode(
SetLoopModeRequest request) → Future< SetLoopModeResponse> -
Sets the loop mode.
override
-
setShuffleMode(
SetShuffleModeRequest request) → Future< SetShuffleModeResponse> -
Sets the shuffle mode.
override
-
setShuffleOrder(
SetShuffleOrderRequest request) → Future< SetShuffleOrderResponse> -
Sets the shuffle order.
override
-
setSpeed(
SetSpeedRequest request) → Future< SetSpeedResponse> -
Changes the playback speed.
override
-
setVolume(
SetVolumeRequest request) → Future< SetVolumeResponse> -
Changes the volume.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited