浏览代码

fix: #trello(【创意模板】导入图片素材后进入裁剪页,未经过任何处理点击确定键,合成后再返回,没有播放过的素材视频区域会一片黑)

Melody 5 年之前
父节点
当前提交
2559ed1794
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      SuperShow/UI/Template/WSSCreativeTemplateEditViewController.swift

+ 4 - 4
SuperShow/UI/Template/WSSCreativeTemplateEditViewController.swift

@@ -212,11 +212,11 @@ private extension WSSCreativeTemplateEditViewController {
                                             videoSize: videoSize,
                                             videoDegress: WSSMediaOperationTool.degressFromVideo(asset: videoModel.vaildVideoAsset),
                                             mediaModel: mediaModel)
-            videoModel.cropModel = cropModel
-
+            
             // 创建临时视图做初始化
-            _ = WSSVideoCropView(frame: videoCropView?.frame ?? CGRect.zero, videoCropModel: cropModel)
-
+            let cropView = WSSVideoCropView(frame: videoCropView?.frame ?? CGRect.zero, videoCropModel: cropModel)
+            cropView.changeCropModel(cropModel, isInit: true)
+            videoModel.cropModel = cropModel
         } else {
             //
         }