|
@@ -346,17 +346,17 @@ export default defineComponent({
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
- console.log(
|
|
|
- uncachedTime,
|
|
|
- duration,
|
|
|
- cachedDuration,
|
|
|
- 'duration',
|
|
|
- buffterCatchArray,
|
|
|
- element.currentTime,
|
|
|
- currentLength + '%',
|
|
|
- isWaiting,
|
|
|
- currentBytesLoaded <= previousBytesLoaded
|
|
|
- );
|
|
|
+ // console.log(
|
|
|
+ // uncachedTime,
|
|
|
+ // duration,
|
|
|
+ // cachedDuration,
|
|
|
+ // 'duration',
|
|
|
+ // buffterCatchArray,
|
|
|
+ // element.currentTime,
|
|
|
+ // currentLength + '%',
|
|
|
+ // isWaiting,
|
|
|
+ // currentBytesLoaded <= previousBytesLoaded
|
|
|
+ // );
|
|
|
|
|
|
const isNoBuffer = currentBytesLoaded <= previousBytesLoaded;
|
|
|
// 如果存在未缓存的时间段,可以根据具体情况做出相应处理
|
|
@@ -485,6 +485,7 @@ export default defineComponent({
|
|
|
const currentTime = videoItem.value.currentTime();
|
|
|
videoItem.value.load();
|
|
|
videoItem.value.currentTime(currentTime);
|
|
|
+ pause();
|
|
|
} else if (val.type === 'offline') {
|
|
|
videoFroms.isOnline = false;
|
|
|
}
|
|
@@ -511,6 +512,7 @@ export default defineComponent({
|
|
|
|
|
|
const pause = () => {
|
|
|
videoItem.value.pause();
|
|
|
+ videoFroms.paused = true;
|
|
|
};
|
|
|
|
|
|
onUnmounted(() => {
|