FlutterAudioPlayer class

LocalAudioOutput backed by a native PCM push stream.

Constructors

FlutterAudioPlayer({required String cacheDir, PcmPlaybackBackend? backend})

Properties

cacheDir String
Retained for source compatibility with older callers. Streaming playback no longer creates scratch files in this directory.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
play(Stream<AudioChunk> audio) Future<void>
Plays audio chunks as they arrive.
stop() Future<void>
Immediately truncates playback (barge-in). Safe to call when idle.
toString() String
A string representation of this object.
inherited

Operators

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