Branch: refs/heads/webkitglib/2.54
Home: https://github.com/WebKit/WebKit
Commit: 2bed22b13d67cbfde252bbf12561dfe6ae3fea08
https://github.com/WebKit/WebKit/commit/2bed22b13d67cbfde252bbf12561dfe6ae3fea08
Author: Philippe Normand <[email protected]>
Date: 2026-07-27 (Mon, 27 Jul 2026)
Changed paths:
M Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
M Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h
M
Source/WebCore/platform/graphics/gstreamer/mse/MediaPlayerPrivateGStreamerMSE.h
Log Message:
-----------
Cherry-pick 317766@main (f2797a15c336).
https://bugs.webkit.org/show_bug.cgi?id=319380
[GStreamer] Teardown media players corresponding to media elements moving
outside of viewport
https://bugs.webkit.org/show_bug.cgi?id=319380
Reviewed by Xabier Rodriguez-Calvar.
Setting the pipeline state of non-MSE players to NULL when its
corresponding media element has moved
out of the viewport helps keeping the amount of alive video decoders at
bay. This is specially
useful when browsing some Reddit, Snapchat and similar pages containing
lots of auto-playing muted
videos.
Using this approach for MSE players could be useful as well but would
likely be more complex to
implement due to implications at the SourceBuffer level.
*
Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
(WebCore::MediaPlayerPrivateGStreamer::updateStates):
(WebCore::MediaPlayerPrivateGStreamer::managePlayerSuspend):
(WebCore::MediaPlayerPrivateGStreamer::suspendTargetState):
* Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
Canonical link: https://commits.webkit.org/317766@main
Canonical link: https://commits.webkit.org/317695.2@webkitglib/2.54
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications