Is it possible to play HTML5 video in reverse?

Is HTML5 <video> tag be play video in reverse, or I have to download 2 videos (forward and backword play). Any solution that avoid user from downloading 2 videos?



Without even going into HTML5 or Javascript, many video formats are streaming formats that are designed to be played forward. Playing it backwards would require decoding the whole stream, storing each raw frame on the disk to avoid clobbering memory, then rendering the frames backwards.

At least one person actually tried that using mplayer, though, so it can be done, at least in principle.

aMediaElement.playbackRate = -1;

UAs may not support this, though it is valid to set playbackRate to a negative value.


I managed to do it in an update method. Every frame I decrease video.currentTime to the time elapsed and so far it is the best result I managed to get.


Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.