|
@@ -215,7 +215,9 @@ class INVideoExportController: BFBaseViewController {
|
|
|
|
|
|
sself.resetViewStatus()
|
|
|
sself.coverIV.isHidden = true
|
|
|
-
|
|
|
+ sself.progressView.snp.updateConstraints { make in
|
|
|
+ make.width.equalTo(0)
|
|
|
+ }
|
|
|
if let fileUrl = url {
|
|
|
sself.sliderView?.isHidden = false
|
|
|
sself.sliderView?.playStart()
|
|
@@ -359,12 +361,8 @@ class INVideoExportController: BFBaseViewController {
|
|
|
|
|
|
leftButton(image: nil, imageName: nil, tintColor: UIColor.white)
|
|
|
|
|
|
-// backV.frame = CGRect(x: 0, y: navHeadImageView?.bottomY ?? 0, width: cScreenWidth, height: cScreenWidth)
|
|
|
-// backV.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(play)))
|
|
|
-
|
|
|
addSubviews()
|
|
|
|
|
|
-// export.startExprot()
|
|
|
// 默认保留录音合成
|
|
|
saveAllBtn.isSelected = true
|
|
|
|
|
@@ -454,17 +452,16 @@ class INVideoExportController: BFBaseViewController {
|
|
|
make.right.equalTo(completeBtn)
|
|
|
}
|
|
|
|
|
|
- DispatchQueue.main.asyncAfter(deadline: .now() + 0) { [weak self] in
|
|
|
- guard let sself = self else {
|
|
|
- return
|
|
|
- }
|
|
|
-// sself.backV.frame = CGRect(x: 0, y:0, width: sself.view.width, height: (sself.bottomView.frame.minY ))
|
|
|
-// let height = sself.backV.height - cDevice_iPhoneNavBarAndStatusBarHei + 30
|
|
|
-// let width = height * (cScreenWidth / cScreenHeigth)
|
|
|
-// sself.playerLayer.frame = CGRect(x: (sself.backV.width - width)/2, y: cDevice_iPhoneNavBarAndStatusBarHei - 30, width: width, height: height)
|
|
|
- sself.playerLayer.frame = sself.coverIV.frame
|
|
|
-
|
|
|
- }
|
|
|
+// DispatchQueue.main.asyncAfter(deadline: .now() + 0) { [weak self] in
|
|
|
+// guard let sself = self else {
|
|
|
+// return
|
|
|
+// }
|
|
|
+//
|
|
|
+// }
|
|
|
+ }
|
|
|
+ override func viewDidLayoutSubviews() {
|
|
|
+ super.viewDidLayoutSubviews()
|
|
|
+ playerLayer.frame = coverIV.frame
|
|
|
}
|
|
|
|
|
|
/// 添加播放进度视图
|