Vue project video picture article community video and picture loading problem

problem description

when using the vue development community website to draw up user browsing data browsing headlines or watermelon videos, there is a preview of the video or picture when browsing the app on the mobile end. Click on the preview image to browse the video or picture directly. Why the app I made has to wait until the video has been downloaded before it can be played, while theirs is when you click to play. How do you play a little data and request a little data? is it the front-end technology or the server-side technology?

the environmental background of the problems and what methods you have tried

add video preview picture list using preloading technology


if I understand it correctly, do I want to execute the code after the video is loaded? If so, please see if the following is what you like.
H5 has a video monitoring event: canplaythrough, which can monitor whether the video / audio has been loaded. An example is as follows:

.addEventListener('canplaythrough',function(){ 
    //;
    });
Menu