openVideo static method

Future<void> openVideo(
  1. String url, {
  2. int screenMode = 102,
})

screenMode 播放参数,103横屏全屏,104竖屏全屏。默认102

Implementation

static Future<void> openVideo(String url, {int screenMode = 102}) async {
  if (defaultTargetPlatform == TargetPlatform.android) {
    final Map<String, dynamic> params = <String, dynamic>{
      'screenMode': screenMode,
      'url': url
    };
    return await _channel.invokeMethod("openVideo", params);
  } else {
    return;
  }
}