saveMP4 static method

Future<bool> saveMP4(
  1. String srcPath,
  2. String destPath, {
  3. int enableSub = 0,
  4. int destWidth = 0,
  5. int destHeight = 0,
})

录像保存

Implementation

static Future<bool> saveMP4(String srcPath, String destPath,
    {int enableSub = 0, int destWidth = 0, int destHeight = 0}) async {
  if (Platform.isAndroid) {
    destWidth = 0;
    destHeight = 0;
  }
  return await app_player_channel.invokeMethod("app_player_save_mp4",
      [srcPath, destPath, enableSub, destWidth, destHeight]);
}