PlayerStream class

Constructors

PlayerStream()
factory

Properties

audioStream StreamSink<Uint8List>
Stream's sink to receive PCM 16bit data to send to Player
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status Stream<SoundStreamStatus>
Current status of the PlayerStream
no setter

Methods

dispose() → void
Stop and close all streams. This cannot be undone Only call this method if you don't want to use this anymore
initialize({int sampleRate = 16000, bool showLogs = false}) Future
Initialize Player with specified sampleRate
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start() Future
Player will start receiving audio chunks (PCM 16bit data) to audiostream as Uint8List to play audio.
stop() Future
Player will stop receiving audio chunks.
toString() String
A string representation of this object.
inherited
usePhoneSpeaker(bool value) Future
Switching/Forcing player to use phone's speaker.
writeChunk(Uint8List data) Future
Push audio data (PCM 16bit data) to player buffer as Uint8List to play audio. Chunks will be queued/scheduled to play sequentially

Operators

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