Bug 258945 - [HTMLMediaElement ] currentTime shifts after updating playbackRate
Summary: [HTMLMediaElement ] currentTime shifts after updating playbackRate
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Safari Technology Preview
Hardware: Mac (Apple Silicon) macOS 13
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-07-06 13:37 PDT by Mateusz
Modified: 2023-07-13 13:38 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mateusz 2023-07-06 13:37:19 PDT
Setting a `playbackRate` causes unexpected shifts of `currentTime` when a video is playing in Safari. 

Example: https://codesandbox.io/s/currenttime-shifts-after-updating-playbackrate-zj27dd

To reproduce open the sandbox, play the video, and click the checkbox for auto playback rate changes. This example works smoothly on Chromium and Firefox, playbackRate change doesn't affect the currentTime. In Safari, the video's current time shifts to another value (sometimes goes forth, sometimes goes back) after changing the playback rate.
Comment 1 Radar WebKit Bug Importer 2023-07-13 13:38:16 PDT
<rdar://problem/112220823>