Bug 259707 - [iOS 17] [WebAVPlayerLayer playerController] returns null
Summary: [iOS 17] [WebAVPlayerLayer playerController] returns null
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: Other
Hardware: All Other
: P2 Normal
Assignee: Nobody
URL: https://github.com/WebKit/WebKit/blob...
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-08-01 15:05 PDT by Amy While
Modified: 2023-08-14 09:40 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Amy While 2023-08-01 15:05:03 PDT
Tested on 21A5291j

Attempting to retrieve the player controller from a WebAVPlayerLayer results in null on a YouTube video.
Comment 1 Radar WebKit Bug Importer 2023-08-08 15:05:19 PDT
<rdar://problem/113588630>
Comment 2 Eric Carlson 2023-08-09 16:07:32 PDT
(In reply to Amy While from comment #0)
> Tested on 21A5291j
> 
> Attempting to retrieve the player controller from a WebAVPlayerLayer results
> in null on a YouTube video.

And AVPlayerLayer is only used for url-based content (HLS, MPEG-4, mp3, etc). YouTube uses MSE and so does not have an AVPlayerLayer.

What are you trying to do?
Comment 3 Amy While 2023-08-09 16:25:36 PDT
I am attempting to get the AVAsset that is being played internally. There is potentially some incorrect markings of nonnull in the framework if it could always be played.
Comment 4 Eric Carlson 2023-08-14 09:40:43 PDT
(In reply to Amy While from comment #3)
> I am attempting to get the AVAsset that is being played internally. There is
> potentially some incorrect markings of nonnull in the framework if it could
> always be played.

There is no AVAsset when playing a YouTube video.