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

Issue 1728193004: Media: Do not support new codecs with legacy MIME type names. (Closed)

Created:
4 years, 10 months ago by ddorwin
Modified:
4 years, 8 months ago
Reviewers:
hubbe, servolk, *DaleCurtis
CC:
chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Media: Do not support new codecs with legacy MIME type names. Do not advertise support for newer codecs with x-m4a or x-m4v, which we only support for compatibility reasons. This restores these MIME types to the behavior before the recent additions of new codecs. Also, do not advertise newer codecs for HLS unless/until there is a need. This also replaces the |kFormatCodecMappings| static table, which was used to build |media_format_map_| with explicit calls for each container MIME type. This allows the codec lists to be built programatically, providing more control and less literal duplication than literal constants. BUG=589675 Committed: https://crrev.com/bc4545b1289c74b44ed6f86c124391d5366eb4e3 Cr-Commit-Position: refs/heads/master@{#384781}

Patch Set 1 #

Patch Set 2 : Review obsolete avc1 comments. #

Total comments: 14

Patch Set 3 : review feedback #

Patch Set 4 : rebase only #

Patch Set 5 : prototype new approach; drop MP3 from most types #

Total comments: 7

Patch Set 6 : use const char for some literals; restore MP3 for HLS #

Patch Set 7 : revert to std::string #

Patch Set 8 : rebase only #

Patch Set 9 : Eliminate kFormatCodecMappings entirely; handle proprietary codecs. #

Patch Set 10 : Reorder some types for consistency #

Total comments: 22

Patch Set 11 : fix Android build #

Patch Set 12 : Fix CodecSupportTest_Mpeg2Ts on Cast #

Patch Set 13 : review feedback #

Total comments: 7

Patch Set 14 : review feedback #

Patch Set 15 : fix Cast builds #

Patch Set 16 : rebase only #

Patch Set 17 : Fix Android - extra comma caused empty string codec #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -130 lines) Patch
M content/browser/media/media_canplaytype_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +32 lines, -42 lines 0 comments Download
M media/base/mime_util_internal.h View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -3 lines 0 comments Download
M media/base/mime_util_internal.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +105 lines, -85 lines 0 comments Download

Messages

