Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Issue 2003963003: Reland: MediaCaptureFromElement: add support for audio captureStream(). (Closed)

Created:
4 years, 7 months ago by mcasas
Modified:
4 years, 7 months ago
Reviewers:
stgao, DaleCurtis
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, emircan+watch+capturefromdom_chromium.org, feature-media-reviews_chromium.org, haraken, jam, mcasas+watch+vc_chromium.org, mcasas+watch+capturefromdom_chromium.org, miu+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland: MediaCaptureFromElement: add support for audio captureStream(). The original CL got reverted due to flaky failures in LayoutTests on bots, due to independent (racy) initialization of the WebAudioSourceProviderImpl and HTMLAudioElementCapturerSource. This extra patch decouples both by making TeeFilter independently initializable. Original description -------------------------------------------------- MediaCaptureFromElement: add support for audio captureStream(). This CL extends support for capturing the audio part of a <video> or <audio> tags ( "capture" here means creating a MediaStream out of the HTMLElement) It introduces an HtmlAudioCapturerSource is-a AudioCapturerSource wrapped into an ExternalMediaStreamAudioSource to produce data towards the audio track. HtmlAudioCapturerSource also plugs into the WebMediaPlayer's WebAudioSourceProviderImpl to get a copy of the audio being rendered. Unit tests are added, and the existing LayouTests revamped (and split into several files for clarity). BUG=569976, 575492 TEST= run chromium with --enable-blink-features=MediaCaptureFromVideo against e.g. https://rawgit.com/Miguelao/demos/master/videoelementcapture.html --------------------------------------------------------------------- TBR=haraken@chromium.org, avi@chromium.org, esprehn@chromium.org, miu@chromium.org (reviewers whose reviewed code hasn't changed from the original https://codereview.chromium.org/1599533003/) Committed: https://crrev.com/6d69edab7acf4582c14ba7799dfda168395f26a2 Cr-Commit-Position: refs/heads/master@{#396200}

Patch Set 1 : https://codereview.chromium.org/1599533003/ #

Patch Set 2 : WASPImpl can be initialized after HTMLAudioElementCapturerSource #

Total comments: 6

Patch Set 3 : dalecurtis@ comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+473 lines, -77 lines) Patch
M content/content_renderer.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
A content/renderer/media/html_audio_element_capturer_source.h View 1 chunk +63 lines, -0 lines 0 comments Download
A content/renderer/media/html_audio_element_capturer_source.cc View 1 chunk +89 lines, -0 lines 0 comments Download
A content/renderer/media/html_audio_element_capturer_source_unittest.cc View 1 chunk +154 lines, -0 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 3 chunks +29 lines, -0 lines 0 comments Download
M content/test/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M media/blink/webaudiosourceprovider_impl.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M media/blink/webaudiosourceprovider_impl.cc View 1 2 10 chunks +35 lines, -26 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/mediacapturefromelement/HTMLMediaElementCapture-EME-content.html View 1 chunk +28 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/mediacapturefromelement/HTMLMediaElementCapture-capture.html View 1 chunk +35 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/mediacapturefromelement/HTMLMediaElementCapture-creation.html View 2 chunks +22 lines, -40 lines 0 comments Download
M third_party/WebKit/Source/modules/mediacapturefromelement/HTMLMediaElementCapture.cpp View 2 chunks +6 lines, -7 lines 0 comments Download
M third_party/WebKit/public/platform/Platform.h View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 18 (8 generated)
mcasas
dalecurtis@ PTAL at PS2 changes
4 years, 7 months ago (2016-05-23 16:58:22 UTC) #3
DaleCurtis
https://codereview.chromium.org/2003963003/diff/20001/media/blink/webaudiosourceprovider_impl.cc File media/blink/webaudiosourceprovider_impl.cc (right): https://codereview.chromium.org/2003963003/diff/20001/media/blink/webaudiosourceprovider_impl.cc#newcode123 media/blink/webaudiosourceprovider_impl.cc:123: if (tee_filter_->IsInitialized()) // ??? Remove ??? https://codereview.chromium.org/2003963003/diff/20001/media/blink/webaudiosourceprovider_impl.cc#newcode267 media/blink/webaudiosourceprovider_impl.cc:267: if ...
4 years, 7 months ago (2016-05-23 18:37:18 UTC) #4
mcasas
PTAL https://codereview.chromium.org/2003963003/diff/20001/media/blink/webaudiosourceprovider_impl.cc File media/blink/webaudiosourceprovider_impl.cc (right): https://codereview.chromium.org/2003963003/diff/20001/media/blink/webaudiosourceprovider_impl.cc#newcode123 media/blink/webaudiosourceprovider_impl.cc:123: if (tee_filter_->IsInitialized()) // ??? On 2016/05/23 18:37:18, DaleCurtis ...
4 years, 7 months ago (2016-05-23 19:00:13 UTC) #5
mcasas
On 2016/05/23 19:00:13, mcasas wrote: > PTAL > > https://codereview.chromium.org/2003963003/diff/20001/media/blink/webaudiosourceprovider_impl.cc > File media/blink/webaudiosourceprovider_impl.cc (right): > ...
4 years, 7 months ago (2016-05-24 20:22:51 UTC) #6
DaleCurtis
lgtm
4 years, 7 months ago (2016-05-24 20:29:48 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2003963003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2003963003/40001
4 years, 7 months ago (2016-05-26 15:09:10 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-26 16:52:02 UTC) #13
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/6d69edab7acf4582c14ba7799dfda168395f26a2 Cr-Commit-Position: refs/heads/master@{#396200}
4 years, 7 months ago (2016-05-26 16:53:07 UTC) #15
stgao
It seems this CL is causing crash on https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Win10/builds/10592 Regressions: Unexpected crashes (2) fast/mediacapturefromelement/HTMLMediaElementCapture-capture.html [ ...
4 years, 7 months ago (2016-05-26 18:52:03 UTC) #17
mcasas
4 years, 7 months ago (2016-05-26 19:10:45 UTC) #18
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2014963002/ by mcasas@chromium.org.

The reason for reverting is:
https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Win10/builds/1...

crashed test.

(I wonder why that wasn't hit by CQ?).

Powered by Google App Engine
This is Rietveld 408576698