Browse Source

feat: 打印出播放时间进度

TIANYONG 9 tháng trước cách đây
mục cha
commit
6fa8e04d8d
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      src/pages/detail/runtime.ts

+ 5 - 0
src/pages/detail/runtime.ts

@@ -429,6 +429,11 @@ export const refreshIndex = (ctime?: number) => {
     const index = getIndex(detailState.times, currentTimeNum)
     // 监听app返回的ctime
     // console.log(777777777,index,ctime,state.audiosInstance.audio.currentTime)
+    if (state.evaluatingStatus) {
+      console.log('评测模式','app返回的播放进度',ctime)
+    } else {
+      console.log('练习模式','h5播放器的播放进度',state.audiosInstance.audio.currentTime)
+    }
     dynamicShowPlaySpeed(index);
     state.activeIndex = index
     removeRepateBackground(index)