[Webkit-unassigned] [Bug 271685] New: [MSE] media element will error appending the same media segment twice

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 25 18:45:04 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=271685

            Bug ID: 271685
           Summary: [MSE] media element will error appending the same
                    media segment twice
           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

Consider the following code:

```
    run('sourceBuffer.appendBuffer(loader.mediaSegment(0))');
    await waitFor(sourceBuffer, 'update');
    run('sourceBuffer.appendBuffer(loader.mediaSegment(1))');
    await waitFor(sourceBuffer, 'update');
    run('sourceBuffer.appendBuffer(loader.mediaSegment(1))');
    await waitFor(sourceBuffer, 'update');
```

Appending mediaSegment(1) twice will cause the media element to throw an error.

The cause is the SourceBufferParserAVFObjC's `AVStreamDataParser` to return `AVErrorFailedToParse`

-- 
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/20240326/d88d8e11/attachment-0001.htm>


More information about the webkit-unassigned mailing list