-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f850ca2
commit facb2b4
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
date: 2023-05-05 | ||
authors: Patrick Brosset | ||
title: Speed up or slow down a video | ||
tags: | ||
["console", "personalization", "browser:edge", "browser:chrome", "browser:firefox", "browser:safari"] | ||
--- | ||
|
||
You can speed up or slow down a video on a website by using the [`playbackRate`](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playbackRate) property of the video element. | ||
|
||
This can be very useful for when the website makes it tricky to do this in the UI! | ||
|
||
1. Open DevTools. | ||
1. Select the `<video>` element by either right-clicking on it and choosing **Inspect Element** or by using the **Elements** or **Inspector** tool. | ||
1. Go to the **Console** tool. | ||
1. Type `$0.playbackRate = 2` and press **Enter**. | ||
|
||
This number you choose is the multiplier for the playback speed. So `2` will make the video play twice as fast, `0.5` will make it play at half the speed, etc. | ||
|
||
Thank you [Umar Hansa](https://twitter.com/umaar/status/1654079892240171010) for this tip! | ||
|
||
![Screenshot of the Console tool showing the playbackRate property](../../assets/img/change-video-playback-rate.png) |