Bug 259707

Summary: [iOS 17] [WebAVPlayerLayer playerController] returns null
Product: WebKit Reporter: Amy While <me>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: eric.carlson, me, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: All   
OS: Other   
URL: https://github.com/WebKit/WebKit/blob/c22c66c0cc2e6a7e33cf0087f793b3f307648f75/Source/WebCore/platform/cocoa/WebAVPlayerLayer.h#L46

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.