Bug 223854 - [macOS] Add remote MediaSessionCoordinator
Summary: [macOS] Add remote MediaSessionCoordinator
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: 2021-03-28 13:32 PDT by Eric Carlson
Modified: 2021-03-29 15:55 PDT (History)
11 users (show)

See Also:


Attachments
WIP patch (112.67 KB, patch)
2021-03-28 14:12 PDT, Eric Carlson
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
WIP patch (112.81 KB, patch)
2021-03-28 15:06 PDT, Eric Carlson
no flags Details | Formatted Diff | Diff
Patch for landing (112.80 KB, patch)
2021-03-29 11:10 PDT, Eric Carlson
no flags Details | Formatted Diff | Diff
Patch for landing (113.06 KB, patch)
2021-03-29 11:21 PDT, Eric Carlson
ews-feeder: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Carlson 2021-03-28 13:32:44 PDT
Add remote MediaSessionCoordinator
Comment 1 Radar WebKit Bug Importer 2021-03-28 13:32:52 PDT
<rdar://problem/75934650>
Comment 2 Eric Carlson 2021-03-28 14:12:08 PDT
Created attachment 424509 [details]
WIP patch
Comment 3 Eric Carlson 2021-03-28 15:06:30 PDT
Created attachment 424510 [details]
WIP patch
Comment 4 Jer Noble 2021-03-29 10:09:38 PDT
These changes all LGTM, but we should think about decoupling the successful MediaSessionCoordinatorPrivate callback from a default MediaSession action in response. I can imagine a situation where a promise has to get rejected because a pause command came in while a play coordination request was still waiting to be fulfilled. Maybe in a follow-up patch we could take a look at this.
Comment 5 Jer Noble 2021-03-29 10:55:06 PDT
Comment on attachment 424510 [details]
WIP patch

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

> Source/WebCore/ChangeLog:8
> +2021-03-28  Eric Carlson  <eric.carlson@apple.com>
> +
> +        [macOS] Add remote MediaSessionCoordinator
> +        https://bugs.webkit.org/show_bug.cgi?id=223854
> +        <rdar://problem/75934650>
> +
> +        Reviewed by NOBODY (OOPS!).
> +

Please fill out the ChangeLog description before landing.
Comment 6 Eric Carlson 2021-03-29 11:10:26 PDT
Created attachment 424550 [details]
Patch for landing
Comment 7 Eric Carlson 2021-03-29 11:21:13 PDT
Created attachment 424553 [details]
Patch for landing
Comment 8 Eric Carlson 2021-03-29 13:03:53 PDT
Comment on attachment 424553 [details]
Patch for landing

The Mac test bot failure is media/media-fragments/TC0051.html, not related.
Comment 9 EWS 2021-03-29 13:20:43 PDT
Committed r275171: <https://commits.webkit.org/r275171>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 424553 [details].