Bug 252957 - Under memory pressure, non active SourceBuffers should be completely emptied
Summary: Under memory pressure, non active SourceBuffers should be completely emptied
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-26 01:51 PST by Jean-Yves Avenard [:jya]
Modified: 2023-02-27 02:40 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-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.