[Webkit-unassigned] [Bug 230672] New: [MSE] appending to the source buffer will not throw when the source buffer is full.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Sep 23 00:56:25 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=230672
Bug ID: 230672
Summary: [MSE] appending to the source buffer will not throw
when the source buffer is full.
Product: WebKit
Version: Other
Hardware: Unspecified
URL: https://jyavenard.github.io/htmltests/tests/mse_webm/s
izeSourceBuffer.html
OS: Unspecified
Status: NEW
Keywords: Regression
Severity: Normal
Priority: P2
Component: Media
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jean-yves.avenard at apple.com
Consider the following test.
It adds 1MB of content (about 5s of content) to a source buffer. Playback doesn't start so currentTime = 0
On Safari, after adding 318MB worth we see the buffered range going from:
3003: SourceBuffer buffered ranges grew from TimeRanges: [0.007, 677.601) to TimeRanges: [0.007, 679.47)
3003: 318777183 bytes added
3003: Loading buffer: [0, 1000000)
3031: SourceBuffer buffered ranges grew from TimeRanges: [0.007, 679.47) to TimeRanges: [2.001, 668.138)[679.478, 681.872)
3031: 319777183 bytes added
As you can see the first 2 seconds were evicted ; and then the last 10s before the content is appended.
With the first seconds being evicted, the content is no longer playable.
If we continue to append:
buffered ranges grew from TimeRanges: [2.001, 668.138)[691.778, 698.889) to TimeRanges: [2.001, 668.138)[691.778, 700.641)
3166: 329777183 bytes added
3166: Loading buffer: [0, 1000000)
3189: SourceBuffer buffered ranges grew from TimeRanges: [2.001, 668.138)[691.778, 700.641) to TimeRanges: [2.001, 668.138)[691.778, 698.898)[700.658, 704.795)
3189: 330777183 bytes added
3190: Loading buffer: [0, 1000000)
We end up with gaps here and there:
after appending 1.6GB of data we have:
buffered ranges grew from TimeRanges: [2.001, 668.138)[691.778, 698.889) to TimeRanges: [2.001, 668.138)[691.778, 700.641)
3166: 329777183 bytes added
3166: Loading buffer: [0, 1000000)
3189: SourceBuffer buffered ranges grew from TimeRanges: [2.001, 668.138)[691.778, 700.641) to TimeRanges: [2.001, 668.138)[691.778, 698.898)[700.658, 704.795)
3189: 330777183 bytes added
3190: Loading buffer: [0, 1000000)
So effectively, we continue to just evict data , playback can't start and QuotaExceededError is never thrown
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210923/02d99189/attachment.htm>
More information about the webkit-unassigned
mailing list