attachStreamToVideo method

  1. @override
Future<void> attachStreamToVideo(
  1. MediaStream stream,
  2. VideoElement videoSource
)
override

Implementation

@override
Future<void> attachStreamToVideo(
  MediaStream stream,
  VideoElement videoSource,
) async {
  _reader?.addVideoSource(videoSource, stream);
  _reader?.videoElement = videoSource;
  _reader?.stream = stream;
  localMediaStream = stream;
  await videoSource.play();
}