|
2037 | 2037 | * `Component` will get created by this process.
|
2038 | 2038 | */ _proto.addChild = function(child, options, index) {
|
2039 | 2039 | if (void 0 === options && (options = {}), void 0 === index && (index = this.children_.length), "string" == typeof child) {
|
2040 |
| - componentName = toTitleCase$1(child); |
2041 |
| - var component, componentName, componentClassName = options.componentClass || componentName; // Set name through options |
| 2040 | + var component, componentName = toTitleCase$1(child), componentClassName = options.componentClass || componentName; // Set name through options |
2042 | 2041 | options.name = componentName; // Create a new object & element for this controls set
|
2043 | 2042 | // If there's no .player_, this is a player
|
2044 | 2043 | var ComponentClass = Component.getComponent(componentClassName);
|
|
3792 | 3791 | *
|
3793 | 3792 | * @abstract
|
3794 | 3793 | */ function Track(options) {
|
3795 |
| - void 0 === options && (options = {}), _this = _EventTarget.call(this) || this; |
3796 |
| - var _this, trackProps = { |
| 3794 | + void 0 === options && (options = {}); |
| 3795 | + var _this = _EventTarget.call(this) || this, trackProps = { |
3797 | 3796 | id: options.id || "vjs_track_" + _guid++,
|
3798 | 3797 | kind: options.kind || "",
|
3799 | 3798 | language: options.language || ""
|
|
4220 | 4219 | * @param {boolean} [options.default]
|
4221 | 4220 | * If this track should default to on or off.
|
4222 | 4221 | */ function HTMLTrackElement(options) {
|
4223 |
| - void 0 === options && (options = {}), _this = _EventTarget.call(this) || this; |
4224 |
| - var _this, readyState, track = new TextTrack(options); |
| 4222 | + void 0 === options && (options = {}); |
| 4223 | + var readyState, _this = _EventTarget.call(this) || this, track = new TextTrack(options); |
4225 | 4224 | return _this.kind = track.kind, _this.src = track.src, _this.srclang = track.language, _this.label = track.label, _this.default = track.default, Object.defineProperties((0, _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_17__ /* ["default"] */ .Z)(_this), {
|
4226 | 4225 | /**
|
4227 | 4226 | * @memberof HTMLTrackElement
|
|
5593 | 5592 | * @param {Component~ReadyCallback} [ready]
|
5594 | 5593 | * The function to call when `TextTrackDisplay` is ready.
|
5595 | 5594 | */ function TextTrackDisplay(player, options, ready) {
|
5596 |
| - _this = _Component.call(this, player, options, ready) || this; |
5597 |
| - var _this, updateDisplayHandler = function(e) { |
| 5595 | + var _this = _Component.call(this, player, options, ready) || this, updateDisplayHandler = function(e) { |
5598 | 5596 | return _this.updateDisplay(e);
|
5599 | 5597 | };
|
5600 | 5598 | return player.on("loadstart", function(e) {
|
|
6259 | 6257 | * @param {Object} [options]
|
6260 | 6258 | * The key/value store of player options.
|
6261 | 6259 | */ function DurationDisplay(player, options) {
|
6262 |
| - _this = _TimeDisplay.call(this, player, options) || this; |
6263 |
| - var _this, updateContent = function(e) { |
| 6260 | + var _this = _TimeDisplay.call(this, player, options) || this, updateContent = function(e) { |
6264 | 6261 | return _this.updateContent(e);
|
6265 | 6262 | }; // we do not want to/need to throttle duration changes,
|
6266 | 6263 | return(// as they should always display the changed duration as
|
|
8991 | 8988 | * @param {Component~ReadyCallback} [ready]
|
8992 | 8989 | * The function to call when this component is ready.
|
8993 | 8990 | */ function DescriptionsButton(player, options, ready) {
|
8994 |
| - _this = _TextTrackButton.call(this, player, options, ready) || this; |
8995 |
| - var _this, tracks = player.textTracks(), changeHandler = bind((0, _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_17__ /* ["default"] */ .Z)(_this), _this.handleTracksChange); |
| 8991 | + var _this = _TextTrackButton.call(this, player, options, ready) || this, tracks = player.textTracks(), changeHandler = bind((0, _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_17__ /* ["default"] */ .Z)(_this), _this.handleTracksChange); |
8996 | 8992 | return tracks.addEventListener("change", changeHandler), _this.on("dispose", function() {
|
8997 | 8993 | tracks.removeEventListener("change", changeHandler);
|
8998 | 8994 | }), _this;
|
|
10612 | 10608 | * @param {Component~ReadyCallback} ready
|
10613 | 10609 | * Callback function to call when the `HTML5` Tech is ready.
|
10614 | 10610 | */ function Html5(options, ready) {
|
10615 |
| - _this = _Tech.call(this, options, ready) || this; |
10616 |
| - var _this, source = options.source, crossoriginTracks = !1; |
| 10611 | + var _this = _Tech.call(this, options, ready) || this, source = options.source, crossoriginTracks = !1; |
10617 | 10612 | if (source && (_this.el_.currentSrc !== source.src || options.tag && 3 === options.tag.initNetworkState_) ? _this.setSource(source) : _this.handleLateInit_(_this.el_), options.enableSourceset && _this.setupSourcesetHandling_(), _this.isScrubbing_ = !1, _this.el_.hasChildNodes()) {
|
10618 | 10613 | for(var nodes = _this.el_.childNodes, nodesLength = nodes.length, removeNodes = []; nodesLength--;){
|
10619 | 10614 | var node = nodes[nodesLength];
|
|
25349 | 25344 | return log("not " + sharedLogLine + " as no switching criteria met"), !1;
|
25350 | 25345 | }, MasterPlaylistController = /*#__PURE__*/ function(_videojs$EventTarget) {
|
25351 | 25346 | function MasterPlaylistController(options) {
|
25352 |
| - _this = _videojs$EventTarget.call(this) || this; |
25353 |
| - var _this, src = options.src, handleManifestRedirects = options.handleManifestRedirects, withCredentials = options.withCredentials, tech = options.tech, bandwidth = options.bandwidth, externVhs = options.externVhs, useCueTags = options.useCueTags, blacklistDuration = options.blacklistDuration, enableLowInitialPlaylist = options.enableLowInitialPlaylist, sourceType = options.sourceType, cacheEncryptionKeys = options.cacheEncryptionKeys, experimentalBufferBasedABR = options.experimentalBufferBasedABR, experimentalLeastPixelDiffSelector = options.experimentalLeastPixelDiffSelector, captionServices = options.captionServices; |
| 25347 | + var _this = _videojs$EventTarget.call(this) || this, src = options.src, handleManifestRedirects = options.handleManifestRedirects, withCredentials = options.withCredentials, tech = options.tech, bandwidth = options.bandwidth, externVhs = options.externVhs, useCueTags = options.useCueTags, blacklistDuration = options.blacklistDuration, enableLowInitialPlaylist = options.enableLowInitialPlaylist, sourceType = options.sourceType, cacheEncryptionKeys = options.cacheEncryptionKeys, experimentalBufferBasedABR = options.experimentalBufferBasedABR, experimentalLeastPixelDiffSelector = options.experimentalLeastPixelDiffSelector, captionServices = options.captionServices; |
25354 | 25348 | if (!src) throw Error("A non-empty playlist URL or JSON manifest string is required");
|
25355 | 25349 | var maxPlaylistRetries = options.maxPlaylistRetries;
|
25356 | 25350 | null == maxPlaylistRetries && (maxPlaylistRetries = 1 / 0), Vhs$1 = externVhs, _this.experimentalBufferBasedABR = !!experimentalBufferBasedABR, _this.experimentalLeastPixelDiffSelector = !!experimentalLeastPixelDiffSelector, _this.withCredentials = withCredentials, _this.tech_ = tech, _this.vhs_ = tech.vhs, _this.sourceType_ = sourceType, _this.useCueTags_ = useCueTags, _this.blacklistDuration = blacklistDuration, _this.maxPlaylistRetries = maxPlaylistRetries, _this.enableLowInitialPlaylist = enableLowInitialPlaylist, _this.useCueTags_ && (_this.cueTagsTrack_ = _this.tech_.addTextTrack("metadata", "ad-cues"), _this.cueTagsTrack_.inBandMetadataTrackDispatchType = ""), _this.requestOptions_ = {
|
|
0 commit comments