Closed tino-junge closed 8 years ago
approach A) seems promising, just use picture of last frame as poster. so there is no black screen in between anymore and the image itself will just be displayed for one second until next video starts, so its almost not recognizable
Need poster images of correct frame to solve that
If you search for "html5 smooth video transition" you will end up at the MediaSource Api. This technology looks promising for our use case but it's not the way to go. I've spend several hours and I'm getting the notion that the API is designed to implement custom buffering but cannot be abused to stitch different video files together.
Instead, css transformations seem to be a valid solution. I've found this StackOverflow question mentioning a gapless video player with a live demo.
I'm going this way. We have to change movie.js.erb quite a lot: Instead of just one <video>
element, we create many of them and attach event listeners at runtime.
Check if loading of next video file could be done faster, e.g. preloaded or appended on current video stream