MediaRecorder: allow ondataavailable with muted tracks.
The WebmMuxer buffers frames guaranteeing original capture timestamps fed out in monotonically increasing order to the WebM file. This has the consequence that the muxer buffers all incoming frames from the non-muted track in the presence of a simultaneously recorded muted track. Relax this by adding API to the WebmMuxer to tell it about when tracks become muted, and allow it to temporarily flush out samples while the other end is muted. Internally, libwebm's mkvmuxer will hold on to audio frames awaiting video frame delivery. This change also adds API to WebmMuxer to control how often data output is forced by forcing new WebM clusters. The cluster enforcement frequency is capped to a max frequency of 10 Hz, and is set from MediaRecorderHandler to be the value of the MediaRecorder |timeslice| parameter. Tested: manually using FB testpage at crbug/1145203. Bug: 1145203 Change-Id: I6713d14f6e478d6b05c1fe84d5471f8eae759db1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2564638 Commit-Queue: Markus Handell <handellm@google.com> Reviewed-by:Dale Curtis <dalecurtis@chromium.org> Cr-Commit-Position: refs/heads/master@{#832060}
Showing
Please register or sign in to comment