playAssetVideo static method

Future playAssetVideo(
  1. String path,
  2. String fileName, {
  3. int portraitPath = 2,
  4. int landscapePath = 8,
  5. bool isLooping = false,
})

播放Asset目录下的视频 iOS 读取assets 目录的方法 path 文件存放路径 fileName 路径下面的源文件 isLooping 是否循环

Implementation

static Future<dynamic> playAssetVideo(String path, String fileName,
    {int portraitPath = 2,
    int landscapePath = 8,
    bool isLooping = false}) async {
  _registerPlatformCall();
  return _channel.invokeMethod('playAssetVideo', {
    "path": path,
    "name": fileName,
    "portraitPath": portraitPath,
    "landscapePath": landscapePath,
    "looping": isLooping
  });
}