|
@@ -453,7 +453,8 @@ const setStep = () => {
|
|
export const onPlay = () => {
|
|
export const onPlay = () => {
|
|
console.log("开始播放");
|
|
console.log("开始播放");
|
|
state.playEnd = false;
|
|
state.playEnd = false;
|
|
- offset_duration = browserInfo.xiaomi ? 0.2 : 0.08;
|
|
|
|
|
|
+ // offset_duration = browserInfo.xiaomi ? 0.2 : 0.08;
|
|
|
|
+ offset_duration = 0.2;
|
|
setStep();
|
|
setStep();
|
|
};
|
|
};
|
|
|
|
|
|
@@ -530,7 +531,8 @@ const handlePlaying = () => {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- if (Math.abs(selectEndItem.endtime - currentTime) < offset_duration) {
|
|
|
|
|
|
+ // if (Math.abs(selectEndItem.endtime - currentTime) < offset_duration) {
|
|
|
|
+ if (currentTime - selectEndItem.endtime > offset_duration) {
|
|
console.log("选段播放结束");
|
|
console.log("选段播放结束");
|
|
// 如果为选段评测模式
|
|
// 如果为选段评测模式
|
|
if (state.modeType === "evaluating" && state.isSelectMeasureMode) {
|
|
if (state.modeType === "evaluating" && state.isSelectMeasureMode) {
|