Closed Bug 1127775 Opened 5 years ago Closed 5 years ago
Properly handle partial init segment
As per W3C spec: http://w3c.github.io/media-source/#sourcebuffer-segment-parser-loop We're supposed to handle partial init segment. Part of bug 1125776, is to be able to fire the update/updateend event once we've completed parsing the init segment. Support for partial MP4 init segment is almost there as all blocks are there. For WebM it's more complicated.
will do so in bug 1125776.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
Add webm partial init segment support. This is done with a small utility class WebMCheckMetadata that checks if a MediaResource starts with an init segment. This uses libnestegg as their init routine does just that. Ideally we could have expanded WebMBufferedParser but it would have been more complicated and I would have had to learn the inner details of the webm container. Parsing a MediaResource also allows to buffer the data over multiple-calls to appendBuffer with a minimal memory footprint (SourceBufferResource uses ref-counted shared memory block).
Combine the two patches together as the nestegg approach just doesn't work under all circumstances.
Comment on attachment 8557685 [details] [diff] [review] Add support for partial WebM init segment wrong bug number
You need to log in before you can comment on or make changes to this bug.