MCPcopy
hub / github.com/videojs/video.js / error

Method error

src/js/tech/tech.js:471–477  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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.

Callers 6

onFunction · 0.45
parseCuesFunction · 0.45
loadTrackFunction · 0.45
tech.jsFile · 0.45
addSourceElementMethod · 0.45
removeSourceElementMethod · 0.45

Calls 1

triggerMethod · 0.45

Tested by

no test coverage detected