THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

Video playbackRate Property

Video Object Reference Video Object

Example

Set a video to play in slow motion:

document.getElementById("myVideo").playbackRate = 0.5;
Try it Yourself »

Definition and Usage

The playbackRate property sets or returns the current playback speed of the video.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The playbackRate property is supported in all major browsers.

Note: The playbackRate property is not supported in Internet Explorer 9 and earlier versions.


Syntax

Return the playbackRate property:

videoObject.playbackRate

Set the playbackRate property:

videoObject.playbackRate=playbackspeed

Property Values

Value Description
playbackspeed Indicates the current playback speed of the video.
Example values:
  • 1.0 is normal speed
  • 0.5 is half speed (slower)
  • 2.0 is double speed (faster)
  • -1.0 is backwards, normal speed
  • -0.5 is backwards, half speed

Technical Details

Return Value: A Number, representing the current playback speed
Default Value: 1.0

More Examples

Example

Set a video to play fast:

document.getElementById("myVideo").playbackRate = 5;
Try it Yourself »

Video Object Reference Video Object