Bug 252735 - Actively evict content in ManagedSourceBuffer under memory pressure.
Summary: Actively evict content in ManagedSourceBuffer under memory pressure.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jean-Yves Avenard [:jya]
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-02-22 01:40 PST by Jean-Yves Avenard [:jya]
Modified: 2023-02-24 18:21 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Yves Avenard [:jya] 2023-02-22 01:40:28 PST
Under memory pressure, we should actively evict content in ManagedMediaSource and and ManagedSourceBuffer.

Unlike a MediaSource which can only evict content in the coded frame eviction [1] algorithm during the prepare append algorithm [2]; a ManagedMediaSource and its ManagedSourceBuffers can evict content at any time, after which an "buffered change" event will be fired on the SourceBuffers


[1] https://w3c.github.io/media-source/#dfn-coded-frame-eviction
[2] https://w3c.github.io/media-source/#sourcebuffer-prepare-append
Comment 1 Radar WebKit Bug Importer 2023-02-22 01:40:47 PST
<rdar://problem/105769723>
Comment 2 Jean-Yves Avenard [:jya] 2023-02-22 02:06:50 PST
Pull request: https://github.com/WebKit/WebKit/pull/10509
Comment 3 EWS 2023-02-24 18:21:15 PST
Committed 260825@main (e994c1218d75): <https://commits.webkit.org/260825@main>

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