currentVideo method

Future<VideoPresentation?> currentVideo()

Returns information about the current video presentation.

Implementation

Future<VideoPresentation?> currentVideo() async {
  var result = await _methodChannel
      .invokeMethod<Map<Object?, Object?>>("currentVideo");
  return Future.value(
      result != null ? VideoPresentationMapper.fromMap(result) : null);
}