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

Unified Diff: media/test/data/eme_player_js/player_utils.js

Issue 648303002: Correct logic to bind "encrypted" event in EME player_utils.js. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/test/data/eme_player_js/player_utils.js
diff --git a/media/test/data/eme_player_js/player_utils.js b/media/test/data/eme_player_js/player_utils.js
index 0e92ecd8b1990eee00d66ce0160e197f938cc9e8..16f3de6c5d86d60cc1dad0191bac56078f7b4253 100644
--- a/media/test/data/eme_player_js/player_utils.js
+++ b/media/test/data/eme_player_js/player_utils.js
@@ -85,11 +85,8 @@ PlayerUtils.registerEMEEventListeners = function(player) {
// TODO(sandersd): Stop registering 'needkey' after it is renamed to
// 'encrypted'.
- if (player.video.onencrypted) {
- player.video.addEventListener('encrypted', encrypted_handler);
- } else {
- player.video.addEventListener('needkey', encrypted_handler);
- }
+ player.video.addEventListener('encrypted', encrypted_handler);
+ player.video.addEventListener('needkey', encrypted_handler);
this.registerDefaultEventListeners(player);
try {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698