ソースを参照

feat: 右上角速度显示逻辑1.1

TIANYONG 9 ヶ月 前
コミット
5ed0a69047
1 ファイル変更6 行追加0 行削除
  1. 6 0
      src/subpages/colexiu/buttons/player.tsx

+ 6 - 0
src/subpages/colexiu/buttons/player.tsx

@@ -14,7 +14,13 @@ export default defineComponent({
     const [wiredStatus] = useWiredHeadsetCheck()
     const [wiredStatus] = useWiredHeadsetCheck()
 
 
     const reset = () => {
     const reset = () => {
+      const currentItem: any = detailState.times[0];
+      const currentSpeed = currentItem?.measureSpeed ? currentItem.measureSpeed : detailState.baseSpeed;
+      runtime.speed = currentSpeed
+      runtime.playIngSpeed = currentSpeed
+      runtime.activeIndex = 0
       runtime.basePlayRate = 1;
       runtime.basePlayRate = 1;
+      RuntimeUtils.changeSpeed(currentSpeed)
       if (detailState.activeTick > -1) {
       if (detailState.activeTick > -1) {
         return
         return
       }
       }