playStream abstract method

Future<PlayStreamResponse> playStream({
  1. required AudioInfo audioInfo,
  2. required Stream<Uint8List> audioStream,
  3. Map<String, dynamic>? extra,
})

Stream audio chunks to this audio output device for playback.

The caller provides a Stream of raw audio bytes; each chunk must match the codec and format described by audioInfo. Playback begins on the device as chunks arrive, before the stream is exhausted.

Implementation

Future<PlayStreamResponse> playStream({
  required AudioInfo audioInfo,
  required Stream<Uint8List> audioStream,
  Map<String, dynamic>? extra,
});