attachVideo method

  1. @override
Future<void> attachVideo(
  1. VideoSource? video
)
override

Attaches a VideoSource to this stream.

Implementation

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