|
@@ -47,6 +47,7 @@ class PQStuckPointEditerController: PQBaseViewController {
|
|
|
|
|
|
// add by ak 是否是再创作模式
|
|
|
var isReCreate: Bool = false
|
|
|
+ public var reCreateVideoData: PQReCreateModel? // 再创作数据
|
|
|
// 最后一个选择的模式 BTN 用于还原选中状态
|
|
|
var lastEditModelBtn: UIButton?
|
|
|
|
|
@@ -480,12 +481,6 @@ class PQStuckPointEditerController: PQBaseViewController {
|
|
|
// 三种模式修改
|
|
|
@objc func editModelClick(sender: UIButton) {
|
|
|
|
|
|
- //1,根据条件判断哪些功能不可用直接出提示
|
|
|
-// if(selectedDataCount == selectedImageDataCount && (sender == speedStuckBtn || sender == onlyMusicBtn )){
|
|
|
-// BFLog(message: "全是图片 \(selectedDataCount) \(selectedImageDataCount)")
|
|
|
-// cShowHUB(superView: self.view, msg: "1111")
|
|
|
-// return
|
|
|
-// }
|
|
|
// if sender.isSelected {
|
|
|
// BFLog(message: "已经是选中状态")
|
|
|
// return
|
|
@@ -1697,9 +1692,11 @@ extension PQStuckPointEditerController {
|
|
|
if !isSynchroMusicInfoSuccess || !isStuckPointDataSuccess || !isExportVideosSuccess {
|
|
|
return
|
|
|
}
|
|
|
- createPorjectData()
|
|
|
- BFLog(message: "界面编辑界面时参数 选择素材时长:\(selectedTotalDuration) 选择素材总数:\(selectedDataCount) 选择图片总数\(selectedImageDataCount)")
|
|
|
|
|
|
+
|
|
|
+ createPorjectData()
|
|
|
+ BFLog(message: "界面编辑界面时参数 选择素材时长:\(selectedTotalDuration) 选择素材总数:\(selectedDataCount) 选择图片总数\(selectedImageDataCount) 再创建类型:\(reCreateVideoData?.rhythmMode)")
|
|
|
+
|
|
|
|
|
|
//1 生成默认参数值
|
|
|
/*
|
|
@@ -1751,6 +1748,29 @@ extension PQStuckPointEditerController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
+ //如果是再创作进来的安原视频的模式
|
|
|
+ if(reCreateVideoData != nil){
|
|
|
+
|
|
|
+ BFLog(message: "是再创作进来的 \(reCreateVideoData!.rhythmMode)")
|
|
|
+ switch reCreateVideoData!.rhythmMode {
|
|
|
+ case 1:
|
|
|
+ editModelClick(sender: jumpPointBtn)
|
|
|
+ break
|
|
|
+ case 2:
|
|
|
+ editModelClick(sender: speedStuckBtn)
|
|
|
+
|
|
|
+ break
|
|
|
+ case 3:
|
|
|
+ editModelClick(sender: onlyMusicBtn)
|
|
|
+ break
|
|
|
+ default: break
|
|
|
+
|
|
|
+ }
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/*
|
|
|
文档规则 https://w42nne6hzg.feishu.cn/docs/doccnQZm1uCfkU4QtJb5fLxYk4d#
|
|
|
*/
|