| 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 'use strict'; | |
| 6 | |
| 7 /** | 5 /** |
| 8 * Interval for updating media info (in ms). | 6 * Interval for updating media info (in ms). |
| 9 * @type {number} | 7 * @type {number} |
| 10 * @const | 8 * @const |
| 11 */ | 9 */ |
| 12 var MEDIA_UPDATE_INTERVAL = 250; | 10 var MEDIA_UPDATE_INTERVAL = 250; |
| 13 | 11 |
| 14 /** | 12 /** |
| 15 * The namespace for communication between the cast and the player. | 13 * The namespace for communication between the cast and the player. |
| 16 * @type {string} | 14 * @type {string} |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 this.dispatchEvent(new Event('durationchange')); | 490 this.dispatchEvent(new Event('durationchange')); |
| 493 } | 491 } |
| 494 | 492 |
| 495 // Media is being unloaded. | 493 // Media is being unloaded. |
| 496 if (!alive) { | 494 if (!alive) { |
| 497 this.unloadMedia_(); | 495 this.unloadMedia_(); |
| 498 return; | 496 return; |
| 499 } | 497 } |
| 500 }, | 498 }, |
| 501 }; | 499 }; |
| OLD | NEW |