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

Issue 1534553003: MediaRecorder: correct MIME type parsing (Closed)

Created:
5 years ago by mcasas
Modified:
4 years, 11 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, jam, mcasas+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-blink_chromium.org, philipj_slow, 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

MediaRecorder: correct MIME type parsing Currently the expected/supported MIME types are in the form of 'video/vp8', 'audio/opus' etc, this CL changes that to the MIME conforming 'video/webm;codecs=vp8', 'video/webm;codecs=vp9', 'audio/webm;codecs=ops' following webm container guidelines [1] BUG=564950, 262211, 571107 [1] http://www.webmproject.org/docs/container/ TBR=esprehn@chromium.org: Tiny modification in the method signature in public/platform/WebMediaRecorderHandler.h, where one argument is splitted into two. Committed: https://crrev.com/0e327b0dd7ac9cd1bcf7df7177a6f3901f7a3461 Cr-Commit-Position: refs/heads/master@{#366232}

Patch Set 1 : updated content_unittests, updated vp9 handling #

Total comments: 19

Patch Set 2 : tommi@s comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -74 lines) Patch
M content/renderer/media/media_recorder_handler.h View 1 1 chunk +4 lines, -2 lines 0 comments Download
M content/renderer/media/media_recorder_handler.cc View 1 2 chunks +36 lines, -20 lines 0 comments Download
M content/renderer/media/media_recorder_handler_unittest.cc View 1 4 chunks +52 lines, -29 lines 0 comments Download
M content/test/data/media/mediarecorder_test.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/mediarecorder/MediaRecorder-isTypeSupported.html View 1 chunk +23 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp View 3 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/WebMediaRecorderHandler.h View 1 chunk +8 lines, -8 lines 0 comments Download

Messages

Total messages: 23 (12 generated)
mcasas
dalecurtis@ PTAL (or fwd appropriately, thx)
5 years ago (2015-12-17 22:17:47 UTC) #5
mcasas
tommi@ PTAL (Dale is ooo til Jan 5)
5 years ago (2015-12-18 04:36:24 UTC) #7
tommi (sloooow) - chröme
https://codereview.chromium.org/1534553003/diff/60001/content/renderer/media/media_recorder_handler.cc File content/renderer/media/media_recorder_handler.cc (right): https://codereview.chromium.org/1534553003/diff/60001/content/renderer/media/media_recorder_handler.cc#newcode46 content/renderer/media/media_recorder_handler.cc:46: if (type.utf8().empty()) utf8() creates a new std::string every time ...
5 years ago (2015-12-18 10:06:30 UTC) #8
mcasas
tommi@ PTAL https://codereview.chromium.org/1534553003/diff/60001/content/renderer/media/media_recorder_handler.cc File content/renderer/media/media_recorder_handler.cc (right): https://codereview.chromium.org/1534553003/diff/60001/content/renderer/media/media_recorder_handler.cc#newcode46 content/renderer/media/media_recorder_handler.cc:46: if (type.utf8().empty()) On 2015/12/18 10:06:30, tommi ooo ...
5 years ago (2015-12-18 21:27:45 UTC) #9
tommi (sloooow) - chröme
lgtm
5 years ago (2015-12-18 21:38:30 UTC) #10
mcasas
esprehn@ Tiny modification in method signature in third_party/WebKit/public/platform/WebMediaRecorderHandler.h
5 years ago (2015-12-18 22:14:12 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1534553003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1534553003/80001
5 years ago (2015-12-19 00:37:15 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:80001)
5 years ago (2015-12-19 00:43:05 UTC) #18
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/0e327b0dd7ac9cd1bcf7df7177a6f3901f7a3461 Cr-Commit-Position: refs/heads/master@{#366232}
5 years ago (2015-12-19 00:43:54 UTC) #20
esprehn
Please don't TBR changes like this, that's not what TBR is for. lgtm
5 years ago (2015-12-19 00:47:48 UTC) #21
philipj_slow
4 years, 11 months ago (2016-01-26 04:30:29 UTC) #23
Message was sent while issue was closed.
https://codereview.chromium.org/1534553003/diff/60001/content/renderer/media/...
File content/renderer/media/media_recorder_handler.cc (right):

https://codereview.chromium.org/1534553003/diff/60001/content/renderer/media/...
content/renderer/media/media_recorder_handler.cc:47: return true;
On 2015/12/18 21:27:44, mcasas wrote:
> On 2015/12/18 10:06:29, tommi ooo until 7th wrote:
> > Is it right to say we can support an empty mime type?
> 
> There is a bit of confusion in the spec about it,
> since an empty one in isTypeSupported() gives a 
> false and an empty one in MediaRecorder constructor
> basically leaves the UA free to choose their
> preferred codecs. I think it makes sense to allow
> and empty one, and will fix the spec accordingly,
> this is just a step ahead. (Note that Gecko
> does not implement isTypeSupported(), and that is
> fine with an empty mimeType in ctor params).

See discussion in
https://github.com/w3c/mediacapture-record/issues/40#issuecomment-174484195

Powered by Google App Engine
This is Rietveld 408576698