PlayerStream class
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