Bug 252735

Summary: Actively evict content in ManagedSourceBuffer under memory pressure.
Product: WebKit Reporter: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Component: MediaAssignee: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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.