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

Issue 2349813002: EME: Update MediaKeySystemConfiguration defaults; require non-empty capabilities (Closed)

Created:
4 years, 3 months ago by jrummell
Modified:
4 years, 2 months ago
CC:
chromium-reviews, skanuj+watch_chromium.org, melevin+watch_chromium.org, samarth+watch_chromium.org, mlamouri+watch-blink_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, eric.carlson_apple.com, haraken, feature-media-reviews_chromium.org, dglazkov+blink, jfweitz+watch_chromium.org, David Black, asvitkine+watch_chromium.org, mcasas+watch+vc_chromium.org, blink-reviews, kmadhusu+watch_chromium.org, Srirama, blink-reviews-api_chromium.org, Jered, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

EME: Update MediaKeySystemConfiguration defaults; check capabilities The current EME spec has added defaults for some fields in MediaKeySystemConfiguration, so update the code to specify the defaults and match the latest algorithm. As well, at least one of 'audioCapabilities' or 'videoCapabilities' should be specified, so add a UseCounter if none are provided to help determine when this can be enforced in the future. Also update some of the EME tests to provide either 'audioCapabilities' or 'videoCapabilities' (or both) when calling requestMediaKeySystemAccess(). BUG=616233 TEST=EME tests pass Committed: https://crrev.com/2737b99610b13c7fcaad6ec3041cce4b538b372f Cr-Commit-Position: refs/heads/master@{#422596}

Patch Set 1 #

Total comments: 8

Patch Set 2 : changes #

Total comments: 12

Patch Set 3 : Changes #

Patch Set 4 : rebase #

Patch Set 5 : fix Android compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+477 lines, -258 lines) Patch
M chrome/browser/media/encrypted_media_browsertest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M media/blink/key_system_config_selector.cc View 1 2 14 chunks +237 lines, -131 lines 0 comments Download
M media/blink/key_system_config_selector_unittest.cc View 1 2 3 4 33 chunks +97 lines, -60 lines 0 comments Download
M media/test/data/eme_player_js/globals.js View 1 chunk +1 line, -1 line 0 comments Download
M media/test/data/eme_player_js/player_utils.js View 1 chunk +62 lines, -10 lines 0 comments Download
M media/test/data/test_key_system_instantiation.html View 3 chunks +7 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/encryptedmedia/MediaKeySystemConfiguration.idl View 1 2 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.cpp View 1 2 3 10 chunks +62 lines, -29 lines 0 comments Download
M third_party/WebKit/public/platform/WebMediaKeySystemConfiguration.h View 1 2 3 4 1 chunk +1 line, -16 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (10 generated)
jrummell
PTAL. Should match the latest spec.
4 years, 3 months ago (2016-09-16 19:05:23 UTC) #2
sandersd (OOO until July 31)
LGTM % nits. I verified that this implements the documented algorithm, I didn't attempt to ...
4 years, 3 months ago (2016-09-16 23:02:11 UTC) #3
ddorwin
I only skimmed very briefly. https://codereview.chromium.org/2349813002/diff/1/third_party/WebKit/Source/core/frame/Deprecation.cpp File third_party/WebKit/Source/core/frame/Deprecation.cpp (right): https://codereview.chromium.org/2349813002/diff/1/third_party/WebKit/Source/core/frame/Deprecation.cpp#newcode350 third_party/WebKit/Source/core/frame/Deprecation.cpp:350: return String::format("EME requires that ...
4 years, 3 months ago (2016-09-16 23:07:25 UTC) #4
jrummell
Updated. +foolip@ for OWNERS review of - third_party/WebKit/Source/core/frame/* (deprecation message) - third_party/WebKit/public/platform/WebMediaKeySystemConfiguration.h (enum) +holta@ for ...
4 years, 3 months ago (2016-09-17 00:15:06 UTC) #6
Steven Holte
histograms lgtm
4 years, 3 months ago (2016-09-19 18:51:00 UTC) #7
jrummell
ping foolip@ for OWNERS review.
4 years, 3 months ago (2016-09-23 00:53:12 UTC) #8
foolip
https://codereview.chromium.org/2349813002/diff/20001/third_party/WebKit/Source/core/frame/Deprecation.cpp File third_party/WebKit/Source/core/frame/Deprecation.cpp (right): https://codereview.chromium.org/2349813002/diff/20001/third_party/WebKit/Source/core/frame/Deprecation.cpp#newcode350 third_party/WebKit/Source/core/frame/Deprecation.cpp:350: return String::format("EME requires that one of 'audioCapabilities' and 'videoCapabilities' ...
4 years, 3 months ago (2016-09-23 08:18:39 UTC) #9
jrummell
Updated to remove the deprecation message for now. https://codereview.chromium.org/2349813002/diff/20001/third_party/WebKit/Source/core/frame/Deprecation.cpp File third_party/WebKit/Source/core/frame/Deprecation.cpp (right): https://codereview.chromium.org/2349813002/diff/20001/third_party/WebKit/Source/core/frame/Deprecation.cpp#newcode350 third_party/WebKit/Source/core/frame/Deprecation.cpp:350: return ...
4 years, 2 months ago (2016-09-29 20:40:02 UTC) #10
foolip
I think my lgtm is no longer needed, but rs lgtm if it is.
4 years, 2 months ago (2016-09-29 21:14:31 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2349813002/60001
4 years, 2 months ago (2016-10-03 18:30:24 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/209897) chromeos_x86-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 2 months ago (2016-10-03 18:45:07 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2349813002/80001
4 years, 2 months ago (2016-10-03 21:30:00 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-03 23:30:41 UTC) #22
commit-bot: I haz the power
4 years, 2 months ago (2016-10-03 23:32:32 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/2737b99610b13c7fcaad6ec3041cce4b538b372f
Cr-Commit-Position: refs/heads/master@{#422596}

Powered by Google App Engine
This is Rietveld 408576698