Przeglądaj źródła

1,修改自定义速度顺序

jsonwang 3 lat temu
rodzic
commit
71f247663c

+ 6 - 6
BFFramework/Classes/Stuckpoint/Controller/PQStuckPointEditerController.swift

@@ -1815,17 +1815,17 @@ extension PQStuckPointEditerController {
          */
         // 1.2)生成快慢速的默认值
         if selectedTotalDuration >= 120 && selectedTotalDuration <= 144 {
-            lastSpeedSelectIndex = 0
+            lastSpeedSelectIndex = 5
         } else if selectedTotalDuration >= 70 && selectedTotalDuration < 120 {
-            lastSpeedSelectIndex = 1
+            lastSpeedSelectIndex = 4
         } else if selectedTotalDuration >= 56 && selectedTotalDuration < 70 {
-            lastSpeedSelectIndex = 2
-        } else if selectedTotalDuration >= 17.5 && selectedTotalDuration < 56 {
             lastSpeedSelectIndex = 3
+        } else if selectedTotalDuration >= 17.5 && selectedTotalDuration < 56 {
+            lastSpeedSelectIndex = 2
         } else if selectedTotalDuration >= 10.5 && selectedTotalDuration < 17.5 {
-            lastSpeedSelectIndex = 4
+            lastSpeedSelectIndex = 1
         } else if selectedTotalDuration > 0 && selectedTotalDuration < 10.5 {
-            lastSpeedSelectIndex = 5
+            lastSpeedSelectIndex = 0
         }
 
         // 如果是再创作进来的安原视频的模式

+ 8 - 7
BFFramework/Classes/Stuckpoint/View/PQSpeedSettingView.swift

@@ -51,15 +51,16 @@ class PQSpeedSettingView: UIView {
             datas.removeAll()
             if viewType == 1 {
                 let tempTitle =
-                    ["6.0x\n1.2x",
-                     "5.0x\n1.0x",
-                     "3.0x\n0.5x",
-                     "2.4x\n0.4x",
+                    ["1.0x\n0.2x",
                      "1.8x\n0.3x",
-                     "1.0x\n0.2x",
+                     "2.4x\n0.4x",
+                     "3.0x\n0.5x",
+                     "5.0x\n1.0x",
+                     "6.0x\n1.2x",
                      "自定义\n快慢速"]
-                let tempMaxSpeed = [6,   5,   3,   2.4, 1.8, 1.0, 0.0]
-                let tempMinSpeed = [1.2, 1.0, 0.5, 0.4, 0.3, 0.2, 0.0]
+                
+                let tempMaxSpeed = [1.0,   1.8,   2.4,   3, 5, 6, 0.0]
+                let tempMinSpeed = [0.2,   0.3,  0.4,0.5,1.0,1.2, 0.0]
                 for (index, str) in tempTitle.enumerated() {
                     let model = PQSpeedTitleModel()
                     model.title = str