OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 'use strict'; | |
6 | |
7 /** | 5 /** |
8 * Overrided metadata worker's path. | 6 * Overrided metadata worker's path. |
9 * @type {string} | 7 * @type {string} |
10 * @const | 8 * @const |
11 */ | 9 */ |
12 ContentProvider.WORKER_SCRIPT = '/js/metadata_worker.js'; | 10 ContentProvider.WORKER_SCRIPT = '/js/metadata_worker.js'; |
13 | 11 |
14 /** | 12 /** |
15 * @param {HTMLElement} container Container element. | 13 * @param {HTMLElement} container Container element. |
16 * @constructor | 14 * @constructor |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 this.title = (metadata.media && metadata.media.title) || | 425 this.title = (metadata.media && metadata.media.title) || |
428 this.getDefaultTitle(); | 426 this.getDefaultTitle(); |
429 this.artist = error || | 427 this.artist = error || |
430 (metadata.media && metadata.media.artist) || this.getDefaultArtist(); | 428 (metadata.media && metadata.media.artist) || this.getDefaultArtist(); |
431 }; | 429 }; |
432 | 430 |
433 // Starts loading the audio player. | 431 // Starts loading the audio player. |
434 window.addEventListener('polymer-ready', function(e) { | 432 window.addEventListener('polymer-ready', function(e) { |
435 AudioPlayer.load(); | 433 AudioPlayer.load(); |
436 }); | 434 }); |
OLD | NEW |