openVideo static method
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;
}
}