Bug 208423 - [GPUP] Plumb through more MediaPlayer methods
Summary: [GPUP] Plumb through more MediaPlayer methods
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Eric Carlson
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-02-29 18:13 PST by Eric Carlson
Modified: 2020-03-02 12:07 PST (History)
12 users (show)

See Also:


Attachments
Patch (64.11 KB, patch)
2020-02-29 18:22 PST, Eric Carlson
no flags Details | Formatted Diff | Diff
Patch (61.80 KB, patch)
2020-02-29 19:53 PST, Eric Carlson
no flags Details | Formatted Diff | Diff
Patch (62.68 KB, patch)
2020-02-29 22:12 PST, Eric Carlson
no flags Details | Formatted Diff | Diff
Patch (64.68 KB, patch)
2020-03-02 05:42 PST, Eric Carlson
no flags Details | Formatted Diff | Diff
Patch (64.68 KB, patch)
2020-03-02 06:36 PST, Eric Carlson
no flags Details | Formatted Diff | Diff
Patch (1.47 KB, patch)
2020-03-02 11:17 PST, Eric Carlson
no flags Details | Formatted Diff | Diff
Patch (1.42 KB, patch)
2020-03-02 11:18 PST, Eric Carlson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Carlson 2020-02-29 18:13:51 PST
Plumb through more MediaPlayer methods when media is loaded in the GPU process.
Comment 1 Radar WebKit Bug Importer 2020-02-29 18:14:00 PST
<rdar://problem/59924386>
Comment 2 Eric Carlson 2020-02-29 18:22:35 PST
Created attachment 392084 [details]
Patch
Comment 3 Eric Carlson 2020-02-29 19:53:46 PST
Created attachment 392089 [details]
Patch
Comment 4 Eric Carlson 2020-02-29 22:12:19 PST
Created attachment 392093 [details]
Patch
Comment 5 youenn fablet 2020-03-02 05:11:33 PST
Comment on attachment 392093 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=392093&action=review

> Source/WebKit/GPUProcess/media/RemoteMediaPlayerProxy.cpp:279
> +    m_cachedState.didPassCORSAccessCheck = m_player->didPassCORSAccessCheck();

Should some of these state updates being added to updateCachedState(), for instance wirelessVideoPlaybackDisabled()?
Should we always resync all values for extra safety?

> Source/WebKit/WebProcess/GPU/media/MediaPlayerPrivateRemote.cpp:675
> +    if (!connection().sendSync(Messages::RemoteMediaPlayerProxy::AccessLog(m_id), Messages::RemoteMediaPlayerProxy::AccessLog::Reply(log), m_id))

Seems to make this fail on iOS since AccessLog is not defined for RemoteMediaPlayerProxy.
Comment 6 Eric Carlson 2020-03-02 05:33:39 PST
Comment on attachment 392093 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=392093&action=review

>> Source/WebKit/GPUProcess/media/RemoteMediaPlayerProxy.cpp:279
>> +    m_cachedState.didPassCORSAccessCheck = m_player->didPassCORSAccessCheck();
> 
> Should some of these state updates being added to updateCachedState(), for instance wirelessVideoPlaybackDisabled()?
> Should we always resync all values for extra safety?

I don't think we want to update all of these in updateCachedState because it is called so frequently

I tried to make sure every cached state is updated in the appropriate media player callback. For example, m_cachedState.wirelessVideoPlaybackDisabled and m_cachedState.wirelessPlaybackTargetName are updated in RemoteMediaPlayerProxy::mediaPlayerCurrentPlaybackTargetIsWirelessChanged if the framework changes @externalPlaybackActive or @allowsExternalPlayback.
Comment 7 Eric Carlson 2020-03-02 05:42:37 PST
Created attachment 392135 [details]
Patch
Comment 8 Eric Carlson 2020-03-02 06:36:12 PST
Created attachment 392138 [details]
Patch
Comment 9 WebKit Commit Bot 2020-03-02 07:54:35 PST
Comment on attachment 392138 [details]
Patch

Clearing flags on attachment: 392138

Committed r257711: <https://trac.webkit.org/changeset/257711>
Comment 10 WebKit Commit Bot 2020-03-02 07:54:37 PST
All reviewed patches have been landed.  Closing bug.
Comment 11 Eric Carlson 2020-03-02 11:17:03 PST
Reopening to attach new patch.
Comment 12 Eric Carlson 2020-03-02 11:17:04 PST
Created attachment 392159 [details]
Patch
Comment 13 Eric Carlson 2020-03-02 11:18:37 PST
Created attachment 392160 [details]
Patch
Comment 14 WebKit Commit Bot 2020-03-02 12:07:48 PST
Comment on attachment 392160 [details]
Patch

Clearing flags on attachment: 392160

Committed r257724: <https://trac.webkit.org/changeset/257724>
Comment 15 WebKit Commit Bot 2020-03-02 12:07:50 PST
All reviewed patches have been landed.  Closing bug.