|
@@ -569,6 +569,7 @@ extension BFRecordExport {
|
|
|
//add by ak 处理背景音乐 如果选择了背景音乐添加背景音乐音轨
|
|
|
BFLog(message: "合成视频总时长:\(composition.duration.seconds)")
|
|
|
if bgmModel != nil, bgmModel?.wavFilePath != nil {
|
|
|
+ bgmModel?.startTime = bgmModel?.currentTime ?? 0.0
|
|
|
let bgmParameters = PQPlayerViewModel.dealWithBGMTrack(bgmData: bgmModel!, totalDuration: composition.duration.seconds, composition: composition)
|
|
|
if bgmParameters.count > 0 {
|
|
|
tempParameters += bgmParameters
|