Bug 270574 - Video controls play-pause button shows wrong state after changing src
Summary: Video controls play-pause button shows wrong state after changing src
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Safari 17
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-03-06 07:01 PST by Jeff Johnson
Modified: 2024-04-05 04:49 PDT (History)
4 users (show)

See Also:


Attachments
Sample HTML demonstrating the bug (488 bytes, text/html)
2024-03-06 07:01 PST, Jeff Johnson
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Johnson 2024-03-06 07:01:53 PST
Created attachment 470203 [details]
Sample HTML demonstrating the bug

I've reproduced this bug with Safari 17.4 on iOS as well as Safari 17.3 and Safari Technology Preview 189 on macOS.

When a video is playing, and the video src attribute is changed, the video is paused, but the video controls still show the button in the playing state.

Steps to reproduce:
1. Open the attached sample HTML in Safari
2. Play the video
3. Click the "Switch video src" button

Expected results: The video controls button is in the paused state (showing a play icon)

Actual results: The video controls button is in the playing state (showing a pause icon), even though the video is not playing.
Comment 1 Radar WebKit Bug Importer 2024-03-13 08:02:15 PDT
<rdar://problem/124531010>
Comment 2 Ahmad Saleem 2024-04-05 01:02:36 PDT
Just to confirm @Jeff - is it recent regression such as it used to work in Safari 16 or Safari 17.x (17.3 or 17.2 etc.)?
Comment 3 Jeff Johnson 2024-04-05 04:49:35 PDT
(In reply to Ahmad Saleem from comment #2)
> Just to confirm @Jeff - is it recent regression such as it used to work in
> Safari 16 or Safari 17.x (17.3 or 17.2 etc.)?

No. I can reproduce the bug in Safari 16 too.