Bug 252957

Summary: Under memory pressure, non active SourceBuffers should be completely emptied
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   
See Also: https://bugs.webkit.org/show_bug.cgi?id=252938

Description Jean-Yves Avenard [:jya] 2023-02-26 01:51:57 PST
Following bug 252938; under memory pressure memory eviction will occur in all active ManagedSourceBuffer.

The current eviction algorithm will only evict data prior the current playtime and in future data non-contiguous from the currently played segment.

We should fully clear non active source buffers or non-active tracks if possible.
Comment 1 Radar WebKit Bug Importer 2023-02-26 01:52:21 PST
<rdar://problem/105940463>
Comment 2 Jean-Yves Avenard [:jya] 2023-02-26 21:54:47 PST
Pull request: https://github.com/WebKit/WebKit/pull/10713
Comment 3 EWS 2023-02-27 02:40:00 PST
Committed 260870@main (6ff5566a514b): <https://commits.webkit.org/260870@main>

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