Type alias AudioSourceState

AudioSourceState: "stopped" | "playing" | "paused"

Processing state of the audio buffer:

  • "stopped": The SDK stops processing the audio buffer. Reasons may include:
  • The SDK finishes processing the audio buffer.
  • The user manually stops the processing of the audio buffer.
  • "playing": The SDK is processing the audio buffer.
  • "paused": The SDK pauses processing the audio buffer.

You can get the state with [BufferSourceAudioTrack.on("source-state-change")]IBufferSourceAudioTrack.event_source_state_change.