Bug 241857

Summary: [GLIB] MediaSessionGlib shows multiple players for a single video
Product: WebKit Reporter: Patrick Griffis <pgriffis>
Component: WebKitGTKAssignee: Philippe Normand <philn>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply, mcatanzaro, philn
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Example of multiple MPRIS players for one video none

Description Patrick Griffis 2022-06-22 09:53:01 PDT
Created attachment 460417 [details]
Example of multiple MPRIS players for one video

WebKitGTK is far too eager to show MediaSessions.

Opening the Youtube HomePage (https://youtube.com) will show like 8 players over MPRIS for what is actually a single video.

All of them seem to actually control the same video though often only one will have the correct metadata like title.

I've attached an example picture.
Comment 1 Michael Catanzaro 2022-06-22 10:09:39 PDT
(Even if the problem is not directly related to the GStreamer backend, I still like to use [GStreamer] here to keep multimedia bugs all together.)
Comment 2 Philippe Normand 2022-06-23 01:56:37 PDT
Pull request: https://github.com/WebKit/WebKit/pull/1721
Comment 3 EWS 2022-06-23 04:58:56 PDT
Committed r295774 (251779@main): <https://commits.webkit.org/251779@main>

Reviewed commits have been landed. Closing PR #1721 and removing active labels.