Total messages: 47 (21 generated)
ddorwin
WDYT? It uses macros, but in a very limited scope. This also allows us to ...
4 years, 10 months ago (2016-02-25 01:09:48 UTC) #3
DaleCurtis
Kind of dicy with macro usage like this. Could we instead make these additions dynamically ...
4 years, 10 months ago (2016-02-25 01:40:17 UTC) #4
servolk
https://codereview.chromium.org/1728193004/diff/20001/media/base/mime_util_internal.cc File media/base/mime_util_internal.cc (right): https://codereview.chromium.org/1728193004/diff/20001/media/base/mime_util_internal.cc#newcode45 media/base/mime_util_internal.cc:45: "mp4a.66,mp4a.67,mp4a.68,mp4a.69,mp4a.6B,mp4a.40.2,mp4a.40.02,mp4a.40.5," \ Let's clean up those lists a little, ...
4 years, 10 months ago (2016-02-25 01:46:06 UTC) #5
ddorwin
On 2016/02/25 01:40:17, DaleCurtis wrote: > Kind of dicy with macro usage like this. Could ...
4 years, 9 months ago (2016-03-04 01:26:29 UTC) #6
DaleCurtis
I don't really follow; maybe my suggestion wasn't clear. I'm essentially just advocating something like: ...
4 years, 9 months ago (2016-03-04 01:39:02 UTC) #7
servolk
https://codereview.chromium.org/1728193004/diff/20001/content/browser/media/media_canplaytype_browsertest.cc File content/browser/media/media_canplaytype_browsertest.cc (right): https://codereview.chromium.org/1728193004/diff/20001/content/browser/media/media_canplaytype_browsertest.cc#newcode1314 content/browser/media/media_canplaytype_browsertest.cc:1314: CanPlay("'application/vnd.apple.mpegurl; codecs=\"hev1.1.6.L93.B0\"'")); On 2016/03/04 01:26:29, ddorwin wrote: > This ...
4 years, 9 months ago (2016-03-04 01:43:02 UTC) #8
ddorwin
On 2016/03/04 01:39:02, DaleCurtis wrote: > I don't really follow; maybe my suggestion wasn't clear. ...
4 years, 9 months ago (2016-03-05 00:47:08 UTC) #9
ddorwin
I prototyped the new approach. It is incomplete, but it passes the MediaCanPlayTypeTests. Please provide ...
4 years, 9 months ago (2016-03-17 20:52:55 UTC) #11
DaleCurtis
https://codereview.chromium.org/1728193004/diff/100001/media/base/mime_util_internal.cc File media/base/mime_util_internal.cc (right): https://codereview.chromium.org/1728193004/diff/100001/media/base/mime_util_internal.cc#newcode295 media/base/mime_util_internal.cc:295: #if defined(USE_PROPRIETARY_CODECS) Could have an InitializeProprietaryCodecMimeTypeMaps() here. https://codereview.chromium.org/1728193004/diff/100001/media/base/mime_util_internal.cc#newcode298 media/base/mime_util_internal.cc:298: ...
4 years, 9 months ago (2016-03-17 21:00:21 UTC) #12
ddorwin
Addressed one of your comments and replied to both. Do you have thoughts on eliminating ...
4 years, 9 months ago (2016-03-17 21:44:25 UTC) #13
DaleCurtis
I'm fine with eliminating the static map.
4 years, 9 months ago (2016-03-17 21:46:15 UTC) #14
ddorwin
This is now ready for review.
4 years, 8 months ago (2016-03-31 20:51:48 UTC) #18
DaleCurtis
Nice cleanup! https://codereview.chromium.org/1728193004/diff/200001/content/browser/media/media_canplaytype_browsertest.cc File content/browser/media/media_canplaytype_browsertest.cc (right): https://codereview.chromium.org/1728193004/diff/200001/content/browser/media/media_canplaytype_browsertest.cc#newcode197 content/browser/media/media_canplaytype_browsertest.cc:197: // Remove all but "audio/mpeg" when https://crbug.com/592889 ...
4 years, 8 months ago (2016-03-31 22:19:46 UTC) #19
ddorwin
https://codereview.chromium.org/1728193004/diff/200001/content/browser/media/media_canplaytype_browsertest.cc File content/browser/media/media_canplaytype_browsertest.cc (right): https://codereview.chromium.org/1728193004/diff/200001/content/browser/media/media_canplaytype_browsertest.cc#newcode197 content/browser/media/media_canplaytype_browsertest.cc:197: // Remove all but "audio/mpeg" when https://crbug.com/592889 is fixed. ...
4 years, 8 months ago (2016-03-31 23:24:58 UTC) #21
DaleCurtis
lgtm % nits. https://codereview.chromium.org/1728193004/diff/280001/media/base/mime_util_internal.cc File media/base/mime_util_internal.cc (right): https://codereview.chromium.org/1728193004/diff/280001/media/base/mime_util_internal.cc#newcode273 media/base/mime_util_internal.cc:273: const std::string mp4_audio_codecs = Can't you ...
4 years, 8 months ago (2016-03-31 23:31:34 UTC) #22
ddorwin
https://codereview.chromium.org/1728193004/diff/200001/media/base/mime_util_internal.cc File media/base/mime_util_internal.cc (right): https://codereview.chromium.org/1728193004/diff/200001/media/base/mime_util_internal.cc#newcode234 media/base/mime_util_internal.cc:234: void MimeUtil::InitializeMimeTypeMaps() { On 2016/03/31 23:24:57, ddorwin wrote: > ...
4 years, 8 months ago (2016-04-01 00:01:42 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1728193004/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1728193004/320001
4 years, 8 months ago (2016-04-01 00:35:11 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1728193004/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1728193004/320001
4 years, 8 months ago (2016-04-01 06:01:08 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/163314)
4 years, 8 months ago (2016-04-01 06:06:02 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1728193004/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1728193004/340001
4 years, 8 months ago (2016-04-01 16:04:22 UTC) #34
ddorwin
https://codereview.chromium.org/1728193004/diff/200001/media/base/mime_util_internal.cc File media/base/mime_util_internal.cc (right): https://codereview.chromium.org/1728193004/diff/200001/media/base/mime_util_internal.cc#newcode234 media/base/mime_util_internal.cc:234: void MimeUtil::InitializeMimeTypeMaps() { On 2016/04/01 00:01:41, ddorwin wrote: > ...
4 years, 8 months ago (2016-04-01 16:45:08 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/46881)
4 years, 8 months ago (2016-04-01 19:58:52 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1728193004/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1728193004/340001
4 years, 8 months ago (2016-04-01 20:01:43 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1728193004/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1728193004/380001
4 years, 8 months ago (2016-04-02 00:00:42 UTC) #43
commit-bot: I haz the power
Committed patchset #17 (id:380001)
4 years, 8 months ago (2016-04-02 01:43:01 UTC) #45
commit-bot: I haz the power
4 years, 8 months ago (2016-04-02 01:45:30 UTC) #47
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/bc4545b1289c74b44ed6f86c124391d5366eb4e3
Cr-Commit-Position: refs/heads/master@{#384781}

Powered by Google App Engine
This is Rietveld 408576698