attachStreamToVideo method

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

Implementation

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