Bug 1681440 [wpt PR 26811] - [MSE][WebCodecs] WSBI::AppendChunks through parser,...
commit673d6661fbaeeccbb81ec6748f3308487089d184
authorMatt Wolenetz <wolenetz@chromium.org>
Tue, 15 Dec 2020 18:23:50 +0000 (15 18:23 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Thu, 17 Dec 2020 13:30:59 +0000 (17 13:30 +0000)
treeb38d123056a6dce26df934f219286cd4dcfb9123
parent11e3a5a2217f7b4f9c77c7295a5f96b00a39d9f7
Bug 1681440 [wpt PR 26811] - [MSE][WebCodecs] WSBI::AppendChunks through parser, plus e2e test, a=testonly

Automatic update from web-platform-tests
[MSE][WebCodecs] WSBI::AppendChunks through parser, plus e2e test

This change:
1) Implements WebSourceBufferImpl::AppendChunks(), plumbing the appended
   chunks through ChunkDemuxer into the stream parser's ProcessChunks().

2) Implements WebCodecsEncodedChunkStreamParser::ProcessChunks(),
   emitting cached config when necessary (prior to calling the
   NewBuffersCB, initially, or if a flush() operation had just happened
   before the chunks were appended.

3) Aligns as much as possible with existing architecture for similar
   handling by regular bytestream parsers, for improved reuse and
   maintainability.

4) Adds a basic end-to-end vp9 video chunk buffering and playback test.

Later refinements will add more tests and may improve usability with
things like EncodedAudioChunk duration, EncodedVideoChunk
decodeTimestamp, and h264 support (where applicable by build flags).

BUG=1144908

Change-Id: Ib787d22b0171826fa28bdbb776410e02e25a9cba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2575501
Commit-Queue: Matthew Wolenetz <wolenetz@chromium.org>
Reviewed-by: Dan Sanders <sandersd@chromium.org>
Cr-Commit-Position: refs/heads/master@{#836204}

--

wpt-commits: edfaa27cc582821c127277e3fe1ad4350258bc9c
wpt-pr: 26811
testing/web-platform/tests/media-source/mse-for-webcodecs/tentative/mediasource-webcodecs-appendencodedchunks-play.html [new file with mode: 0644]
testing/web-platform/tests/media-source/mse-for-webcodecs/tentative/vp9.mp4 [new file with mode: 0644]