The reader of an AudioStream. VERIFY against @livekit/rtc-node: cancel() runs the stream source's cancel, which stops listening for the stream's frames and disposes its native handle (0.13.29's AudioStreamSource.cancel).
AudioStream
cancel()
cancel
AudioStreamSource.cancel
Cancels the stream: a pending read() resolves done, queued frames are dropped, and the native stream is released.
read()
done
Optional
Resolves with the next frame, or done once the stream ended or was cancelled.
The reader of an
AudioStream. VERIFY against @livekit/rtc-node:cancel()runs the stream source'scancel, which stops listening for the stream's frames and disposes its native handle (0.13.29'sAudioStreamSource.cancel).