|
@@ -21,7 +21,13 @@ class INVideoExportController: BFBaseViewController {
|
|
var hasSaveOnly = false
|
|
var hasSaveOnly = false
|
|
var saveAllUlr = URL(fileURLWithPath: "aaa")
|
|
var saveAllUlr = URL(fileURLWithPath: "aaa")
|
|
var saveOnlyUlr = URL(fileURLWithPath: "aaa")
|
|
var saveOnlyUlr = URL(fileURLWithPath: "aaa")
|
|
- var isExporting = false
|
|
|
|
|
|
+ var isExporting = false {
|
|
|
|
+ didSet {
|
|
|
|
+ if isExporting {
|
|
|
|
+ avplayer.pause()
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
// 预览播放进度
|
|
// 预览播放进度
|
|
lazy var progreddL: UILabel = {
|
|
lazy var progreddL: UILabel = {
|
|
@@ -288,12 +294,12 @@ class INVideoExportController: BFBaseViewController {
|
|
cShowHUB(superView: nil, msg: "正在合成中。。。")
|
|
cShowHUB(superView: nil, msg: "正在合成中。。。")
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ isExporting = true
|
|
bottomView.isHidden = true
|
|
bottomView.isHidden = true
|
|
progressView.isHidden = false
|
|
progressView.isHidden = false
|
|
progressL.isHidden = false
|
|
progressL.isHidden = false
|
|
progreddL.isHidden = true
|
|
progreddL.isHidden = true
|
|
export.startExprot(synthesisAll: saveAllBtn.isSelected)
|
|
export.startExprot(synthesisAll: saveAllBtn.isSelected)
|
|
- isExporting = true
|
|
|
|
UIApplication.shared.isIdleTimerDisabled = true
|
|
UIApplication.shared.isIdleTimerDisabled = true
|
|
}
|
|
}
|
|
|
|
|