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

Issue 1578973002: MediaRecorder: fire onError if the amount of tracks of the MediaStream varies (Closed)

Created:
4 years, 11 months ago by mcasas
Modified:
4 years, 11 months ago
CC:
chromium-reviews, phoglund+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, blink-reviews, tnakamura+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MediaRecorder: fire onError if the amount of tracks of the MediaStream varies MediaRecorder is supposed to fire an Error event if the amount of tracks of the associated MediaStream varies. This CL adds monitoring of said amount and Error firing. There's no need to stop the MediaRecorder: adding a Track would not start automatically recording it, and removing it guarantees it would not be recorded not recording. Moreover, the spec does not say if MRecorder should stop if the #Tracks varies, and also instructs to throw an Exception, which is not possible since the error is asynchronous. Also this CL removes superfluous test variables. BUG=545156 Committed: https://crrev.com/69b654089f6315378b508330044f39dd56bb85e1 Cr-Commit-Position: refs/heads/master@{#369333}

Patch Set 1 : #

Total comments: 6

Patch Set 2 : peter@ comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -50 lines) Patch
M content/browser/media/webrtc_media_recorder_browsertest.cc View 4 chunks +18 lines, -8 lines 0 comments Download
M content/test/data/media/mediarecorder_test.html View 10 chunks +80 lines, -39 lines 0 comments Download
M third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp View 1 3 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 32 (16 generated)
mcasas
peter@: WebKit/.../mediarecorder/ files phoglund@: test files (cpaulin@: FYI/PTAL).
4 years, 11 months ago (2016-01-12 16:58:10 UTC) #9
phoglund_chromium
lgtm, but someone should look into whether testStartStopAndRecorderState is actually doing anything. https://codereview.chromium.org/1578973002/diff/60001/content/test/data/media/mediarecorder_test.html File content/test/data/media/mediarecorder_test.html ...
4 years, 11 months ago (2016-01-13 08:10:31 UTC) #10
cpaulin (no longer in chrome)
On 2016/01/13 08:10:31, phoglund_chrome wrote: > lgtm, but someone should look into whether testStartStopAndRecorderState is ...
4 years, 11 months ago (2016-01-13 17:59:35 UTC) #11
cpaulin (no longer in chrome)
On 2016/01/13 17:59:35, cpaulin wrote: > On 2016/01/13 08:10:31, phoglund_chrome wrote: > > lgtm, but ...
4 years, 11 months ago (2016-01-13 18:05:02 UTC) #12
cpaulin (no longer in chrome)
lgtm
4 years, 11 months ago (2016-01-13 18:08:53 UTC) #13
cpaulin (no longer in chrome)
lgtm
4 years, 11 months ago (2016-01-13 18:08:54 UTC) #14
Peter Beverloo
https://codereview.chromium.org/1578973002/diff/60001/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp File third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp (right): https://codereview.chromium.org/1578973002/diff/60001/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp#newcode210 third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp:210: onError("Amount of tracks in MediaStream has changed."); This fires ...
4 years, 11 months ago (2016-01-13 18:38:01 UTC) #15
mcasas
peter@ PTAL https://codereview.chromium.org/1578973002/diff/60001/content/test/data/media/mediarecorder_test.html File content/test/data/media/mediarecorder_test.html (left): https://codereview.chromium.org/1578973002/diff/60001/content/test/data/media/mediarecorder_test.html#oldcode154 content/test/data/media/mediarecorder_test.html:154: assertEquals('inactive', theRecorder.state); On 2016/01/13 08:10:31, phoglund_chrome wrote: ...
4 years, 11 months ago (2016-01-13 21:50:41 UTC) #16
Peter Beverloo
lgtm In the long run we probably want a more stable mechanism, e.g. maintaining the ...
4 years, 11 months ago (2016-01-13 22:05:20 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1578973002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1578973002/80001
4 years, 11 months ago (2016-01-13 22:18:03 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_TIMED_OUT, no build URL) android_chromium_gn_compile_dbg on ...
4 years, 11 months ago (2016-01-13 23:39:15 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1578973002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1578973002/80001
4 years, 11 months ago (2016-01-14 01:10:47 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/101614) linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 11 months ago (2016-01-14 02:17:45 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1578973002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1578973002/80001
4 years, 11 months ago (2016-01-14 03:58:42 UTC) #28
commit-bot: I haz the power
Committed patchset #2 (id:80001)
4 years, 11 months ago (2016-01-14 05:09:53 UTC) #30
commit-bot: I haz the power
4 years, 11 months ago (2016-01-14 05:11:35 UTC) #32
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/69b654089f6315378b508330044f39dd56bb85e1
Cr-Commit-Position: refs/heads/master@{#369333}

Powered by Google App Engine
This is Rietveld 408576698