cladera / videojs-offset

VideoJS plugin for play a segment of a video.
MIT License
64 stars 43 forks source link

Display correct start (poster) image for the video sequence #55

Open chdh opened 4 years ago

chdh commented 4 years ago

When the video is loaded without an explicit poster image and with autoplay = false, the first image of the entire video is displayed and not the first image of the specified video sequence (the video image at the start offset).

In my application program, I can solve this problem with the following code:

player.one("canplay", () => player.currentTime(0));