VOOZH about

URL: https://www.geeksforgeeks.org/html/how-to-play-video-in-reverse-in-html5/

⇱ How to Play Video in Reverse in HTML5 ? - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

How to Play Video in Reverse in HTML5 ?

Last Updated : 23 Jul, 2025

To play a video in reverse in HTML5, you can use JavaScript to control the playback direction. This involves manipulating the video's current time property to decrement it, creating the effect of reverse playback. This technique allows for custom control over video playback behavior directly within the browser.

Prerequisites

Approach

  • Create an HTML structure with <video> element and control buttons.
  • Write JavaScript functions to manipulate the video's current time for reverse playback.
  • Design user interface for intuitive control of playback and reverse functionality.
  • When the "Play Reverse" button is clicked, it triggers the play backward method, causing the video to play in reverse until it reaches the beginning.

Example: The example below shows How to play video in reverse in HTML5.

Output:

Comment
Article Tags:
Article Tags: