Commit 2dcea14c authored by liujiangnan's avatar liujiangnan

debug

parent e07b15f8
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
<div class="video-cover"> <div class="video-cover">
<img src="../lib/images/video-cover.png" class="video-cover__image"> <img src="../lib/images/video-cover.png" class="video-cover__image">
</div> </div>
<video id="video" class="video" src="" muted></video> <video id="video" class="video" src="" muted preload="auto"></video>
</div> </div>
<div class="play-speed-content"> <div class="play-speed-content">
<p class="speed" style="font-size: 0.4rem; line-height: 0.7rem;">倍数</p> <p class="speed" style="font-size: 0.4rem; line-height: 0.7rem;">倍数</p>
......
...@@ -246,7 +246,10 @@ class PlayView { ...@@ -246,7 +246,10 @@ class PlayView {
$(".video").attr("src", this.data.video); $(".video").attr("src", this.data.video);
const video = $("#video")[0]; const video = $("#video")[0];
video.currentTime = 1; video.play();
setTimeout(() => {
video.pause();
}, 10);
let i = setInterval(() => { let i = setInterval(() => {
if (video.readyState > 0) { if (video.readyState > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment