search

Home  >  Q&A  >  body text

javascript - How to implement backward playback (reverse playback) function in html5 video?

Using the "playbackRate" attribute of video
It can only play forward fast forward

某草草某草草2826 days ago1828

reply all(4)I'll reply

  • PHP中文网

    PHP中文网2017-05-16 13:30:59

    playbackRate is to set the rewind speed. After you stop the execution, it will play normally.

    But judging from your request, it seems that all video sources are required to be played backwards. It is estimated that you need to transcode the video source and play it normally.

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-16 13:30:59

    Find an html5 playback plug-in

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-16 13:30:59

    I think you can roughly achieve it by setting currentTime. Besides, the function of reverse playback is anti-human, so it would be great if it can be implemented.

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 13:30:59

    It is implemented directly on HTML5, but I have never seen it before;
    It is estimated that it can be done by inverting the video data on the backend and then sending it back to the frontend.

    reply
    0
  • Cancelreply