javascript - There is a problem when JS sets the currentTime of the Video object. IE, Edge, and Firefox can all set it, but chrom...
为情所困
为情所困 2017-05-16 13:36:27
0
2
485

As shown in the picture, I set up an event that jumps to the video playback position as long as it is clicked. It can jump perfectly in other browsers, but it is different in the Chrom browser. Every time the event is triggered, it does not care about the current video. When it reaches that position, it jumps directly to the first frame of the video and plays it again. Why is this?

为情所困
为情所困

reply all(2)
滿天的星座

Write it in canplaythrought to ensure that the video resources have been loaded

漂亮男人

If you are using webstorm for debugging, it is recommended that you do not open it directly in webstorm. I have encountered the same situation before, and later found that it is normal to open it directly as a file, but problems will occur when using webstorm.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!