Use the onloadedmetadata event to get the video's time length, and use the ontimeupdate event to get the current playback progress of the video. The example code is as follows 1. Get the video's time length
When the video is loaded into the video, use the onloadedmetadata event to get the length of the video.
Copy the code