attachAudio method

  1. @override
Future<void> attachAudio(
  1. AudioSource? audio
)
override

Attaches an AudioSource to this stream.

Implementation

@override
Future<void> attachAudio(AudioSource? audio) async {
  assert(_memory != null);
  RtmpStreamPlatform.instance
      .attachAudio({"memory": _memory, "source": audio?.toMap()});
}