浏览代码

feat: 打印出播放时间进度

TIANYONG 9 月之前
父节点
当前提交
6fa8e04d8d
共有 1 个文件被更改,包括 5 次插入0 次删除
  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)