Can js intercept the video length of video tags?

the video implemented by html5 video is introduced, and the video length is 30s. Can I intercept and play the video for 10 to 30s through js?


take a look at this article segmented playback should be useful to you


there are exposed attributes to set the start time of playback
as for the end time, you can get the current playback time by monitoring playback

.
Menu