| OLD | NEW |
| 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 16 matching lines...) Expand all Loading... |
| 27 var EME_LOAD_FAILED = 'EME_LOAD_FAILED'; | 27 var EME_LOAD_FAILED = 'EME_LOAD_FAILED'; |
| 28 var EME_UPDATE_FAILED = 'EME_UPDATE_FAILED'; | 28 var EME_UPDATE_FAILED = 'EME_UPDATE_FAILED'; |
| 29 var EME_ERROR_EVENT = 'EME_ERROR_EVENT'; | 29 var EME_ERROR_EVENT = 'EME_ERROR_EVENT'; |
| 30 var EME_MESSAGE_UNEXPECTED_TYPE = 'EME_MESSAGE_UNEXPECTED_TYPE'; | 30 var EME_MESSAGE_UNEXPECTED_TYPE = 'EME_MESSAGE_UNEXPECTED_TYPE'; |
| 31 var EME_RENEWAL_MISSING_HEADER = 'EME_RENEWAL_MISSING_HEADER'; | 31 var EME_RENEWAL_MISSING_HEADER = 'EME_RENEWAL_MISSING_HEADER'; |
| 32 | 32 |
| 33 // Headers used when running some specific unittests in the external CDM. | 33 // Headers used when running some specific unittests in the external CDM. |
| 34 var UNIT_TEST_RESULT_HEADER = 'UNIT_TEST_RESULT'; | 34 var UNIT_TEST_RESULT_HEADER = 'UNIT_TEST_RESULT'; |
| 35 | 35 |
| 36 // Available EME key systems to use. | 36 // Available EME key systems to use. |
| 37 var WIDEVINE_KEYSYSTEM = 'com.widevine.alpha'; |
| 37 var CLEARKEY = 'org.w3.clearkey'; | 38 var CLEARKEY = 'org.w3.clearkey'; |
| 38 var EXTERNAL_CLEARKEY = 'org.chromium.externalclearkey'; | 39 var EXTERNAL_CLEARKEY = 'org.chromium.externalclearkey'; |
| 39 var WIDEVINE_KEYSYSTEM = 'com.widevine.alpha'; | 40 var EXTERNAL_CLEARKEY_RENEWAL = 'org.chromium.externalclearkey.renewal'; |
| 40 var FILE_IO_TEST_KEYSYSTEM = 'org.chromium.externalclearkey.fileiotest'; | 41 var FILE_IO_TEST_KEYSYSTEM = 'org.chromium.externalclearkey.fileiotest'; |
| 41 var OUTPUT_PROTECTION_TEST_KEYSYSTEM = | 42 var OUTPUT_PROTECTION_TEST_KEYSYSTEM = |
| 42 'org.chromium.externalclearkey.outputprotectiontest'; | 43 'org.chromium.externalclearkey.outputprotectiontest'; |
| 43 | 44 |
| 44 // Key system name:value map to show on the document page. | 45 // Key system name:value map to show on the document page. |
| 45 var KEY_SYSTEMS = { | 46 var KEY_SYSTEMS = { |
| 46 'Widevine': WIDEVINE_KEYSYSTEM, | 47 'Widevine': WIDEVINE_KEYSYSTEM, |
| 47 'Clearkey': CLEARKEY, | 48 'Clearkey': CLEARKEY, |
| 48 'External Clearkey': EXTERNAL_CLEARKEY | 49 'External Clearkey': EXTERNAL_CLEARKEY |
| 49 }; | 50 }; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 64 var KEYSYSTEM_ELEMENT_ID = 'keySystemList'; | 65 var KEYSYSTEM_ELEMENT_ID = 'keySystemList'; |
| 65 var MEDIA_TYPE_ELEMENT_ID = 'mediaTypeList'; | 66 var MEDIA_TYPE_ELEMENT_ID = 'mediaTypeList'; |
| 66 var USE_MSE_ELEMENT_ID = 'useMSE'; | 67 var USE_MSE_ELEMENT_ID = 'useMSE'; |
| 67 var USE_PLAY_TWICE_ELEMENT_ID = 'playTwice'; | 68 var USE_PLAY_TWICE_ELEMENT_ID = 'playTwice'; |
| 68 | 69 |
| 69 // These variables get updated every second, so better to have global pointers. | 70 // These variables get updated every second, so better to have global pointers. |
| 70 var decodedFPSElement = document.getElementById('decodedFPS'); | 71 var decodedFPSElement = document.getElementById('decodedFPS'); |
| 71 var droppedFPSElement = document.getElementById('droppedFPS'); | 72 var droppedFPSElement = document.getElementById('droppedFPS'); |
| 72 var droppedFramesElement = document.getElementById('droppedFrames'); | 73 var droppedFramesElement = document.getElementById('droppedFrames'); |
| 73 var docLogs = document.getElementById('logs'); | 74 var docLogs = document.getElementById('logs'); |
| OLD | NEW |