[Webkit-unassigned] [Bug 253883] New: [MSE] SourceBuffer.buffered should return the same object if it's not modified
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Mar 14 05:01:25 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=253883
Bug ID: 253883
Summary: [MSE] SourceBuffer.buffered should return the same
object if it's not modified
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Media
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jean-yves.avenard at apple.com
Per spec, https://w3c.github.io/media-source/#dom-sourcebuffer-buffered
Step 5,
```
5. If intersection ranges does not contain the exact same range information as the current value of this attribute, then update the current value of this attribute to intersection ranges.
6. Return the current value of this attribute.
```
The current value of this attribute should only be modified if it has changed.
However, currently a copy of the attribute is always returned:
https://searchfox.org/wubkat/rev/7a7d33c945c423639d0e625352d98c40411716f2/Source/WebCore/Modules/mediasource/SourceBuffer.cpp#123-124
```
// 2. Return a new static normalized TimeRanges object for the media segments buffered.
return m_private->buffered()->copy();
```
seems to be based on an old spec.
--
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/20230314/91b2f4a6/attachment.htm>
More information about the webkit-unassigned
mailing list