diff options
author | mcasas <mcasas@chromium.org> | 2015-10-26 19:36:05 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-27 02:37:22 +0000 |
commit | d718fafe1a14502a17a477d32df035acb07beeb5 (patch) | |
tree | b97454ac20400ebfc084a10165310c0d3d45bc1f /media/capture | |
parent | a1cba16e4d9de5ba97b988e79899bb6d03cd2bdb (diff) | |
download | chromium_src-d718fafe1a14502a17a477d32df035acb07beeb5.zip chromium_src-d718fafe1a14502a17a477d32df035acb07beeb5.tar.gz chromium_src-d718fafe1a14502a17a477d32df035acb07beeb5.tar.bz2 |
MediaStreamRecorder: implement requestData() and start(timeslice)
This CL implements requestData() [1] and a fast LayoutTest.
requestData() forces sending the gathered data so-far to JS.
Until now there's no buffering, so this part just resends the
last gathered Blob, so there will be more patches dealing
with the behaviour for buffered MSRs.
This CL also implements the start(timeslice) [2], essentially
Chrome uses the |lastInSlice| parameter to instruct Blink to
finish buffering data and send to JS.
[1] http://w3c.github.io/mediacapture-record/MediaRecorder.html#widl-MediaRecorder-requestData-void
[2] http://w3c.github.io/mediacapture-record/MediaRecorder.html#widl-MediaRecorder-start-void-long-timeslice
BUG=543838, 543828
TBR=dalecurtis@chromium.org for media/capture/webm_muxer.cc
where I indented one line (no need for review, no new code).
Review URL: https://codereview.chromium.org/1420133003
Cr-Commit-Position: refs/heads/master@{#356207}
Diffstat (limited to 'media/capture')
-rw-r--r-- | media/capture/webm_muxer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/media/capture/webm_muxer.cc b/media/capture/webm_muxer.cc index a2285ef..31dfade 100644 --- a/media/capture/webm_muxer.cc +++ b/media/capture/webm_muxer.cc @@ -103,8 +103,8 @@ void WebmMuxer::AddVideoTrack(const gfx::Size& frame_size, double frame_rate) { mkvmuxer::int32 WebmMuxer::Write(const void* buf, mkvmuxer::uint32 len) { DCHECK(thread_checker_.CalledOnValidThread()); DCHECK(buf); - write_data_callback_.Run(base::StringPiece(reinterpret_cast<const char*>(buf), - len)); + write_data_callback_.Run( + base::StringPiece(reinterpret_cast<const char*>(buf), len)); position_ += len; return 0; } |