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 // EMEApp is responsible for starting playback on the eme_player.html page. | 5 // EMEApp is responsible for starting playback on the eme_player.html page. |
6 // It selects the suitable player based on key system and other test options. | 6 // It selects the suitable player based on key system and other test options. |
7 function EMEApp(testConfig) { | 7 function EMEApp(testConfig) { |
8 this.video_ = null; | 8 this.video_ = null; |
9 this.testConfig_ = testConfig; | 9 this.testConfig_ = testConfig; |
10 this.updateDocument(testConfig); | 10 this.updateDocument(testConfig); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 this.testConfig_.mediaType = | 72 this.testConfig_.mediaType = |
73 document.getElementById(MEDIA_TYPE_ELEMENT_ID).value; | 73 document.getElementById(MEDIA_TYPE_ELEMENT_ID).value; |
74 this.testConfig_.useMSE = | 74 this.testConfig_.useMSE = |
75 document.getElementById(USE_MSE_ELEMENT_ID).value == 'true'; | 75 document.getElementById(USE_MSE_ELEMENT_ID).value == 'true'; |
76 this.testConfig_.usePrefixedEME = ( | 76 this.testConfig_.usePrefixedEME = ( |
77 document.getElementById(USE_PREFIXED_EME_ID).value == | 77 document.getElementById(USE_PREFIXED_EME_ID).value == |
78 EME_PREFIXED_VERSION); | 78 EME_PREFIXED_VERSION); |
79 this.testConfig_.licenseServerURL = | 79 this.testConfig_.licenseServerURL = |
80 document.getElementById(LICENSE_SERVER_ELEMENT_ID).value; | 80 document.getElementById(LICENSE_SERVER_ELEMENT_ID).value; |
81 }; | 81 }; |
OLD | NEW |