|
@@ -319,7 +319,11 @@ public class BFRecordExport {
|
|
guard let totalDuration = data?.reduce(0.0, { partialResult, itemModell in
|
|
guard let totalDuration = data?.reduce(0.0, { partialResult, itemModell in
|
|
var modelDuraion = 0.0
|
|
var modelDuraion = 0.0
|
|
if itemModell.mediaType == .IMAGE {
|
|
if itemModell.mediaType == .IMAGE {
|
|
- modelDuraion = itemModell.materialDuraion
|
|
|
|
|
|
+ if itemModell.voiceStickers.count == 0 && synthesisAll {
|
|
|
|
+ modelDuraion += 2
|
|
|
|
+ }else {
|
|
|
|
+ modelDuraion = itemModell.materialDuraion
|
|
|
|
+ }
|
|
}else if itemModell.mediaType == .VIDEO{
|
|
}else if itemModell.mediaType == .VIDEO{
|
|
modelDuraion = itemModell.dealedDurationRanges.reduce(0.0) { partialResult, srange in
|
|
modelDuraion = itemModell.dealedDurationRanges.reduce(0.0) { partialResult, srange in
|
|
// partialResult + (!synthesisAll && srange.isRecord) ?
|
|
// partialResult + (!synthesisAll && srange.isRecord) ?
|