HTML DOM Video playbackRate Property

The HTML DOM Video playbackRate property returns/sets a number corrosponding to current playback rate of media.

Syntax

Following is the syntax −

Returning playbackRate as a number

mediaObject.playbackRate

Setting playbackRate to a number

mediaObject.playbackRate = number

NOTENumber has a max value of ‘16’ and if ‘0.0’ video is still.

Let us see an example of Video playbackRate property −

Example

Live Demo



HTML DOM Video playbackRate



   
     
         HTML-DOM-Video-playbackRate          
                             
     
   

Output

Clicking ‘Fast (>>)’ button 2 times −

Now, click ‘Slow ( button once −

Updated on: 2021-02-18T05:23:51+05:30

210 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements