Is it possible to play HTML5 video in reverse?

后端 未结 3 1258
日久生厌
日久生厌 2020-12-03 13:16

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

相关标签:
3条回答
  • 2020-12-03 14:02

    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.

    0 讨论(0)
  • 2020-12-03 14:13

    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.

    0 讨论(0)
  • 2020-12-03 14:13
    aMediaElement.playbackRate = -1;
    

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

    0 讨论(0)
提交回复
热议问题