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

Issue 1507183002: MediaRecorder: update to spec (2/3) (Closed)

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

Description

MediaRecorder: update to spec (2/3) - s/DOMString canRecordMimeType/bool isTypeSupported/, see [1] - s/mimeType/options dictionary/, related to [2] Also, updated tests everywhere. BUG=262211 [1] https://github.com/w3c/mediacapture-record/issues/10 [2] https://github.com/w3c/mediacapture-record/issues/19 Committed: https://crrev.com/ad2eb4d38e65de43113344457bf1d474b7367c74 Cr-Commit-Position: refs/heads/master@{#364573}

Patch Set 1 #

Total comments: 8

Patch Set 2 : peter@ comments, rebased, reviewed idl links. #

Patch Set 3 : Rebased to http://crrev.com/1497883002 (just landed) #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -69 lines) Patch
M content/test/data/media/mediarecorder_test.html View 10 chunks +9 lines, -16 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/mediarecorder/MediaRecorder-canRecordMimeType.html View 1 chunk +0 lines, -29 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/mediarecorder/MediaRecorder-events-and-exceptions.html View 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/fast/mediarecorder/MediaRecorder-isTypeSupported.html View 1 chunk +29 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/mediarecorder/BlobEventInit.idl View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.h View 4 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp View 1 3 chunks +15 lines, -16 lines 2 comments Download
M third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.idl View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
A third_party/WebKit/Source/modules/mediarecorder/MediaRecorderOptions.idl View 1 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/modules.gypi View 1 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (11 generated)
mcasas
peter@ PTAL More cleanup
5 years ago (2015-12-10 19:56:06 UTC) #7
Peter Beverloo
lgtm % comments - thanks! https://codereview.chromium.org/1507183002/diff/60001/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp File third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp (right): https://codereview.chromium.org/1507183002/diff/60001/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp#newcode165 third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp:165: // [1] http://w3c.github.io/mediacapture-record/MediaRecorder.html#methods nit: ...
5 years ago (2015-12-10 20:28:53 UTC) #8
mcasas
Also reviewed spec links. https://codereview.chromium.org/1507183002/diff/60001/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp File third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp (right): https://codereview.chromium.org/1507183002/diff/60001/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp#newcode165 third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp:165: // [1] http://w3c.github.io/mediacapture-record/MediaRecorder.html#methods On 2015/12/10 ...
5 years ago (2015-12-10 21:40:40 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1507183002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1507183002/100001
5 years ago (2015-12-10 23:42:37 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:100001)
5 years ago (2015-12-11 01:39:12 UTC) #14
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/ad2eb4d38e65de43113344457bf1d474b7367c74 Cr-Commit-Position: refs/heads/master@{#364573}
5 years ago (2015-12-11 01:40:13 UTC) #16
philipj_slow
https://codereview.chromium.org/1507183002/diff/100001/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp File third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp (right): https://codereview.chromium.org/1507183002/diff/100001/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp#newcode162 third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp:162: bool MediaRecorder::isTypeSupported(const String& type) Can you use this in ...
5 years ago (2015-12-11 08:29:03 UTC) #18
philipj_slow
5 years ago (2015-12-18 20:18:10 UTC) #19
Message was sent while issue was closed.
https://codereview.chromium.org/1507183002/diff/100001/third_party/WebKit/Sou...
File third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp (right):

https://codereview.chromium.org/1507183002/diff/100001/third_party/WebKit/Sou...
third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp:162: bool
MediaRecorder::isTypeSupported(const String& type)
On 2015/12/11 08:29:03, philipj wrote:
> Can you use this in the constructor, where the "the type provided ... is
> unsupported" exception is thrown? That should cause an exception to be thrown
by
> default, highlighting the issue of having "" as the default value of mimeType.
> 
> If there needs to be any divergence between when
> MediaRecorder.isTypeSupported(x) returns false and when new MediaRecorder(ms,
{
> mimeType: x }) throws an exception, can you document them clearly? My guess is
> that there need be no such differences.

I've filed https://code.google.com/p/chromium/issues/detail?id=571107

Powered by Google App Engine
This is Rietveld 408576698