MethodChannelAudioplayersPlatform class

Inheritance
Mixed in types

Properties

completeStream Stream<ForPlayer<void>>
no setterinherited
durationStream Stream<ForPlayer<Duration>>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
positionStream Stream<ForPlayer<Duration>>
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seekCompleteStream Stream<ForPlayer<void>>
no setterinherited

Methods

dispose() Future<void>
inherited
emitComplete(String playerId) → void
inherited
emitDuration(String playerId, Duration 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 nonexistent 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
setBalance(String playerId, double balance) Future<void>
Sets the stereo balance.
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