setFormat method

Future setFormat(
  1. string format
)

{zh} @brief 格式。若传入 Format 的话,以您传入参数为准,否则以系统识别出的 Format 为准。若遇到特殊文件无法识别,Format 可能为空。 @param format 格式

Implementation

Future setFormat(string format) async {
  $a() => ($instance as $p_a.BDVideoUploader).setFormat(format);
  $i() => ($instance as $p_i.BDVideoUploaderClient).setFormat(format);

  if (Platform.isAndroid) {
    return $a();
  } else if (Platform.isIOS) {
    return $i();
  } else {
    throw UnsupportedError(
      'Not Support Platform ${Platform.operatingSystem}',
    );
  }
}