Bug 256092 - [MSE] Evict content earlier to source buffer reduce memory usage.
Summary: [MSE] Evict content earlier to source buffer reduce memory usage.
Status: RESOLVED DUPLICATE of bug 256113
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-04-28 07:00 PDT by Jean-Yves Avenard [:jya]
Modified: 2023-05-02 11:50 PDT (History)
2 users (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-04-28 07:00:49 PDT
We only starts to evict content when the source buffer size reach a given threshold.
However the source buffer size is calculated by looking at the size of each media sample contained in the track buffers.
But this only account for the media content itself.

A MediaSampleAVFObjC wraps a CMSampleBuffer, which itself is over 590 bytes.
So regardless of the size of the actual media segment, we store at least 590 bytes.

We should account for the size of the sample container itself, which would make the source buffer more accurately determine when eviction should occur and do so earlier.
Comment 1 Radar WebKit Bug Importer 2023-04-28 07:01:17 PDT
<rdar://problem/108658434>
Comment 2 Jer Noble 2023-05-02 11:50:06 PDT
Dup of bug # 256113

*** This bug has been marked as a duplicate of bug 256113 ***