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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 'Widevine': WIDEVINE_KEYSYSTEM, | 47 'Widevine': WIDEVINE_KEYSYSTEM, |
48 'Clearkey': CLEARKEY, | 48 'Clearkey': CLEARKEY, |
49 'External Clearkey': EXTERNAL_CLEARKEY | 49 'External Clearkey': EXTERNAL_CLEARKEY |
50 }; | 50 }; |
51 | 51 |
52 // General WebM and MP4 name:content_type map to show on the document page. | 52 // General WebM and MP4 name:content_type map to show on the document page. |
53 var MEDIA_TYPES = { | 53 var MEDIA_TYPES = { |
54 'WebM - Audio Video': 'video/webm; codecs="vorbis, vp8"', | 54 'WebM - Audio Video': 'video/webm; codecs="vorbis, vp8"', |
55 'WebM - Video Only': 'video/webm; codecs="vp8"', | 55 'WebM - Video Only': 'video/webm; codecs="vp8"', |
56 'WebM - Audio Only': 'video/webm; codecs="vorbis"', | 56 'WebM - Audio Only': 'video/webm; codecs="vorbis"', |
57 'MP4 - Video Only': 'video/mp4; codecs="avc1.4D4041"', | 57 'MP4 - Video Only': 'video/mp4; codecs="avc1.4D000C"', |
58 'MP4 - Audio Only': 'audio/mp4; codecs="mp4a.40.2"' | 58 'MP4 - Audio Only': 'audio/mp4; codecs="mp4a.40.2"' |
59 }; | 59 }; |
60 | 60 |
61 // Global document elements ID's. | 61 // Global document elements ID's. |
62 var VIDEO_ELEMENT_ID = 'video'; | 62 var VIDEO_ELEMENT_ID = 'video'; |
63 var MEDIA_FILE_ELEMENT_ID = 'mediaFile'; | 63 var MEDIA_FILE_ELEMENT_ID = 'mediaFile'; |
64 var LICENSE_SERVER_ELEMENT_ID = 'licenseServer'; | 64 var LICENSE_SERVER_ELEMENT_ID = 'licenseServer'; |
65 var KEYSYSTEM_ELEMENT_ID = 'keySystemList'; | 65 var KEYSYSTEM_ELEMENT_ID = 'keySystemList'; |
66 var MEDIA_TYPE_ELEMENT_ID = 'mediaTypeList'; | 66 var MEDIA_TYPE_ELEMENT_ID = 'mediaTypeList'; |
67 var USE_MSE_ELEMENT_ID = 'useMSE'; | 67 var USE_MSE_ELEMENT_ID = 'useMSE'; |
68 var USE_PLAY_TWICE_ELEMENT_ID = 'playTwice'; | 68 var USE_PLAY_TWICE_ELEMENT_ID = 'playTwice'; |
69 | 69 |
70 // 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. |
71 var decodedFPSElement = document.getElementById('decodedFPS'); | 71 var decodedFPSElement = document.getElementById('decodedFPS'); |
72 var droppedFPSElement = document.getElementById('droppedFPS'); | 72 var droppedFPSElement = document.getElementById('droppedFPS'); |
73 var droppedFramesElement = document.getElementById('droppedFrames'); | 73 var droppedFramesElement = document.getElementById('droppedFrames'); |
74 var docLogs = document.getElementById('logs'); | 74 var docLogs = document.getElementById('logs'); |
OLD | NEW |