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

Side by Side Diff: media/test/data/eme_player_js/globals.js

Issue 2543623003: media: Allow config change between clear and encrypted streams (Closed)
Patch Set: comments addressed Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « media/test/data/eme_player.html ('k') | media/test/data/eme_player_js/test_config.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file contains global constant variables used by the application. 5 // This file contains global constant variables used by the application.
6 6
7 // Renewal message header. External Clear Key implementation returns this as 7 // Renewal message header. External Clear Key implementation returns this as
8 // part of renewal messages. 8 // part of renewal messages.
9 var EME_RENEWAL_MESSAGE_HEADER = 'RENEWAL'; 9 var EME_RENEWAL_MESSAGE_HEADER = 'RENEWAL';
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 var VERIFY_HOST_FILES_TEST_KEYSYSTEM = 48 var VERIFY_HOST_FILES_TEST_KEYSYSTEM =
49 'org.chromium.externalclearkey.verifycdmhosttest'; 49 'org.chromium.externalclearkey.verifycdmhosttest';
50 50
51 // Key system name:value map to show on the document page. 51 // Key system name:value map to show on the document page.
52 var KEY_SYSTEMS = { 52 var KEY_SYSTEMS = {
53 'Widevine': WIDEVINE_KEYSYSTEM, 53 'Widevine': WIDEVINE_KEYSYSTEM,
54 'Clearkey': CLEARKEY, 54 'Clearkey': CLEARKEY,
55 'External Clearkey': EXTERNAL_CLEARKEY 55 'External Clearkey': EXTERNAL_CLEARKEY
56 }; 56 };
57 57
58 var CONFIG_CHANGE_TYPE = {
59 CLEAR_TO_CLEAR : '0',
60 CLEAR_TO_ENCRYPTED : '1',
61 ENCRYPTED_TO_CLEAR : '2',
62 ENCRYPTED_TO_ENCRYPTED : '3'
63 };
64
58 // General WebM and MP4 name:content_type map to show on the document page. 65 // General WebM and MP4 name:content_type map to show on the document page.
59 var MEDIA_TYPES = { 66 var MEDIA_TYPES = {
60 'WebM - Audio Video': 'video/webm; codecs="vorbis, vp8"', 67 'WebM - Audio Video': 'video/webm; codecs="vorbis, vp8"',
61 'WebM - Video Only': 'video/webm; codecs="vp8"', 68 'WebM - Video Only': 'video/webm; codecs="vp8"',
62 'WebM - Audio Only': 'video/webm; codecs="vorbis"', 69 'WebM - Audio Only': 'video/webm; codecs="vorbis"',
63 'MP4 - Video Only': 'video/mp4; codecs="avc1.4D000C"', 70 'MP4 - Video Only': 'video/mp4; codecs="avc1.4D000C"',
64 'MP4 - Audio Only': 'audio/mp4; codecs="mp4a.40.2"' 71 'MP4 - Audio Only': 'audio/mp4; codecs="mp4a.40.2"'
65 }; 72 };
66 73
67 // Global document elements ID's. 74 // Global document elements ID's.
68 var VIDEO_ELEMENT_ID = 'video'; 75 var VIDEO_ELEMENT_ID = 'video';
69 var MEDIA_FILE_ELEMENT_ID = 'mediaFile'; 76 var MEDIA_FILE_ELEMENT_ID = 'mediaFile';
70 var LICENSE_SERVER_ELEMENT_ID = 'licenseServer'; 77 var LICENSE_SERVER_ELEMENT_ID = 'licenseServer';
71 var KEYSYSTEM_ELEMENT_ID = 'keySystemList'; 78 var KEYSYSTEM_ELEMENT_ID = 'keySystemList';
72 var MEDIA_TYPE_ELEMENT_ID = 'mediaTypeList'; 79 var MEDIA_TYPE_ELEMENT_ID = 'mediaTypeList';
73 var USE_MSE_ELEMENT_ID = 'useMSE'; 80 var USE_MSE_ELEMENT_ID = 'useMSE';
74 var USE_PLAY_TWICE_ELEMENT_ID = 'playTwice'; 81 var USE_PLAY_TWICE_ELEMENT_ID = 'playTwice';
75 82
76 // These variables get updated every second, so better to have global pointers. 83 // These variables get updated every second, so better to have global pointers.
77 var decodedFPSElement = document.getElementById('decodedFPS'); 84 var decodedFPSElement = document.getElementById('decodedFPS');
78 var droppedFPSElement = document.getElementById('droppedFPS'); 85 var droppedFPSElement = document.getElementById('droppedFPS');
79 var droppedFramesElement = document.getElementById('droppedFrames'); 86 var droppedFramesElement = document.getElementById('droppedFrames');
80 var docLogs = document.getElementById('logs'); 87 var docLogs = document.getElementById('logs');
OLDNEW
« no previous file with comments | « media/test/data/eme_player.html ('k') | media/test/data/eme_player_js/test_config.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698