WebAudioplayersPlatform class

Inheritance
  • Object
  • PlatformInterface
  • WebAudioplayersPlatform

Constructors

WebAudioplayersPlatform()

Properties

hashCode int
The hash code for this object.
no setterinherited
players Map<String, WrappedPlayer>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

create(String playerId) Future<void>
Create a player instance for the given playerId.
dispose(String playerId) Future<void>
Dispose the player instance with the given playerId.
emitError(String playerId, String code, String message) Future<void>
emitLog(String playerId, String message) Future<void>
getCurrentPosition(String playerId) Future<int?>
Returns the current position of playback, in milliseconds, if available.
getDuration(String playerId) Future<int?>
Returns the duration of the media, in milliseconds, if available.
getEventStream(String playerId) Stream<AudioEvent>
getPlayer(String playerId) WrappedPlayer
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.
release(String playerId) Future<void>
Releases the resources associated with this media player.
resume(String playerId) Future<void>
Resumes the audio that has been paused or stopped.
seek(String playerId, Duration position) Future<void>
Moves the cursor to the desired position.
setAudioContext(String playerId, AudioContext audioContext) Future<void>
setBalance(String playerId, double balance) Future<void>
Sets the stereo balance.
setPlaybackRate(String playerId, double playbackRate) Future<void>
Sets the playback rate.
setPlayerMode(String playerId, PlayerMode playerMode) Future<void>
setReleaseMode(String playerId, ReleaseMode releaseMode) Future<void>
Sets the release mode.
setSourceBytes(String playerId, Uint8List bytes, {String? mimeType}) Future<void>
Configures the play to read the audio from a byte array.
setSourceUrl(String playerId, String url, {bool? isLocal, String? mimeType}) Future<void>
Configures the player to read the audio from a URL.
setVolume(String playerId, double volume) Future<void>
Sets the volume (amplitude).
stop(String playerId) Future<void>
Stops the audio that is currently playing.
toString() String
A string representation of this object.
inherited

Operators

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