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 // The PlayerUtils provides utility functions to binding common media events | 5 // The PlayerUtils provides utility functions to binding common media events |
6 // to specific player functions. It also provides functions to load media source | 6 // to specific player functions. It also provides functions to load media source |
7 // base on test configurations. | 7 // base on test configurations. |
8 var PlayerUtils = new function() { | 8 var PlayerUtils = new function() { |
9 } | 9 } |
10 | 10 |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 case WIDEVINE_KEYSYSTEM: | 206 case WIDEVINE_KEYSYSTEM: |
207 return WidevinePlayer; | 207 return WidevinePlayer; |
208 case CLEARKEY: | 208 case CLEARKEY: |
209 case EXTERNAL_CLEARKEY: | 209 case EXTERNAL_CLEARKEY: |
210 case EXTERNAL_CLEARKEY_RENEWAL: | 210 case EXTERNAL_CLEARKEY_RENEWAL: |
211 case CRASH_TEST_KEYSYSTEM: | 211 case CRASH_TEST_KEYSYSTEM: |
212 return ClearKeyPlayer; | 212 return ClearKeyPlayer; |
213 case FILE_IO_TEST_KEYSYSTEM: | 213 case FILE_IO_TEST_KEYSYSTEM: |
214 case OUTPUT_PROTECTION_TEST_KEYSYSTEM: | 214 case OUTPUT_PROTECTION_TEST_KEYSYSTEM: |
215 case PLATFORM_VERIFICATION_TEST_KEYSYSTEM: | 215 case PLATFORM_VERIFICATION_TEST_KEYSYSTEM: |
| 216 case VERIFY_HOST_FILES_TEST_KEYSYSTEM: |
216 return UnitTestPlayer; | 217 return UnitTestPlayer; |
217 default: | 218 default: |
218 Utils.timeLog(keySystem + ' is not a known key system'); | 219 Utils.timeLog(keySystem + ' is not a known key system'); |
219 return ClearKeyPlayer; | 220 return ClearKeyPlayer; |
220 } | 221 } |
221 } | 222 } |
222 var Player = getPlayerType(testConfig.keySystem); | 223 var Player = getPlayerType(testConfig.keySystem); |
223 return new Player(video, testConfig); | 224 return new Player(video, testConfig); |
224 }; | 225 }; |
OLD | NEW |