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

Issue 134663005: Add new needkey event for EME. (Closed)

Created:
6 years, 11 months ago by jrummell
Modified:
6 years, 11 months ago
CC:
blink-reviews, jamesr, nessy, arv+blink, Rik, dsinclair, philipj_slow, gasubic, jbroman, watchdog-blink-watchlist_google.com, danakj, feature-media-reviews_chromium.org, dglazkov+blink, pdr., krit, adamk+blink_chromium.org, abarth-chromium, Stephen Chennney, rwlbuis, vcarbune.chromium, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Add new needkey event for EME. EME WD uses 'needkey' event (EME v0.1b was 'webkitneedkey'). This change adds support for the new event while retaining support for the previous event. BUG=224786 TEST=new test added Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165087

Patch Set 1 #

Total comments: 10

Patch Set 2 : Add test #

Total comments: 36

Patch Set 3 : Fix test #

Total comments: 6

Patch Set 4 : Fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -38 lines) Patch
A + LayoutTests/media/content/test.webm View 1 Binary file 0 comments Download
A LayoutTests/media/content/test-encrypted.webm View 1 Binary file 0 comments Download
A LayoutTests/media/encrypted-media/encrypted-media-needkey.html View 1 2 3 1 chunk +50 lines, -0 lines 0 comments Download
A LayoutTests/media/encrypted-media/encrypted-media-needkey-expected.txt View 1 2 1 chunk +47 lines, -0 lines 0 comments Download
M Source/core/events/EventTypeNames.in View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLMediaElement.h View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 2 3 1 chunk +17 lines, -29 lines 0 comments Download
M Source/core/html/HTMLMediaElement.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeyNeededEvent.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeyNeededEvent.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeyNeededEvent.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/platform/graphics/media/MediaPlayer.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M Source/web/WebMediaPlayerClientImpl.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebMediaPlayerClientImpl.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M public/platform/WebMediaPlayerClient.h View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
jrummell
PTAL.
6 years, 11 months ago (2014-01-11 00:34:25 UTC) #1
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/134663005/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/134663005/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode1713 Source/core/html/HTMLMediaElement.cpp:1713: bool HTMLMediaElement::mediaPlayerKeyNeeded(const String& mimeType, const unsigned char* initData, unsigned ...
6 years, 11 months ago (2014-01-11 01:11:24 UTC) #2
jrummell
Updated with test. PTAL. https://codereview.chromium.org/134663005/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/134663005/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode1713 Source/core/html/HTMLMediaElement.cpp:1713: bool HTMLMediaElement::mediaPlayerKeyNeeded(const String& mimeType, const ...
6 years, 11 months ago (2014-01-11 01:56:56 UTC) #3
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/134663005/diff/80001/LayoutTests/media/encrypted-media/encrypted-media-needkey.html File LayoutTests/media/encrypted-media/encrypted-media-needkey.html (right): https://codereview.chromium.org/134663005/diff/80001/LayoutTests/media/encrypted-media/encrypted-media-needkey.html#newcode9 LayoutTests/media/encrypted-media/encrypted-media-needkey.html:9: var arr=[]; nit: Add spaces around '=' here and ...
6 years, 11 months ago (2014-01-13 18:19:04 UTC) #4
xhwang
https://codereview.chromium.org/134663005/diff/80001/LayoutTests/media/encrypted-media/encrypted-media-needkey.html File LayoutTests/media/encrypted-media/encrypted-media-needkey.html (right): https://codereview.chromium.org/134663005/diff/80001/LayoutTests/media/encrypted-media/encrypted-media-needkey.html#newcode28 LayoutTests/media/encrypted-media/encrypted-media-needkey.html:28: video.setMediaKeys(mediaKeys); Based on the spec, we don't need a ...
6 years, 11 months ago (2014-01-13 18:42:40 UTC) #5
jrummell
Updated. https://codereview.chromium.org/134663005/diff/80001/LayoutTests/media/encrypted-media/encrypted-media-needkey.html File LayoutTests/media/encrypted-media/encrypted-media-needkey.html (right): https://codereview.chromium.org/134663005/diff/80001/LayoutTests/media/encrypted-media/encrypted-media-needkey.html#newcode9 LayoutTests/media/encrypted-media/encrypted-media-needkey.html:9: var arr=[]; On 2014/01/13 18:19:04, acolwell wrote: > ...
6 years, 11 months ago (2014-01-13 19:01:31 UTC) #6
ddorwin
Publishing comments in PS2. I'll nowmove to PS3. https://codereview.chromium.org/134663005/diff/80001/LayoutTests/media/encrypted-media/encrypted-media-needkey.html File LayoutTests/media/encrypted-media/encrypted-media-needkey.html (right): https://codereview.chromium.org/134663005/diff/80001/LayoutTests/media/encrypted-media/encrypted-media-needkey.html#newcode1 LayoutTests/media/encrypted-media/encrypted-media-needkey.html:1: <!DOCTYPE ...
6 years, 11 months ago (2014-01-13 19:08:37 UTC) #7
ddorwin
https://codereview.chromium.org/134663005/diff/200001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/134663005/diff/200001/Source/core/html/HTMLMediaElement.cpp#newcode1726 Source/core/html/HTMLMediaElement.cpp:1726: return true; We shouldn't return. We may need to ...
6 years, 11 months ago (2014-01-13 19:17:49 UTC) #8
acolwell GONE FROM CHROMIUM
lgtm https://codereview.chromium.org/134663005/diff/80001/LayoutTests/media/encrypted-media/encrypted-media-needkey.html File LayoutTests/media/encrypted-media/encrypted-media-needkey.html (right): https://codereview.chromium.org/134663005/diff/80001/LayoutTests/media/encrypted-media/encrypted-media-needkey.html#newcode26 LayoutTests/media/encrypted-media/encrypted-media-needkey.html:26: run('mediaKeys = new MediaKeys("org.w3.clearkey")'); On 2014/01/13 19:01:32, jrummell ...
6 years, 11 months ago (2014-01-13 19:19:38 UTC) #9
jrummell
Updated. https://codereview.chromium.org/134663005/diff/80001/LayoutTests/media/encrypted-media/encrypted-media-needkey.html File LayoutTests/media/encrypted-media/encrypted-media-needkey.html (right): https://codereview.chromium.org/134663005/diff/80001/LayoutTests/media/encrypted-media/encrypted-media-needkey.html#newcode9 LayoutTests/media/encrypted-media/encrypted-media-needkey.html:9: var arr=[]; On 2014/01/13 19:08:38, ddorwin wrote: > ...
6 years, 11 months ago (2014-01-13 22:43:43 UTC) #10
abarth-chromium
public/ LGTM
6 years, 11 months ago (2014-01-14 04:03:32 UTC) #11
xhwang
lgtm
6 years, 11 months ago (2014-01-14 04:06:12 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jrummell@chromium.org/134663005/420001
6 years, 11 months ago (2014-01-14 17:38:28 UTC) #13
commit-bot: I haz the power
6 years, 11 months ago (2014-01-14 19:04:50 UTC) #14
Message was sent while issue was closed.
Change committed as 165087

Powered by Google App Engine
This is Rietveld 408576698