|
@@ -63,14 +63,13 @@ class DubbingLib {
|
|
|
return _channel.invokeMethod("playRecordAudio", {"fileName": filePath});
|
|
return _channel.invokeMethod("playRecordAudio", {"fileName": filePath});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- /// 返回合成视频文件地址 这里的bgmPath是已经下载的背景音乐文件地址:
|
|
|
|
|
Future<String> startMixinAudio(String videoId, String bgmUrl, String bgmPath, List<int> endTimeList,
|
|
Future<String> startMixinAudio(String videoId, String bgmUrl, String bgmPath, List<int> endTimeList,
|
|
|
List<String> decodeAudioPathList, List<int> durationList, String localVideoPath) {
|
|
List<String> decodeAudioPathList, List<int> durationList, String localVideoPath) {
|
|
|
return _channel.invokeMethod("startMixinAudio", {"videoId": videoId, "bgmUrl": bgmUrl,
|
|
return _channel.invokeMethod("startMixinAudio", {"videoId": videoId, "bgmUrl": bgmUrl,
|
|
|
"endTimeList": endTimeList, "audioDecodePaths": decodeAudioPathList, "durationList": durationList, "videoPath": localVideoPath,
|
|
"endTimeList": endTimeList, "audioDecodePaths": decodeAudioPathList, "durationList": durationList, "videoPath": localVideoPath,
|
|
|
"bgmPath": bgmPath, "pathBgmDecode": bgmDecodePath, "pathBgmRecordSync": audioSyncPath, "pathBgmRecordDecodeSync": audioSyncDecodePath, "pathVideoMixin": videoMixInPath});
|
|
"bgmPath": bgmPath, "pathBgmDecode": bgmDecodePath, "pathBgmRecordSync": audioSyncPath, "pathBgmRecordDecodeSync": audioSyncDecodePath, "pathVideoMixin": videoMixInPath});
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
Future<void> cleanAudioData(String videoId) {
|
|
Future<void> cleanAudioData(String videoId) {
|
|
|
return _channel.invokeMethod("cleanAudioData", {"videoId": videoId, "pathAudio": recordPath, "pathAudioDecode": recordDecodePath});
|
|
return _channel.invokeMethod("cleanAudioData", {"videoId": videoId, "pathAudio": recordPath, "pathAudioDecode": recordDecodePath});
|
|
|
}
|
|
}
|