Bug 262617 - Video frame shifts when played before buffer begins using HLS
Summary: Video frame shifts when played before buffer begins using HLS
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Safari 16
Hardware: Mac (Apple Silicon) macOS 13
: P2 Blocker
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-04 08:30 PDT by Celeste Glavin
Modified: 2023-10-04 15:14 PDT (History)
3 users (show)

See Also:


Attachments
This is an example from a code sandbox where a portrait video frames should take up the width and height of the video element, but they are shifted up and sometimes squished in dimensions (11.68 MB, video/quicktime)
2023-10-04 08:30 PDT, Celeste Glavin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Celeste Glavin 2023-10-04 08:30:51 PDT
Created attachment 468062 [details]
This is an example from a code sandbox where a portrait video frames should take up the width and height of the video element, but they are shifted up and sometimes squished in dimensions

Repro steps:
- hit the play button before buffer begins
- seek around to unbuffered zones
- try again and again

Expected:
- Video plays once buffered and takes up the full video element container

Actual:
- Video frame fluctuates in size, sometimes squishing the aspect ratio and then resizing up (or, sometimes we were noticing it shift to the left) 


Notes:
- from within our app, we were not able to reproduce this when we removed the poster attribute (but that is not desired)
- we haven't been able to reproduce in Safari 17



Example of the repro code:

<div className="App">
      <video
        controls={true}
        width="270px"
        height="480px"
        src="path/to/hls/manifest"
      />
</div>
Comment 1 Alexey Proskuryakov 2023-10-04 12:00:01 PDT
Thank you for the report.

> - we haven't been able to reproduce in Safari 17

I'm marking this as resolved then, as this appears to have been fixed in WebKit already.
Comment 2 Celeste Glavin 2023-10-04 13:47:15 PDT
This breaks the video player for all users using Safari 16.2 through 16.6 -> can you provide any information as to what was fixed? Or if there are workarounds to this issue?
Comment 3 Alexey Proskuryakov 2023-10-04 15:14:21 PDT
CC'ing some folks who may know, but if this doesn't ring a bell, this could be difficult to find out.