* Get or set an error on the Tech. * * @param {MediaError} [err] * Error to set on the Tech * * @return {MediaError|null} * The current error object on the tech, or null if there isn't one.
(err)
| 469 | * The current error object on the tech, or null if there isn't one. |
| 470 | */ |
| 471 | error(err) { |
| 472 | if (err !== undefined) { |
| 473 | this.error_ = new MediaError(err); |
| 474 | this.trigger('error'); |
| 475 | } |
| 476 | return this.error_; |
| 477 | } |
| 478 | |
| 479 | /** |
| 480 | * Returns the `TimeRange`s that have been played through for the current source. |
no test coverage detected