|
|
@@ -15,7 +15,7 @@ class DubbingLib {
|
|
|
StreamController _onProgressChange;
|
|
|
StreamController _onRecordProgressChange;
|
|
|
StreamController _onDecodeResultChange;
|
|
|
-
|
|
|
+
|
|
|
Stream<int> get recordProgressChange => _onRecordProgressChange.stream;
|
|
|
|
|
|
Stream<Map> get decodeResultChange => _onDecodeResultChange.stream;
|
|
|
@@ -99,13 +99,13 @@ class DubbingLib {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
- Future<String> startMixinPaintedAudio(List<String> audioPaths, String bgmPath, List<int> durationList, List<int> endTimeList,
|
|
|
- String audioDecodePath, String mixinFilePath, String encodePath) {
|
|
|
+ Future<String> startMixinPaintedAudio(List<String> audioPaths, String bgmPath, List<int> durationList, List<int> endTimeList,
|
|
|
+ String audioDecodePath, String mixinFilePath, String encodePath,List<int> startTimeList) {
|
|
|
return _channel.invokeMethod("startMixinPaintedAudio",
|
|
|
{"audioPaths": audioPaths, "bgmPath": bgmPath, "durationList": durationList, "endTimeList": endTimeList,
|
|
|
- "audioDecodePath": audioDecodePath, "mixinFilePath": mixinFilePath, "encodePath": encodePath});
|
|
|
+ "audioDecodePath": audioDecodePath, "mixinFilePath": mixinFilePath, "encodePath": encodePath,"startTimeList": startTimeList});
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/// 初始化路径
|
|
|
void initPath(
|
|
|
{@required String videoPath, @required String recordPath, @required String recordDecodePath,
|