• Matt Wolenetz's avatar
    [MSE][WebCodecs] Stubs new WebCodecsEncodedChunkStreamParser · f4291cb9
    Matt Wolenetz authored
    Adds a new "StreamParser" subtype for buffering WebCodecs encoded audio
    or video chunks. Plumbs the initial decoder configuration (to later be
    emitted during eventual first ProcessChunks() call on the new parser)
    through ChunkDemuxer's AddId to a new instance of one of these parsers.
    
    Includes StreamParserFactory methods to create the new kind of parser.
    
    Updates the web_test to expect a SourceBuffer to be created for valid
    WebCodecs config cases (instead of a QuotaExceededError exception as was
    stubbed previously.)
    
    Later changes will complete the implementation of
    WebCodecsEncodedChunkStreamParser::ProcessChunks() and include more
    testing of end-to-end buffering and playback.
    
    BUG=1144908
    
    Change-Id: Ifb5e88457cdbc8ccfe37d5ce2e6bee07fec13726
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2573537
    Commit-Queue: Matthew Wolenetz <wolenetz@chromium.org>
    Reviewed-by: default avatarDan Sanders <sandersd@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#835908}
    f4291cb9
stream_parser.cc 5.97 KB