MethodChannelAudioplayersPlatform class Null safety

Inheritance
Mixed in types

Constructors

MethodChannelAudioplayersPlatform()

Properties

completeStream Stream<ForPlayer<void>>
read-only, inherited
durationStream Stream<ForPlayer<Duration>>
read-only, inherited
hashCode int
The hash code for this object.
read-only, inherited
playerStateStream Stream<ForPlayer<PlayerState>>
read-only, inherited
positionStream Stream<ForPlayer<Duration>>
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
seekCompleteStream Stream<ForPlayer<void>>
read-only, inherited

Methods

dispose() Future<void>
@mustCallSuper, inherited
emitComplete(String playerId) → void
inherited
emitDuration(String playerId, Duration value) → void
inherited
emitPlayerState(String playerId, PlayerState value) → void
inherited
emitPosition(String playerId, Duration value) → void
inherited
emitSeekComplete(String playerId) → void
inherited
getCurrentPosition(String playerId) Future<int?>
Returns the current position of playback, in milliseconds, if available.
override
getDuration(String playerId) Future<int?>
Returns the duration of the media, in milliseconds, if available.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
pause(String playerId) Future<void>
Pauses the audio that is currently playing.
override
platformCallHandler(MethodCall call) Future<void>
release(String playerId) Future<void>
Releases the resources associated with this media player.
override
resume(String playerId) Future<void>
Resumes the audio that has been paused or stopped.
override
seek(String playerId, Duration position) Future<void>
Moves the cursor to the desired position.
override
setAudioContext(String playerId, AudioContext context) Future<void>
override
setPlaybackRate(String playerId, double playbackRate) Future<void>
Sets the playback rate.
override
setPlayerMode(String playerId, PlayerMode playerMode) Future<void>
override
setReleaseMode(String playerId, ReleaseMode releaseMode) Future<void>
Sets the release mode.
override
setSourceBytes(String playerId, Uint8List bytes) Future<void>
Configures the play to read the audio from a byte array.
override
setSourceUrl(String playerId, String url, {bool? isLocal}) Future<void>
Configures the player to read the audio from a URL.
override
setVolume(String playerId, double volume) Future<void>
Sets the volume (amplitude).
override
stop(String playerId) Future<void>
Stops the audio that is currently playing.
override
toString() String
A string representation of this object.
inherited

Operators

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