@wistia/wistia-player 0.5.1 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/embeds/wistiaPlayer/WistiaPlayer.d.ts +13 -9
- package/dist/types/embeds/wistiaPlayer/WistiaPlayer.d.ts.map +1 -1
- package/dist/types/types/player-api-types.d.ts +39 -7
- package/dist/types/types/player-api-types.d.ts.map +1 -1
- package/dist/types/types/plugins.d.ts +5 -0
- package/dist/types/types/plugins.d.ts.map +1 -1
- package/dist/types/utilities/fetchMediaData.d.ts.map +1 -1
- package/dist/types/utilities/getApiHandles.d.ts.map +1 -1
- package/dist/wistia-player.js +238 -200
- package/dist/wistia-player.js.map +1 -1
- package/package.json +2 -2
package/dist/wistia-player.js
CHANGED
|
@@ -1519,7 +1519,7 @@ var pick = function pick(obj, keys) {
|
|
|
1519
1519
|
var result = {};
|
|
1520
1520
|
for (var i = 0; i < keys.length; i++) {
|
|
1521
1521
|
var key = keys[i];
|
|
1522
|
-
if (obj[key]) {
|
|
1522
|
+
if (obj[key] !== undefined) {
|
|
1523
1523
|
result[key] = obj[key];
|
|
1524
1524
|
}
|
|
1525
1525
|
}
|
|
@@ -3720,8 +3720,8 @@ var fetchMediaData = /*#__PURE__*/function () {
|
|
|
3720
3720
|
if (options.overrideMediaLanguage != null) {
|
|
3721
3721
|
preferredLanguages.push(options.overrideMediaLanguage);
|
|
3722
3722
|
}
|
|
3723
|
-
if ((localizationViewerPreferences === null || localizationViewerPreferences === void 0 ? void 0 : localizationViewerPreferences.
|
|
3724
|
-
preferredLanguages.push(localizationViewerPreferences.
|
|
3723
|
+
if ((localizationViewerPreferences === null || localizationViewerPreferences === void 0 ? void 0 : localizationViewerPreferences.bcp47LanguageTag) != null) {
|
|
3724
|
+
preferredLanguages.push(localizationViewerPreferences.bcp47LanguageTag);
|
|
3725
3725
|
}
|
|
3726
3726
|
if (options.defaultMediaLanguage != null) {
|
|
3727
3727
|
preferredLanguages.push(options.defaultMediaLanguage);
|
|
@@ -3730,25 +3730,25 @@ var fetchMediaData = /*#__PURE__*/function () {
|
|
|
3730
3730
|
// Remove duplicates, keeping the first occurrence
|
|
3731
3731
|
uniquePreferredLanguages = preferredLanguages.filter(function (lang, index) {
|
|
3732
3732
|
return preferredLanguages.indexOf(lang) === index;
|
|
3733
|
-
}); // First look for exact
|
|
3733
|
+
}); // First look for exact bcp-47 language code matches
|
|
3734
3734
|
preferredLanguageIndex = (0,_embeds_wistiaPlayer_utilities_getPreferredLanguageIndex_ts__WEBPACK_IMPORTED_MODULE_6__/* .getPreferredAvailableLanguageIndex */ .J)(mediaData.localizations.map(function (loc) {
|
|
3735
|
-
return loc.
|
|
3736
|
-
}), uniquePreferredLanguages); // If none found, look for exact
|
|
3735
|
+
return loc.bcp47LanguageTag;
|
|
3736
|
+
}), uniquePreferredLanguages); // If none found, look for exact wistiaLanguageCode matches
|
|
3737
3737
|
if (preferredLanguageIndex === -1) {
|
|
3738
3738
|
preferredLanguageIndex = (0,_embeds_wistiaPlayer_utilities_getPreferredLanguageIndex_ts__WEBPACK_IMPORTED_MODULE_6__/* .getPreferredAvailableLanguageIndex */ .J)(mediaData.localizations.map(function (loc) {
|
|
3739
|
-
return loc.
|
|
3739
|
+
return loc.wistiaLanguageCode;
|
|
3740
3740
|
}), uniquePreferredLanguages);
|
|
3741
3741
|
}
|
|
3742
3742
|
|
|
3743
3743
|
// If still no match, default to the browser language preferences
|
|
3744
3744
|
if (preferredLanguageIndex === -1) {
|
|
3745
3745
|
preferredLanguageIndex = (0,_embeds_wistiaPlayer_utilities_getPreferredLanguageIndex_ts__WEBPACK_IMPORTED_MODULE_6__/* .getPreferredAvailableLanguageIndex */ .J)(mediaData.localizations.map(function (loc) {
|
|
3746
|
-
return loc.
|
|
3746
|
+
return loc.bcp47LanguageTag;
|
|
3747
3747
|
}), // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
3748
3748
|
_toConsumableArray((_navigator$languages = navigator.languages) !== null && _navigator$languages !== void 0 ? _navigator$languages : ['en']));
|
|
3749
3749
|
}
|
|
3750
3750
|
if (!(preferredLanguageIndex >= 0)) {
|
|
3751
|
-
_context2.n =
|
|
3751
|
+
_context2.n = 6;
|
|
3752
3752
|
break;
|
|
3753
3753
|
}
|
|
3754
3754
|
preferredLocalization = mediaData.localizations[preferredLanguageIndex];
|
|
@@ -3758,8 +3758,14 @@ var fetchMediaData = /*#__PURE__*/function () {
|
|
|
3758
3758
|
}
|
|
3759
3759
|
return _context2.a(2, mediaData);
|
|
3760
3760
|
case 4:
|
|
3761
|
-
|
|
3761
|
+
if (!(preferredLocalization.localizationIntent === 'alternate_audio')) {
|
|
3762
|
+
_context2.n = 5;
|
|
3763
|
+
break;
|
|
3764
|
+
}
|
|
3765
|
+
return _context2.a(2, mediaData);
|
|
3762
3766
|
case 5:
|
|
3767
|
+
return _context2.a(2, fetchUnlocalizedMediaData(preferredLocalization.hashedId, _objectSpread({}, options)));
|
|
3768
|
+
case 6:
|
|
3763
3769
|
return _context2.a(2, mediaData);
|
|
3764
3770
|
}
|
|
3765
3771
|
}, _callee2);
|
|
@@ -6467,10 +6473,11 @@ var getOneApiHandle = function getOneApiHandle(matcher
|
|
|
6467
6473
|
}
|
|
6468
6474
|
|
|
6469
6475
|
// not all public api handles will have this method
|
|
6470
|
-
if ('mediaLanguages' in handle) {
|
|
6476
|
+
if ('mediaLanguages' in handle && 'languageToLocalization' in handle) {
|
|
6471
6477
|
var _handle$_mediaData;
|
|
6472
6478
|
var queryMatchesLocalization = handle.mediaLanguages().some(function (language) {
|
|
6473
|
-
|
|
6479
|
+
var localization = handle.languageToLocalization(language);
|
|
6480
|
+
return localization != null && ensureString(localization.hashedId).startsWith(query);
|
|
6474
6481
|
});
|
|
6475
6482
|
if (queryMatchesLocalization) {
|
|
6476
6483
|
return handle;
|
|
@@ -7131,8 +7138,8 @@ var PROD_EMBED_HOST = 'embed.wistia.com';
|
|
|
7131
7138
|
var PROD_SSL_EMBED_HOST = 'embed-ssl.wistia.com';
|
|
7132
7139
|
var PROD_FASTLY_SSL_HOST = 'embed-fastly.wistia.com';
|
|
7133
7140
|
var SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
7134
|
-
var TAGGED_VERSION = "0.
|
|
7135
|
-
var CURRENT_SHA = (/* unused pure expression or super */ null && ("
|
|
7141
|
+
var TAGGED_VERSION = "0.6.1" || 0;
|
|
7142
|
+
var CURRENT_SHA = (/* unused pure expression or super */ null && ("6cf78b1a48f2d22eb663a4a71b3c5333324dbaa4" || 0));
|
|
7136
7143
|
var DEFAULT_PROTOCOL = function () {
|
|
7137
7144
|
if (typeof window !== 'undefined' && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__/* .root */ .z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__/* .root */ .z.location) {
|
|
7138
7145
|
return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__/* .root */ .z.location.protocol;
|
|
@@ -9354,6 +9361,8 @@ var isGradient = function isGradient(value) {
|
|
|
9354
9361
|
/* harmony export */ });
|
|
9355
9362
|
/* unused harmony exports deleteViewerPreferences, getViewerPreference, setViewerPreference */
|
|
9356
9363
|
/* harmony import */ var utilities_namespacedLocalStorage_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2917);
|
|
9364
|
+
/* harmony import */ var _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5509);
|
|
9365
|
+
|
|
9357
9366
|
|
|
9358
9367
|
var deleteViewerPreferences = function deleteViewerPreferences() {
|
|
9359
9368
|
removeLocalStorage(getLocalStorageKey());
|
|
@@ -9362,6 +9371,10 @@ var getLocalStorageKey = function getLocalStorageKey() {
|
|
|
9362
9371
|
return 'wistia-viewer-preferences';
|
|
9363
9372
|
};
|
|
9364
9373
|
var getViewerPreferences = function getViewerPreferences() {
|
|
9374
|
+
// if viewer preferences are disabled, return an empty object
|
|
9375
|
+
if (_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__/* .Wistia */ .s._viewerPreferencesEnabled === false) {
|
|
9376
|
+
return {};
|
|
9377
|
+
}
|
|
9365
9378
|
return (0,utilities_namespacedLocalStorage_js__WEBPACK_IMPORTED_MODULE_0__/* .getLocalStorage */ .Lg)(getLocalStorageKey());
|
|
9366
9379
|
};
|
|
9367
9380
|
var getViewerPreference = function getViewerPreference(preference) {
|
|
@@ -15489,22 +15502,27 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
15489
15502
|
}
|
|
15490
15503
|
|
|
15491
15504
|
// the public api has a different syntax for setting the captionsLanguage and getting it
|
|
15492
|
-
// eslint-disable-next-line @typescript-eslint/related-getter-setter-pairs
|
|
15493
15505
|
}, {
|
|
15494
15506
|
key: "captionsLanguage",
|
|
15495
15507
|
get: function get() {
|
|
15496
15508
|
var _classPrivateFieldGet11, _classPrivateFieldGet12;
|
|
15497
15509
|
return (_classPrivateFieldGet11 = (_classPrivateFieldGet12 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet12 === void 0 ? void 0 : _classPrivateFieldGet12.captionsLanguage()) !== null && _classPrivateFieldGet11 !== void 0 ? _classPrivateFieldGet11 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this);
|
|
15510
|
+
}
|
|
15511
|
+
}, {
|
|
15512
|
+
key: "captionsLanguageCode",
|
|
15513
|
+
get: function get() {
|
|
15514
|
+
var _classPrivateFieldGet13, _classPrivateFieldGet14;
|
|
15515
|
+
return (_classPrivateFieldGet13 = (_classPrivateFieldGet14 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet14 === void 0 ? void 0 : _classPrivateFieldGet14.captionsLanguageCode()) !== null && _classPrivateFieldGet13 !== void 0 ? _classPrivateFieldGet13 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this).wistiaLanguageCode;
|
|
15498
15516
|
},
|
|
15499
|
-
set: function set(
|
|
15500
|
-
var
|
|
15501
|
-
(
|
|
15517
|
+
set: function set(languageCode) {
|
|
15518
|
+
var _classPrivateFieldGet15;
|
|
15519
|
+
(_classPrivateFieldGet15 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet15 === void 0 ? void 0 : _classPrivateFieldGet15.captionsLanguageCode(languageCode);
|
|
15502
15520
|
}
|
|
15503
15521
|
}, {
|
|
15504
15522
|
key: "captionsLanguages",
|
|
15505
15523
|
get: function get() {
|
|
15506
|
-
var
|
|
15507
|
-
return (
|
|
15524
|
+
var _classPrivateFieldGet16, _classPrivateFieldGet17;
|
|
15525
|
+
return (_classPrivateFieldGet16 = (_classPrivateFieldGet17 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet17 === void 0 ? void 0 : _classPrivateFieldGet17.captionsLanguages()) !== null && _classPrivateFieldGet16 !== void 0 ? _classPrivateFieldGet16 : [_assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this)];
|
|
15508
15526
|
}
|
|
15509
15527
|
|
|
15510
15528
|
/**
|
|
@@ -15544,8 +15562,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
15544
15562
|
* @returns {void}
|
|
15545
15563
|
*/,
|
|
15546
15564
|
set: function set(radius) {
|
|
15547
|
-
var
|
|
15548
|
-
(
|
|
15565
|
+
var _classPrivateFieldGet18;
|
|
15566
|
+
(_classPrivateFieldGet18 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet18 === void 0 ? void 0 : _classPrivateFieldGet18.setControlBarBorderRadius(radius);
|
|
15549
15567
|
// ensure the value is a number, since this is potentially coming from outside the player,
|
|
15550
15568
|
// we can't guarantee they have given us the right type
|
|
15551
15569
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-conversion
|
|
@@ -15584,8 +15602,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
15584
15602
|
* @returns {void}
|
|
15585
15603
|
*/,
|
|
15586
15604
|
set: function set(shouldHide) {
|
|
15587
|
-
var
|
|
15588
|
-
(
|
|
15605
|
+
var _classPrivateFieldGet19;
|
|
15606
|
+
(_classPrivateFieldGet19 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet19 === void 0 ? void 0 : _classPrivateFieldGet19.renderUI();
|
|
15589
15607
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'controlsVisibleOnLoad', shouldHide);
|
|
15590
15608
|
}
|
|
15591
15609
|
|
|
@@ -15624,8 +15642,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
15624
15642
|
}, {
|
|
15625
15643
|
key: "currentTime",
|
|
15626
15644
|
get: function get() {
|
|
15627
|
-
var _ref3, _ref4,
|
|
15628
|
-
return (_ref3 = (_ref4 = (
|
|
15645
|
+
var _ref3, _ref4, _classPrivateFieldGet20;
|
|
15646
|
+
return (_ref3 = (_ref4 = (_classPrivateFieldGet20 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet20 === void 0 ? void 0 : _classPrivateFieldGet20.time()) !== null && _ref4 !== void 0 ? _ref4 : this.embedOptions.currentTime) !== null && _ref3 !== void 0 ? _ref3 : 0;
|
|
15629
15647
|
}
|
|
15630
15648
|
|
|
15631
15649
|
/**
|
|
@@ -15634,8 +15652,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
15634
15652
|
* @returns {void}
|
|
15635
15653
|
*/,
|
|
15636
15654
|
set: function set(newTime) {
|
|
15637
|
-
var
|
|
15638
|
-
void ((
|
|
15655
|
+
var _classPrivateFieldGet21;
|
|
15656
|
+
void ((_classPrivateFieldGet21 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet21 === void 0 ? void 0 : _classPrivateFieldGet21.time(newTime));
|
|
15639
15657
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'currentTime', newTime);
|
|
15640
15658
|
}
|
|
15641
15659
|
|
|
@@ -15645,10 +15663,10 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
15645
15663
|
}, {
|
|
15646
15664
|
key: "debug",
|
|
15647
15665
|
get: function get() {
|
|
15648
|
-
var
|
|
15666
|
+
var _classPrivateFieldGet22;
|
|
15649
15667
|
return {
|
|
15650
15668
|
impl: _classPrivateFieldGet(_impl, this),
|
|
15651
|
-
engine: (
|
|
15669
|
+
engine: (_classPrivateFieldGet22 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet22 === void 0 ? void 0 : _classPrivateFieldGet22.engine
|
|
15652
15670
|
};
|
|
15653
15671
|
}
|
|
15654
15672
|
|
|
@@ -15691,8 +15709,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
15691
15709
|
}, {
|
|
15692
15710
|
key: "duration",
|
|
15693
15711
|
get: function get() {
|
|
15694
|
-
var
|
|
15695
|
-
return (
|
|
15712
|
+
var _classPrivateFieldGet23, _classPrivateFieldGet24;
|
|
15713
|
+
return (_classPrivateFieldGet23 = (_classPrivateFieldGet24 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet24 === void 0 ? void 0 : _classPrivateFieldGet24.duration()) !== null && _classPrivateFieldGet23 !== void 0 ? _classPrivateFieldGet23 : 0;
|
|
15696
15714
|
}
|
|
15697
15715
|
|
|
15698
15716
|
/**
|
|
@@ -15765,8 +15783,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
15765
15783
|
}, {
|
|
15766
15784
|
key: "ended",
|
|
15767
15785
|
get: function get() {
|
|
15768
|
-
var
|
|
15769
|
-
return ((
|
|
15786
|
+
var _classPrivateFieldGet25;
|
|
15787
|
+
return ((_classPrivateFieldGet25 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet25 === void 0 ? void 0 : _classPrivateFieldGet25.state()) === 'ended';
|
|
15770
15788
|
}
|
|
15771
15789
|
|
|
15772
15790
|
/**
|
|
@@ -15789,11 +15807,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
15789
15807
|
// underlying <video /> element. So we must do more than just change the _impl._attrs
|
|
15790
15808
|
// for it to be updated.
|
|
15791
15809
|
if (behavior === 'loop') {
|
|
15792
|
-
var
|
|
15793
|
-
(
|
|
15810
|
+
var _classPrivateFieldGet26;
|
|
15811
|
+
(_classPrivateFieldGet26 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet26 === void 0 ? void 0 : _classPrivateFieldGet26.addLoopBehavior();
|
|
15794
15812
|
} else {
|
|
15795
|
-
var
|
|
15796
|
-
(
|
|
15813
|
+
var _classPrivateFieldGet27;
|
|
15814
|
+
(_classPrivateFieldGet27 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet27 === void 0 ? void 0 : _classPrivateFieldGet27.removeLoopBehavior();
|
|
15797
15815
|
}
|
|
15798
15816
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'endVideoBehavior', behavior);
|
|
15799
15817
|
}
|
|
@@ -15805,8 +15823,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
15805
15823
|
}, {
|
|
15806
15824
|
key: "eventKey",
|
|
15807
15825
|
get: function get() {
|
|
15808
|
-
var
|
|
15809
|
-
return (
|
|
15826
|
+
var _classPrivateFieldGet28;
|
|
15827
|
+
return (_classPrivateFieldGet28 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet28 === void 0 ? void 0 : _classPrivateFieldGet28.eventKey();
|
|
15810
15828
|
}
|
|
15811
15829
|
|
|
15812
15830
|
/**
|
|
@@ -15825,8 +15843,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
15825
15843
|
* @returns {void}
|
|
15826
15844
|
*/,
|
|
15827
15845
|
set: function set(shouldDisplay) {
|
|
15828
|
-
var
|
|
15829
|
-
(
|
|
15846
|
+
var _classPrivateFieldGet29;
|
|
15847
|
+
(_classPrivateFieldGet29 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet29 === void 0 ? void 0 : _classPrivateFieldGet29.fullscreenControlEnabled(shouldDisplay);
|
|
15830
15848
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'fullscreenControl', shouldDisplay);
|
|
15831
15849
|
}
|
|
15832
15850
|
|
|
@@ -15858,14 +15876,14 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
15858
15876
|
}, {
|
|
15859
15877
|
key: "inFullscreen",
|
|
15860
15878
|
get: function get() {
|
|
15861
|
-
var
|
|
15862
|
-
return (
|
|
15879
|
+
var _classPrivateFieldGet30, _classPrivateFieldGet31;
|
|
15880
|
+
return (_classPrivateFieldGet30 = (_classPrivateFieldGet31 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet31 === void 0 ? void 0 : _classPrivateFieldGet31.inFullscreen()) !== null && _classPrivateFieldGet30 !== void 0 ? _classPrivateFieldGet30 : false;
|
|
15863
15881
|
}
|
|
15864
15882
|
}, {
|
|
15865
15883
|
key: "inputContext",
|
|
15866
15884
|
get: function get() {
|
|
15867
|
-
var
|
|
15868
|
-
return (
|
|
15885
|
+
var _classPrivateFieldGet32;
|
|
15886
|
+
return (_classPrivateFieldGet32 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet32 === void 0 ? void 0 : _classPrivateFieldGet32.getInputContext();
|
|
15869
15887
|
}
|
|
15870
15888
|
|
|
15871
15889
|
/**
|
|
@@ -15875,8 +15893,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
15875
15893
|
}, {
|
|
15876
15894
|
key: "instantHls",
|
|
15877
15895
|
get: function get() {
|
|
15878
|
-
var
|
|
15879
|
-
return (
|
|
15896
|
+
var _classPrivateFieldGet33, _classPrivateFieldGet34;
|
|
15897
|
+
return (_classPrivateFieldGet33 = (_classPrivateFieldGet34 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet34 === void 0 ? void 0 : _classPrivateFieldGet34.isInstantHls()) !== null && _classPrivateFieldGet33 !== void 0 ? _classPrivateFieldGet33 : false;
|
|
15880
15898
|
}
|
|
15881
15899
|
|
|
15882
15900
|
// the publicApi returns a language object, but you are not allowed to pass that object as a type when setting the language
|
|
@@ -15884,18 +15902,18 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
15884
15902
|
}, {
|
|
15885
15903
|
key: "language",
|
|
15886
15904
|
get: function get() {
|
|
15887
|
-
var
|
|
15888
|
-
return (
|
|
15905
|
+
var _classPrivateFieldGet35, _classPrivateFieldGet36;
|
|
15906
|
+
return (_classPrivateFieldGet35 = (_classPrivateFieldGet36 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet36 === void 0 ? void 0 : _classPrivateFieldGet36.language()) !== null && _classPrivateFieldGet35 !== void 0 ? _classPrivateFieldGet35 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this);
|
|
15889
15907
|
},
|
|
15890
15908
|
set: function set(language) {
|
|
15891
|
-
var
|
|
15892
|
-
(
|
|
15909
|
+
var _classPrivateFieldGet37;
|
|
15910
|
+
(_classPrivateFieldGet37 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet37 === void 0 ? void 0 : _classPrivateFieldGet37.language(language);
|
|
15893
15911
|
}
|
|
15894
15912
|
}, {
|
|
15895
15913
|
key: "languages",
|
|
15896
15914
|
get: function get() {
|
|
15897
|
-
var
|
|
15898
|
-
return (
|
|
15915
|
+
var _classPrivateFieldGet38, _classPrivateFieldGet39;
|
|
15916
|
+
return (_classPrivateFieldGet38 = (_classPrivateFieldGet39 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet39 === void 0 ? void 0 : _classPrivateFieldGet39.languages()) !== null && _classPrivateFieldGet38 !== void 0 ? _classPrivateFieldGet38 : [_assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this)];
|
|
15899
15917
|
}
|
|
15900
15918
|
|
|
15901
15919
|
/**
|
|
@@ -15941,34 +15959,38 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
15941
15959
|
* Returns the language of the media stream.
|
|
15942
15960
|
* @returns {Localization | undefined}
|
|
15943
15961
|
*/
|
|
15944
|
-
// the publicApi returns a Localization object, but you are not allowed to pass that object as a type when setting the localization
|
|
15945
|
-
// eslint-disable-next-line @typescript-eslint/related-getter-setter-pairs
|
|
15946
15962
|
}, {
|
|
15947
15963
|
key: "mediaLanguage",
|
|
15948
15964
|
get: function get() {
|
|
15949
|
-
var
|
|
15950
|
-
return (
|
|
15965
|
+
var _classPrivateFieldGet40, _classPrivateFieldGet41;
|
|
15966
|
+
return (_classPrivateFieldGet40 = (_classPrivateFieldGet41 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet41 === void 0 ? void 0 : _classPrivateFieldGet41.mediaLanguage()) !== null && _classPrivateFieldGet40 !== void 0 ? _classPrivateFieldGet40 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this);
|
|
15951
15967
|
}
|
|
15952
15968
|
|
|
15953
15969
|
/**
|
|
15954
15970
|
* Changes the language of the media stream/content.
|
|
15955
15971
|
* @param {string} language
|
|
15956
15972
|
* @returns {void}
|
|
15957
|
-
|
|
15958
|
-
|
|
15959
|
-
|
|
15960
|
-
|
|
15973
|
+
*/
|
|
15974
|
+
}, {
|
|
15975
|
+
key: "mediaLanguageCode",
|
|
15976
|
+
get: function get() {
|
|
15977
|
+
var _classPrivateFieldGet42, _classPrivateFieldGet43;
|
|
15978
|
+
return (_classPrivateFieldGet42 = (_classPrivateFieldGet43 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet43 === void 0 ? void 0 : _classPrivateFieldGet43.mediaLanguageCode()) !== null && _classPrivateFieldGet42 !== void 0 ? _classPrivateFieldGet42 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this).wistiaLanguageCode;
|
|
15961
15979
|
}
|
|
15962
15980
|
|
|
15963
15981
|
/**
|
|
15964
15982
|
* Returns the languages of the media.
|
|
15965
15983
|
* @returns {Localization[]}
|
|
15966
|
-
|
|
15984
|
+
*/,
|
|
15985
|
+
set: function set(languageCode) {
|
|
15986
|
+
var _classPrivateFieldGet44;
|
|
15987
|
+
(_classPrivateFieldGet44 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet44 === void 0 ? void 0 : _classPrivateFieldGet44.mediaLanguageCode(languageCode);
|
|
15988
|
+
}
|
|
15967
15989
|
}, {
|
|
15968
15990
|
key: "mediaLanguages",
|
|
15969
15991
|
get: function get() {
|
|
15970
|
-
var
|
|
15971
|
-
return (
|
|
15992
|
+
var _classPrivateFieldGet45, _classPrivateFieldGet46;
|
|
15993
|
+
return (_classPrivateFieldGet45 = (_classPrivateFieldGet46 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet46 === void 0 ? void 0 : _classPrivateFieldGet46.mediaLanguages()) !== null && _classPrivateFieldGet45 !== void 0 ? _classPrivateFieldGet45 : [_assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this)];
|
|
15972
15994
|
}
|
|
15973
15995
|
|
|
15974
15996
|
/**
|
|
@@ -15978,8 +16000,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
15978
16000
|
}, {
|
|
15979
16001
|
key: "muted",
|
|
15980
16002
|
get: function get() {
|
|
15981
|
-
var _ref7,
|
|
15982
|
-
return (_ref7 = (
|
|
16003
|
+
var _ref7, _classPrivateFieldGet47, _classPrivateFieldGet48;
|
|
16004
|
+
return (_ref7 = (_classPrivateFieldGet47 = (_classPrivateFieldGet48 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet48 === void 0 ? void 0 : _classPrivateFieldGet48.isMuted()) !== null && _classPrivateFieldGet47 !== void 0 ? _classPrivateFieldGet47 : this.embedOptions.muted) !== null && _ref7 !== void 0 ? _ref7 : false;
|
|
15983
16005
|
}
|
|
15984
16006
|
|
|
15985
16007
|
/**
|
|
@@ -16005,8 +16027,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16005
16027
|
}, {
|
|
16006
16028
|
key: "name",
|
|
16007
16029
|
get: function get() {
|
|
16008
|
-
var _ref8,
|
|
16009
|
-
return (_ref8 = (
|
|
16030
|
+
var _ref8, _classPrivateFieldGet49, _classPrivateFieldGet50, _classPrivateFieldGet51;
|
|
16031
|
+
return (_ref8 = (_classPrivateFieldGet49 = _classPrivateFieldGet(_playerData, this).mediaData.name) !== null && _classPrivateFieldGet49 !== void 0 ? _classPrivateFieldGet49 : (_classPrivateFieldGet50 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet50 === void 0 ? void 0 : (_classPrivateFieldGet51 = _classPrivateFieldGet50._mediaData) === null || _classPrivateFieldGet51 === void 0 ? void 0 : _classPrivateFieldGet51.name) !== null && _ref8 !== void 0 ? _ref8 : undefined;
|
|
16010
16032
|
}
|
|
16011
16033
|
|
|
16012
16034
|
/**
|
|
@@ -16027,9 +16049,9 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16027
16049
|
* @returns {void}
|
|
16028
16050
|
*/,
|
|
16029
16051
|
set: function set(opaqueControls) {
|
|
16030
|
-
var
|
|
16052
|
+
var _classPrivateFieldGet52;
|
|
16031
16053
|
var valueAsBoolean = Boolean(opaqueControls);
|
|
16032
|
-
(
|
|
16054
|
+
(_classPrivateFieldGet52 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet52 === void 0 ? void 0 : _classPrivateFieldGet52.opaqueControls(valueAsBoolean);
|
|
16033
16055
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'opaqueControls', valueAsBoolean);
|
|
16034
16056
|
}
|
|
16035
16057
|
}, {
|
|
@@ -16048,8 +16070,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16048
16070
|
}, {
|
|
16049
16071
|
key: "paused",
|
|
16050
16072
|
get: function get() {
|
|
16051
|
-
var
|
|
16052
|
-
return ((
|
|
16073
|
+
var _classPrivateFieldGet53;
|
|
16074
|
+
return ((_classPrivateFieldGet53 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet53 === void 0 ? void 0 : _classPrivateFieldGet53.state()) === 'paused';
|
|
16053
16075
|
}
|
|
16054
16076
|
|
|
16055
16077
|
/**
|
|
@@ -16059,8 +16081,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16059
16081
|
}, {
|
|
16060
16082
|
key: "percentWatched",
|
|
16061
16083
|
get: function get() {
|
|
16062
|
-
var
|
|
16063
|
-
return (
|
|
16084
|
+
var _classPrivateFieldGet54, _classPrivateFieldGet55;
|
|
16085
|
+
return (_classPrivateFieldGet54 = (_classPrivateFieldGet55 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet55 === void 0 ? void 0 : _classPrivateFieldGet55.percentWatched()) !== null && _classPrivateFieldGet54 !== void 0 ? _classPrivateFieldGet54 : 0;
|
|
16064
16086
|
}
|
|
16065
16087
|
|
|
16066
16088
|
/**
|
|
@@ -16070,8 +16092,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16070
16092
|
}, {
|
|
16071
16093
|
key: "playbackRate",
|
|
16072
16094
|
get: function get() {
|
|
16073
|
-
var _ref9,
|
|
16074
|
-
return (_ref9 = (
|
|
16095
|
+
var _ref9, _classPrivateFieldGet56, _classPrivateFieldGet57;
|
|
16096
|
+
return (_ref9 = (_classPrivateFieldGet56 = (_classPrivateFieldGet57 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet57 === void 0 ? void 0 : _classPrivateFieldGet57.playbackRate()) !== null && _classPrivateFieldGet56 !== void 0 ? _classPrivateFieldGet56 : this.embedOptions.playbackRate) !== null && _ref9 !== void 0 ? _ref9 : 1;
|
|
16075
16097
|
}
|
|
16076
16098
|
|
|
16077
16099
|
/**
|
|
@@ -16080,8 +16102,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16080
16102
|
* @returns {void}
|
|
16081
16103
|
*/,
|
|
16082
16104
|
set: function set(rate) {
|
|
16083
|
-
var
|
|
16084
|
-
(
|
|
16105
|
+
var _classPrivateFieldGet58;
|
|
16106
|
+
(_classPrivateFieldGet58 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet58 === void 0 ? void 0 : _classPrivateFieldGet58.playbackRate(rate);
|
|
16085
16107
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'playbackRate', rate);
|
|
16086
16108
|
}
|
|
16087
16109
|
|
|
@@ -16101,8 +16123,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16101
16123
|
* @returns {void}
|
|
16102
16124
|
*/,
|
|
16103
16125
|
set: function set(shouldDisplay) {
|
|
16104
|
-
var
|
|
16105
|
-
(
|
|
16126
|
+
var _classPrivateFieldGet59;
|
|
16127
|
+
(_classPrivateFieldGet59 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet59 === void 0 ? void 0 : _classPrivateFieldGet59.playbackRateControlEnabled(shouldDisplay);
|
|
16106
16128
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'playbackRateControl', shouldDisplay);
|
|
16107
16129
|
}
|
|
16108
16130
|
|
|
@@ -16122,8 +16144,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16122
16144
|
* @returns {void}
|
|
16123
16145
|
*/,
|
|
16124
16146
|
set: function set(shouldDisplay) {
|
|
16125
|
-
var
|
|
16126
|
-
(
|
|
16147
|
+
var _classPrivateFieldGet60;
|
|
16148
|
+
(_classPrivateFieldGet60 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet60 === void 0 ? void 0 : _classPrivateFieldGet60.playbarControlEnabled(shouldDisplay);
|
|
16127
16149
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'playBarControl', shouldDisplay);
|
|
16128
16150
|
}
|
|
16129
16151
|
|
|
@@ -16143,11 +16165,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16143
16165
|
* @returns {void}
|
|
16144
16166
|
*/,
|
|
16145
16167
|
set: function set(radius) {
|
|
16146
|
-
var
|
|
16168
|
+
var _classPrivateFieldGet61;
|
|
16147
16169
|
// ensure the value is a number, since this is potentially coming from outside the player,
|
|
16148
16170
|
// we can't guarantee they have given us the right type
|
|
16149
16171
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-conversion
|
|
16150
|
-
(
|
|
16172
|
+
(_classPrivateFieldGet61 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet61 === void 0 ? void 0 : _classPrivateFieldGet61.setPlayerBorderRadius(Number(radius));
|
|
16151
16173
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-conversion
|
|
16152
16174
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'playerBorderRadius', Number(radius));
|
|
16153
16175
|
}
|
|
@@ -16174,8 +16196,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16174
16196
|
* @returns {void}
|
|
16175
16197
|
*/,
|
|
16176
16198
|
set: function set(newColor) {
|
|
16177
|
-
var
|
|
16178
|
-
(
|
|
16199
|
+
var _classPrivateFieldGet62;
|
|
16200
|
+
(_classPrivateFieldGet62 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet62 === void 0 ? void 0 : _classPrivateFieldGet62.playerColor(newColor);
|
|
16179
16201
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'playerColor', newColor);
|
|
16180
16202
|
}
|
|
16181
16203
|
|
|
@@ -16199,11 +16221,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16199
16221
|
* @returns {void}
|
|
16200
16222
|
*/,
|
|
16201
16223
|
set: function set(gradient) {
|
|
16202
|
-
var
|
|
16224
|
+
var _classPrivateFieldGet63;
|
|
16203
16225
|
if (!(0,_types_gradient_ts__WEBPACK_IMPORTED_MODULE_36__/* .isGradient */ .b)(gradient)) {
|
|
16204
16226
|
throw new Error('playerColorGradient must be a valid gradient object');
|
|
16205
16227
|
}
|
|
16206
|
-
(
|
|
16228
|
+
(_classPrivateFieldGet63 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet63 === void 0 ? void 0 : _classPrivateFieldGet63.playerColorGradient(gradient);
|
|
16207
16229
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'playerColorGradient', gradient);
|
|
16208
16230
|
}
|
|
16209
16231
|
|
|
@@ -16291,8 +16313,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16291
16313
|
* @returns {void}
|
|
16292
16314
|
*/,
|
|
16293
16315
|
set: function set(shouldDisplay) {
|
|
16294
|
-
var
|
|
16295
|
-
(
|
|
16316
|
+
var _classPrivateFieldGet64;
|
|
16317
|
+
(_classPrivateFieldGet64 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet64 === void 0 ? void 0 : _classPrivateFieldGet64.playPauseControlEnabled(shouldDisplay);
|
|
16296
16318
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'playPauseControl', shouldDisplay);
|
|
16297
16319
|
}
|
|
16298
16320
|
|
|
@@ -16316,8 +16338,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16316
16338
|
* @returns {void}
|
|
16317
16339
|
*/,
|
|
16318
16340
|
set: function set(shouldDisplay) {
|
|
16319
|
-
var
|
|
16320
|
-
(
|
|
16341
|
+
var _classPrivateFieldGet65;
|
|
16342
|
+
(_classPrivateFieldGet65 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet65 === void 0 ? void 0 : _classPrivateFieldGet65.playPauseNotifierEnabled(shouldDisplay);
|
|
16321
16343
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'playPauseNotifier', shouldDisplay);
|
|
16322
16344
|
}
|
|
16323
16345
|
|
|
@@ -16656,8 +16678,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16656
16678
|
}, {
|
|
16657
16679
|
key: "preload",
|
|
16658
16680
|
get: function get() {
|
|
16659
|
-
var _ref1,
|
|
16660
|
-
return (_ref1 = (
|
|
16681
|
+
var _ref1, _classPrivateFieldGet66, _classPrivateFieldGet67;
|
|
16682
|
+
return (_ref1 = (_classPrivateFieldGet66 = (_classPrivateFieldGet67 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet67 === void 0 ? void 0 : _classPrivateFieldGet67.preloadValue()) !== null && _classPrivateFieldGet66 !== void 0 ? _classPrivateFieldGet66 : this.embedOptions.preload) !== null && _ref1 !== void 0 ? _ref1 : 'metadata';
|
|
16661
16683
|
}
|
|
16662
16684
|
|
|
16663
16685
|
/**
|
|
@@ -16697,8 +16719,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16697
16719
|
* @returns {void}
|
|
16698
16720
|
*/,
|
|
16699
16721
|
set: function set(shouldDisplay) {
|
|
16700
|
-
var
|
|
16701
|
-
(
|
|
16722
|
+
var _classPrivateFieldGet68;
|
|
16723
|
+
(_classPrivateFieldGet68 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet68 === void 0 ? void 0 : _classPrivateFieldGet68.qualityControlEnabled(shouldDisplay);
|
|
16702
16724
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'qualityControl', shouldDisplay);
|
|
16703
16725
|
}
|
|
16704
16726
|
|
|
@@ -16718,8 +16740,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16718
16740
|
* @returns {void}
|
|
16719
16741
|
*/,
|
|
16720
16742
|
set: function set(quality) {
|
|
16721
|
-
var
|
|
16722
|
-
(
|
|
16743
|
+
var _classPrivateFieldGet69;
|
|
16744
|
+
(_classPrivateFieldGet69 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet69 === void 0 ? void 0 : _classPrivateFieldGet69.qualityMax(quality);
|
|
16723
16745
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'qualityMax', quality);
|
|
16724
16746
|
}
|
|
16725
16747
|
|
|
@@ -16739,8 +16761,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16739
16761
|
* @returns {void}
|
|
16740
16762
|
*/,
|
|
16741
16763
|
set: function set(quality) {
|
|
16742
|
-
var
|
|
16743
|
-
(
|
|
16764
|
+
var _classPrivateFieldGet70;
|
|
16765
|
+
(_classPrivateFieldGet70 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet70 === void 0 ? void 0 : _classPrivateFieldGet70.qualityMin(quality);
|
|
16744
16766
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'qualityMin', quality);
|
|
16745
16767
|
}
|
|
16746
16768
|
|
|
@@ -16751,8 +16773,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16751
16773
|
}, {
|
|
16752
16774
|
key: "readyState",
|
|
16753
16775
|
get: function get() {
|
|
16754
|
-
var
|
|
16755
|
-
return (
|
|
16776
|
+
var _classPrivateFieldGet71, _classPrivateFieldGet72;
|
|
16777
|
+
return (_classPrivateFieldGet71 = (_classPrivateFieldGet72 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet72 === void 0 ? void 0 : _classPrivateFieldGet72.getReadyState()) !== null && _classPrivateFieldGet71 !== void 0 ? _classPrivateFieldGet71 : 0;
|
|
16756
16778
|
}
|
|
16757
16779
|
|
|
16758
16780
|
/**
|
|
@@ -16774,8 +16796,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16774
16796
|
* @returns {void}
|
|
16775
16797
|
*/,
|
|
16776
16798
|
set: function set(resumableState) {
|
|
16777
|
-
var
|
|
16778
|
-
(
|
|
16799
|
+
var _classPrivateFieldGet73;
|
|
16800
|
+
(_classPrivateFieldGet73 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet73 === void 0 ? void 0 : _classPrivateFieldGet73.setResumable(resumableState);
|
|
16779
16801
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'resumable', resumableState);
|
|
16780
16802
|
}
|
|
16781
16803
|
|
|
@@ -16795,11 +16817,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16795
16817
|
* @returns {void}
|
|
16796
16818
|
*/,
|
|
16797
16819
|
set: function set(radius) {
|
|
16798
|
-
var
|
|
16820
|
+
var _classPrivateFieldGet74;
|
|
16799
16821
|
// ensure the value is a number, since this is potentially coming from outside the player,
|
|
16800
16822
|
// we can't guarantee they have given us the right type
|
|
16801
16823
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-conversion
|
|
16802
|
-
(
|
|
16824
|
+
(_classPrivateFieldGet74 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet74 === void 0 ? void 0 : _classPrivateFieldGet74.setRoundedPlayer(Number(radius));
|
|
16803
16825
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-conversion
|
|
16804
16826
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'roundedPlayer', Number(radius));
|
|
16805
16827
|
}
|
|
@@ -16812,8 +16834,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16812
16834
|
}, {
|
|
16813
16835
|
key: "secondsWatched",
|
|
16814
16836
|
get: function get() {
|
|
16815
|
-
var
|
|
16816
|
-
return (
|
|
16837
|
+
var _classPrivateFieldGet75, _classPrivateFieldGet76;
|
|
16838
|
+
return (_classPrivateFieldGet75 = (_classPrivateFieldGet76 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet76 === void 0 ? void 0 : _classPrivateFieldGet76.secondsWatched()) !== null && _classPrivateFieldGet75 !== void 0 ? _classPrivateFieldGet75 : 0;
|
|
16817
16839
|
}
|
|
16818
16840
|
|
|
16819
16841
|
/**
|
|
@@ -16823,8 +16845,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16823
16845
|
}, {
|
|
16824
16846
|
key: "secondsWatchedVector",
|
|
16825
16847
|
get: function get() {
|
|
16826
|
-
var
|
|
16827
|
-
return (
|
|
16848
|
+
var _classPrivateFieldGet77, _classPrivateFieldGet78;
|
|
16849
|
+
return (_classPrivateFieldGet77 = (_classPrivateFieldGet78 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet78 === void 0 ? void 0 : _classPrivateFieldGet78.secondsWatchedVector()) !== null && _classPrivateFieldGet77 !== void 0 ? _classPrivateFieldGet77 : [];
|
|
16828
16850
|
}
|
|
16829
16851
|
|
|
16830
16852
|
/**
|
|
@@ -16864,8 +16886,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16864
16886
|
* @returns {void}
|
|
16865
16887
|
*/,
|
|
16866
16888
|
set: function set(shouldDisplay) {
|
|
16867
|
-
var
|
|
16868
|
-
(
|
|
16889
|
+
var _classPrivateFieldGet79;
|
|
16890
|
+
(_classPrivateFieldGet79 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet79 === void 0 ? void 0 : _classPrivateFieldGet79.settingsControlEnabled(shouldDisplay);
|
|
16869
16891
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'settingsControl', shouldDisplay);
|
|
16870
16892
|
}
|
|
16871
16893
|
|
|
@@ -16895,10 +16917,10 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16895
16917
|
}, {
|
|
16896
16918
|
key: "sourceLanguage",
|
|
16897
16919
|
get: function get() {
|
|
16898
|
-
var
|
|
16899
|
-
return (
|
|
16900
|
-
return loc.
|
|
16901
|
-
})) !== null &&
|
|
16920
|
+
var _classPrivateFieldGet80, _classPrivateFieldGet81, _classPrivateFieldGet82;
|
|
16921
|
+
return (_classPrivateFieldGet80 = (_classPrivateFieldGet81 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet81 === void 0 ? void 0 : _classPrivateFieldGet81.find(function (loc) {
|
|
16922
|
+
return loc.isOriginal;
|
|
16923
|
+
})) !== null && _classPrivateFieldGet80 !== void 0 ? _classPrivateFieldGet80 : (_classPrivateFieldGet82 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet82 === void 0 ? void 0 : _classPrivateFieldGet82[0];
|
|
16902
16924
|
}
|
|
16903
16925
|
|
|
16904
16926
|
/**
|
|
@@ -16920,8 +16942,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16920
16942
|
}, {
|
|
16921
16943
|
key: "state",
|
|
16922
16944
|
get: function get() {
|
|
16923
|
-
var
|
|
16924
|
-
return (
|
|
16945
|
+
var _classPrivateFieldGet83, _classPrivateFieldGet84;
|
|
16946
|
+
return (_classPrivateFieldGet83 = (_classPrivateFieldGet84 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet84 === void 0 ? void 0 : _classPrivateFieldGet84.state()) !== null && _classPrivateFieldGet83 !== void 0 ? _classPrivateFieldGet83 : defaultEmbedOptions.state;
|
|
16925
16947
|
}
|
|
16926
16948
|
|
|
16927
16949
|
/**
|
|
@@ -17041,8 +17063,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17041
17063
|
}, {
|
|
17042
17064
|
key: "videoQuality",
|
|
17043
17065
|
get: function get() {
|
|
17044
|
-
var _ref10,
|
|
17045
|
-
return (_ref10 = (
|
|
17066
|
+
var _ref10, _classPrivateFieldGet85, _classPrivateFieldGet86;
|
|
17067
|
+
return (_ref10 = (_classPrivateFieldGet85 = (_classPrivateFieldGet86 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet86 === void 0 ? void 0 : _classPrivateFieldGet86.getVideoQuality()) !== null && _classPrivateFieldGet85 !== void 0 ? _classPrivateFieldGet85 : this.embedOptions.videoQuality) !== null && _ref10 !== void 0 ? _ref10 : 'auto';
|
|
17046
17068
|
}
|
|
17047
17069
|
|
|
17048
17070
|
/**
|
|
@@ -17051,8 +17073,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17051
17073
|
* @returns {void}
|
|
17052
17074
|
*/,
|
|
17053
17075
|
set: function set(quality) {
|
|
17054
|
-
var
|
|
17055
|
-
(
|
|
17076
|
+
var _classPrivateFieldGet87;
|
|
17077
|
+
(_classPrivateFieldGet87 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet87 === void 0 ? void 0 : _classPrivateFieldGet87.setVideoQuality(quality);
|
|
17056
17078
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'videoQuality', quality);
|
|
17057
17079
|
}
|
|
17058
17080
|
|
|
@@ -17083,8 +17105,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17083
17105
|
* @returns {void}
|
|
17084
17106
|
*/,
|
|
17085
17107
|
set: function set(level) {
|
|
17086
|
-
var
|
|
17087
|
-
(
|
|
17108
|
+
var _classPrivateFieldGet88;
|
|
17109
|
+
(_classPrivateFieldGet88 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet88 === void 0 ? void 0 : _classPrivateFieldGet88.volume(level);
|
|
17088
17110
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'volume', level);
|
|
17089
17111
|
}
|
|
17090
17112
|
|
|
@@ -17106,8 +17128,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17106
17128
|
* @returns {void}
|
|
17107
17129
|
*/,
|
|
17108
17130
|
set: function set(shouldDisplay) {
|
|
17109
|
-
var
|
|
17110
|
-
(
|
|
17131
|
+
var _classPrivateFieldGet89;
|
|
17132
|
+
(_classPrivateFieldGet89 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet89 === void 0 ? void 0 : _classPrivateFieldGet89.volumeControlEnabled(shouldDisplay);
|
|
17111
17133
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'volumeControl', shouldDisplay);
|
|
17112
17134
|
}
|
|
17113
17135
|
|
|
@@ -17161,12 +17183,12 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17161
17183
|
key: "cancelFullscreen",
|
|
17162
17184
|
value: (function () {
|
|
17163
17185
|
var _cancelFullscreen = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
17164
|
-
var
|
|
17186
|
+
var _classPrivateFieldGet90,
|
|
17165
17187
|
_this3 = this;
|
|
17166
17188
|
return _regenerator().w(function (_context) {
|
|
17167
17189
|
while (1) switch (_context.n) {
|
|
17168
17190
|
case 0:
|
|
17169
|
-
return _context.a(2, (
|
|
17191
|
+
return _context.a(2, (_classPrivateFieldGet90 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet90 === void 0 ? void 0 : _classPrivateFieldGet90.cancelFullscreen().then(function () {
|
|
17170
17192
|
_this3._fullscreenState.heightBeforeFullscreen = undefined;
|
|
17171
17193
|
_this3._fullscreenState.widthBeforeFullscreen = undefined;
|
|
17172
17194
|
}));
|
|
@@ -17189,11 +17211,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17189
17211
|
key: "createOverlay",
|
|
17190
17212
|
value: (function () {
|
|
17191
17213
|
var _createOverlay = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(name, options) {
|
|
17192
|
-
var
|
|
17214
|
+
var _classPrivateFieldGet91;
|
|
17193
17215
|
return _regenerator().w(function (_context2) {
|
|
17194
17216
|
while (1) switch (_context2.n) {
|
|
17195
17217
|
case 0:
|
|
17196
|
-
if (!((
|
|
17218
|
+
if (!((_classPrivateFieldGet91 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet91 !== void 0 && _classPrivateFieldGet91.defineOverlay)) {
|
|
17197
17219
|
_context2.n = 1;
|
|
17198
17220
|
break;
|
|
17199
17221
|
}
|
|
@@ -17226,11 +17248,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17226
17248
|
case 0:
|
|
17227
17249
|
addPlugin = /*#__PURE__*/function () {
|
|
17228
17250
|
var _ref11 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
|
|
17229
|
-
var
|
|
17251
|
+
var _classPrivateFieldGet92, _classPrivateFieldGet93;
|
|
17230
17252
|
return _regenerator().w(function (_context3) {
|
|
17231
17253
|
while (1) switch (_context3.n) {
|
|
17232
17254
|
case 0:
|
|
17233
|
-
return _context3.a(2, (
|
|
17255
|
+
return _context3.a(2, (_classPrivateFieldGet92 = (_classPrivateFieldGet93 = _classPrivateFieldGet(_api, _this4)) === null || _classPrivateFieldGet93 === void 0 ? void 0 : _classPrivateFieldGet93.addPlugin(name, options)) !== null && _classPrivateFieldGet92 !== void 0 ? _classPrivateFieldGet92 : Promise.reject(new Error("plugin ".concat(name, " cannot be defined"))));
|
|
17234
17256
|
}
|
|
17235
17257
|
}, _callee3);
|
|
17236
17258
|
}));
|
|
@@ -17282,11 +17304,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17282
17304
|
key: "deleteOverlay",
|
|
17283
17305
|
value: (function () {
|
|
17284
17306
|
var _deleteOverlay = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(name) {
|
|
17285
|
-
var
|
|
17307
|
+
var _classPrivateFieldGet94;
|
|
17286
17308
|
return _regenerator().w(function (_context6) {
|
|
17287
17309
|
while (1) switch (_context6.n) {
|
|
17288
17310
|
case 0:
|
|
17289
|
-
if (!((
|
|
17311
|
+
if (!((_classPrivateFieldGet94 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet94 !== void 0 && _classPrivateFieldGet94.undefineOverlay)) {
|
|
17290
17312
|
_context6.n = 1;
|
|
17291
17313
|
break;
|
|
17292
17314
|
}
|
|
@@ -17311,11 +17333,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17311
17333
|
key: "disableControl",
|
|
17312
17334
|
value: (function () {
|
|
17313
17335
|
var _disableControl = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(name) {
|
|
17314
|
-
var
|
|
17336
|
+
var _classPrivateFieldGet95;
|
|
17315
17337
|
return _regenerator().w(function (_context7) {
|
|
17316
17338
|
while (1) switch (_context7.n) {
|
|
17317
17339
|
case 0:
|
|
17318
|
-
if (!((
|
|
17340
|
+
if (!((_classPrivateFieldGet95 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet95 !== void 0 && _classPrivateFieldGet95.setControlEnabled)) {
|
|
17319
17341
|
_context7.n = 1;
|
|
17320
17342
|
break;
|
|
17321
17343
|
}
|
|
@@ -17340,11 +17362,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17340
17362
|
key: "enableControl",
|
|
17341
17363
|
value: (function () {
|
|
17342
17364
|
var _enableControl = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8(name) {
|
|
17343
|
-
var
|
|
17365
|
+
var _classPrivateFieldGet96;
|
|
17344
17366
|
return _regenerator().w(function (_context8) {
|
|
17345
17367
|
while (1) switch (_context8.n) {
|
|
17346
17368
|
case 0:
|
|
17347
|
-
if (!((
|
|
17369
|
+
if (!((_classPrivateFieldGet96 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet96 !== void 0 && _classPrivateFieldGet96.setControlEnabled)) {
|
|
17348
17370
|
_context8.n = 1;
|
|
17349
17371
|
break;
|
|
17350
17372
|
}
|
|
@@ -17363,17 +17385,17 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17363
17385
|
key: "enterInputContext",
|
|
17364
17386
|
value: function () {
|
|
17365
17387
|
var _enterInputContext = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9(context) {
|
|
17366
|
-
var
|
|
17388
|
+
var _classPrivateFieldGet97,
|
|
17367
17389
|
_this5 = this;
|
|
17368
17390
|
return _regenerator().w(function (_context9) {
|
|
17369
17391
|
while (1) switch (_context9.n) {
|
|
17370
17392
|
case 0:
|
|
17371
|
-
if (!((
|
|
17393
|
+
if (!((_classPrivateFieldGet97 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet97 !== void 0 && _classPrivateFieldGet97.enterInputContext)) {
|
|
17372
17394
|
_context9.n = 1;
|
|
17373
17395
|
break;
|
|
17374
17396
|
}
|
|
17375
17397
|
return _context9.a(2, new Promise(function (resolve) {
|
|
17376
|
-
var
|
|
17398
|
+
var _classPrivateFieldGet98;
|
|
17377
17399
|
var _handler = function handler(event) {
|
|
17378
17400
|
var detail = event.detail;
|
|
17379
17401
|
if (detail.context === context) {
|
|
@@ -17382,7 +17404,7 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17382
17404
|
_this5.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__/* .INPUT_CONTEXT_CHANGE_EVENT */ .ve, _handler);
|
|
17383
17405
|
};
|
|
17384
17406
|
_this5.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__/* .INPUT_CONTEXT_CHANGE_EVENT */ .ve, _handler);
|
|
17385
|
-
(
|
|
17407
|
+
(_classPrivateFieldGet98 = _classPrivateFieldGet(_impl, _this5)) === null || _classPrivateFieldGet98 === void 0 ? void 0 : _classPrivateFieldGet98.enterInputContext(context);
|
|
17386
17408
|
}));
|
|
17387
17409
|
case 1:
|
|
17388
17410
|
return _context9.a(2, Promise.reject(new Error("input context of name \"".concat(context, "\" cannot be enabled at this time"))));
|
|
@@ -17398,11 +17420,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17398
17420
|
key: "exitInputContext",
|
|
17399
17421
|
value: function () {
|
|
17400
17422
|
var _exitInputContext = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(context) {
|
|
17401
|
-
var
|
|
17423
|
+
var _classPrivateFieldGet99;
|
|
17402
17424
|
return _regenerator().w(function (_context0) {
|
|
17403
17425
|
while (1) switch (_context0.n) {
|
|
17404
17426
|
case 0:
|
|
17405
|
-
if (!((
|
|
17427
|
+
if (!((_classPrivateFieldGet99 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet99 !== void 0 && _classPrivateFieldGet99.exitInputContext)) {
|
|
17406
17428
|
_context0.n = 1;
|
|
17407
17429
|
break;
|
|
17408
17430
|
}
|
|
@@ -17455,8 +17477,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17455
17477
|
while (1) switch (_context10.n) {
|
|
17456
17478
|
case 0:
|
|
17457
17479
|
return _context10.a(2, new Promise(function (resolve, reject) {
|
|
17458
|
-
var
|
|
17459
|
-
if ((
|
|
17480
|
+
var _classPrivateFieldGet100;
|
|
17481
|
+
if ((_classPrivateFieldGet100 = _classPrivateFieldGet(_api, _this6)) !== null && _classPrivateFieldGet100 !== void 0 && _classPrivateFieldGet100.plugin && name in _classPrivateFieldGet(_api, _this6).plugin) {
|
|
17460
17482
|
resolve(_classPrivateFieldGet(_api, _this6).plugin[name]);
|
|
17461
17483
|
}
|
|
17462
17484
|
reject(new Error("plugin ".concat(name, " is not defined")));
|
|
@@ -17480,7 +17502,7 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17480
17502
|
key: "getRemapTime",
|
|
17481
17503
|
value: (function () {
|
|
17482
17504
|
var _getRemapTime = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee11() {
|
|
17483
|
-
var
|
|
17505
|
+
var _classPrivateFieldGet101,
|
|
17484
17506
|
_this7 = this;
|
|
17485
17507
|
var _t, _t2, _t3;
|
|
17486
17508
|
return _regenerator().w(function (_context11) {
|
|
@@ -17501,11 +17523,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17501
17523
|
});
|
|
17502
17524
|
return _context11.a(2, _classPrivateFieldGet(_cachedRemapTime, this));
|
|
17503
17525
|
case 2:
|
|
17504
|
-
if (!((
|
|
17526
|
+
if (!((_classPrivateFieldGet101 = _classPrivateFieldGet(_cachedRemapTime, this)) !== null && _classPrivateFieldGet101 !== void 0)) {
|
|
17505
17527
|
_context11.n = 3;
|
|
17506
17528
|
break;
|
|
17507
17529
|
}
|
|
17508
|
-
|
|
17530
|
+
_classPrivateFieldGet101;
|
|
17509
17531
|
_context11.n = 5;
|
|
17510
17532
|
break;
|
|
17511
17533
|
case 3:
|
|
@@ -17548,11 +17570,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17548
17570
|
key: "hideOverlay",
|
|
17549
17571
|
value: (function () {
|
|
17550
17572
|
var _hideOverlay = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee12(name) {
|
|
17551
|
-
var
|
|
17573
|
+
var _classPrivateFieldGet102;
|
|
17552
17574
|
return _regenerator().w(function (_context12) {
|
|
17553
17575
|
while (1) switch (_context12.n) {
|
|
17554
17576
|
case 0:
|
|
17555
|
-
if (!((
|
|
17577
|
+
if (!((_classPrivateFieldGet102 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet102 !== void 0 && _classPrivateFieldGet102.cancelOverlay)) {
|
|
17556
17578
|
_context12.n = 1;
|
|
17557
17579
|
break;
|
|
17558
17580
|
}
|
|
@@ -17582,8 +17604,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17582
17604
|
while (1) switch (_context13.n) {
|
|
17583
17605
|
case 0:
|
|
17584
17606
|
return _context13.a(2, new Promise(function (resolve, reject) {
|
|
17585
|
-
var
|
|
17586
|
-
if ((
|
|
17607
|
+
var _classPrivateFieldGet103;
|
|
17608
|
+
if ((_classPrivateFieldGet103 = _classPrivateFieldGet(_api, _this8)) !== null && _classPrivateFieldGet103 !== void 0 && _classPrivateFieldGet103.popover) {
|
|
17587
17609
|
_classPrivateFieldGet(_api, _this8).popover.hide();
|
|
17588
17610
|
resolve();
|
|
17589
17611
|
}
|
|
@@ -17596,23 +17618,35 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17596
17618
|
return _hidePopover.apply(this, arguments);
|
|
17597
17619
|
}
|
|
17598
17620
|
return hidePopover;
|
|
17599
|
-
}()
|
|
17621
|
+
}())
|
|
17622
|
+
}, {
|
|
17623
|
+
key: "languagesToLocalizations",
|
|
17624
|
+
value: function languagesToLocalizations(languages) {
|
|
17625
|
+
var _classPrivateFieldGet104, _classPrivateFieldGet105;
|
|
17626
|
+
return (_classPrivateFieldGet104 = (_classPrivateFieldGet105 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet105 === void 0 ? void 0 : _classPrivateFieldGet105.languagesToLocalizations(languages)) !== null && _classPrivateFieldGet104 !== void 0 ? _classPrivateFieldGet104 : [];
|
|
17627
|
+
}
|
|
17628
|
+
}, {
|
|
17629
|
+
key: "languageToLocalization",
|
|
17630
|
+
value: function languageToLocalization(language) {
|
|
17631
|
+
var _classPrivateFieldGet106, _classPrivateFieldGet107;
|
|
17632
|
+
return (_classPrivateFieldGet106 = (_classPrivateFieldGet107 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet107 === void 0 ? void 0 : _classPrivateFieldGet107.languageToLocalization(language)) !== null && _classPrivateFieldGet106 !== void 0 ? _classPrivateFieldGet106 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this);
|
|
17633
|
+
}
|
|
17634
|
+
|
|
17600
17635
|
/**
|
|
17601
17636
|
* Pauses the video.
|
|
17602
17637
|
* If this is called and the video's state is "playing,"
|
|
17603
17638
|
* it's expected that it will change to "paused."
|
|
17604
17639
|
* @returns {Promise<void>}
|
|
17605
17640
|
*/
|
|
17606
|
-
)
|
|
17607
17641
|
}, {
|
|
17608
17642
|
key: "pause",
|
|
17609
17643
|
value: (function () {
|
|
17610
17644
|
var _pause = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee14() {
|
|
17611
|
-
var
|
|
17645
|
+
var _classPrivateFieldGet108;
|
|
17612
17646
|
return _regenerator().w(function (_context14) {
|
|
17613
17647
|
while (1) switch (_context14.n) {
|
|
17614
17648
|
case 0:
|
|
17615
|
-
return _context14.a(2, (
|
|
17649
|
+
return _context14.a(2, (_classPrivateFieldGet108 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet108 === void 0 ? void 0 : _classPrivateFieldGet108.pause());
|
|
17616
17650
|
}
|
|
17617
17651
|
}, _callee14, this);
|
|
17618
17652
|
}));
|
|
@@ -17631,11 +17665,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17631
17665
|
key: "play",
|
|
17632
17666
|
value: (function () {
|
|
17633
17667
|
var _play = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee15() {
|
|
17634
|
-
var
|
|
17668
|
+
var _classPrivateFieldGet109;
|
|
17635
17669
|
return _regenerator().w(function (_context15) {
|
|
17636
17670
|
while (1) switch (_context15.n) {
|
|
17637
17671
|
case 0:
|
|
17638
|
-
return _context15.a(2, (
|
|
17672
|
+
return _context15.a(2, (_classPrivateFieldGet109 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet109 === void 0 ? void 0 : _classPrivateFieldGet109.play());
|
|
17639
17673
|
}
|
|
17640
17674
|
}, _callee15, this);
|
|
17641
17675
|
}));
|
|
@@ -17653,11 +17687,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17653
17687
|
key: "releaseControls",
|
|
17654
17688
|
value: (function () {
|
|
17655
17689
|
var _releaseControls = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee16(name) {
|
|
17656
|
-
var
|
|
17690
|
+
var _classPrivateFieldGet110;
|
|
17657
17691
|
return _regenerator().w(function (_context16) {
|
|
17658
17692
|
while (1) switch (_context16.n) {
|
|
17659
17693
|
case 0:
|
|
17660
|
-
return _context16.a(2, (
|
|
17694
|
+
return _context16.a(2, (_classPrivateFieldGet110 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet110 === void 0 ? void 0 : _classPrivateFieldGet110.releaseControls(name));
|
|
17661
17695
|
}
|
|
17662
17696
|
}, _callee16, this);
|
|
17663
17697
|
}));
|
|
@@ -17736,7 +17770,7 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17736
17770
|
case 0:
|
|
17737
17771
|
options = _args17.length > 1 && _args17[1] !== undefined ? _args17[1] : {};
|
|
17738
17772
|
return _context17.a(2, new Promise(function (resolve, reject) {
|
|
17739
|
-
var
|
|
17773
|
+
var _classPrivateFieldGet111;
|
|
17740
17774
|
if (!_classPrivateFieldGet(_api, _this0)) {
|
|
17741
17775
|
reject(new Error('api not ready to replace'));
|
|
17742
17776
|
}
|
|
@@ -17746,7 +17780,7 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17746
17780
|
resolve();
|
|
17747
17781
|
};
|
|
17748
17782
|
_this0.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__/* .AFTER_REPLACE_EVENT */ .$1, _handleAfterReplace2);
|
|
17749
|
-
(
|
|
17783
|
+
(_classPrivateFieldGet111 = _classPrivateFieldGet(_api, _this0)) === null || _classPrivateFieldGet111 === void 0 ? void 0 : _classPrivateFieldGet111.replaceWith(mediaId, options);
|
|
17750
17784
|
}));
|
|
17751
17785
|
}
|
|
17752
17786
|
}, _callee17);
|
|
@@ -17765,11 +17799,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17765
17799
|
key: "requestControls",
|
|
17766
17800
|
value: (function () {
|
|
17767
17801
|
var _requestControls = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee18(name) {
|
|
17768
|
-
var
|
|
17802
|
+
var _classPrivateFieldGet112;
|
|
17769
17803
|
return _regenerator().w(function (_context18) {
|
|
17770
17804
|
while (1) switch (_context18.n) {
|
|
17771
17805
|
case 0:
|
|
17772
|
-
return _context18.a(2, (
|
|
17806
|
+
return _context18.a(2, (_classPrivateFieldGet112 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet112 === void 0 ? void 0 : _classPrivateFieldGet112.requestControls(name));
|
|
17773
17807
|
}
|
|
17774
17808
|
}, _callee18, this);
|
|
17775
17809
|
}));
|
|
@@ -17787,11 +17821,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17787
17821
|
key: "requestFullscreen",
|
|
17788
17822
|
value: (function () {
|
|
17789
17823
|
var _requestFullscreen = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee19() {
|
|
17790
|
-
var
|
|
17824
|
+
var _classPrivateFieldGet113;
|
|
17791
17825
|
return _regenerator().w(function (_context19) {
|
|
17792
17826
|
while (1) switch (_context19.n) {
|
|
17793
17827
|
case 0:
|
|
17794
|
-
if (!((
|
|
17828
|
+
if (!((_classPrivateFieldGet113 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet113 !== void 0 && _classPrivateFieldGet113.requestFullscreen)) {
|
|
17795
17829
|
_context19.n = 1;
|
|
17796
17830
|
break;
|
|
17797
17831
|
}
|
|
@@ -17816,11 +17850,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17816
17850
|
key: "showOverlay",
|
|
17817
17851
|
value: (function () {
|
|
17818
17852
|
var _showOverlay = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee20(name) {
|
|
17819
|
-
var
|
|
17853
|
+
var _classPrivateFieldGet114;
|
|
17820
17854
|
return _regenerator().w(function (_context20) {
|
|
17821
17855
|
while (1) switch (_context20.n) {
|
|
17822
17856
|
case 0:
|
|
17823
|
-
if (!((
|
|
17857
|
+
if (!((_classPrivateFieldGet114 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet114 !== void 0 && _classPrivateFieldGet114.requestOverlay)) {
|
|
17824
17858
|
_context20.n = 1;
|
|
17825
17859
|
break;
|
|
17826
17860
|
}
|
|
@@ -17850,8 +17884,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17850
17884
|
while (1) switch (_context21.n) {
|
|
17851
17885
|
case 0:
|
|
17852
17886
|
return _context21.a(2, new Promise(function (resolve, reject) {
|
|
17853
|
-
var
|
|
17854
|
-
if ((
|
|
17887
|
+
var _classPrivateFieldGet115;
|
|
17888
|
+
if ((_classPrivateFieldGet115 = _classPrivateFieldGet(_api, _this1)) !== null && _classPrivateFieldGet115 !== void 0 && _classPrivateFieldGet115.popover) {
|
|
17855
17889
|
_classPrivateFieldGet(_api, _this1).popover.show();
|
|
17856
17890
|
resolve();
|
|
17857
17891
|
}
|
|
@@ -18115,7 +18149,7 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
18115
18149
|
}, {
|
|
18116
18150
|
key: "disconnectedCallback",
|
|
18117
18151
|
value: function disconnectedCallback() {
|
|
18118
|
-
var
|
|
18152
|
+
var _classPrivateFieldGet116, _classPrivateFieldGet117, _this$shadowRoot;
|
|
18119
18153
|
_classPrivateFieldGet(_removeEventListeners, this).forEach(function (removeListener) {
|
|
18120
18154
|
return removeListener();
|
|
18121
18155
|
});
|
|
@@ -18123,10 +18157,10 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
18123
18157
|
_classPrivateFieldSet(_eventListeners, this, {});
|
|
18124
18158
|
(0,_utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_31__/* .removeInjectedJsonLd */ .Z)(_classPrivateFieldGet(_jsonLdId, this));
|
|
18125
18159
|
(0,_utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_34__/* .uncacheMediaData */ .s3)(this.mediaId);
|
|
18126
|
-
(
|
|
18160
|
+
(_classPrivateFieldGet116 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet116 === void 0 ? void 0 : _classPrivateFieldGet116.disconnect();
|
|
18127
18161
|
_classPrivateFieldSet(_resizeObserver, this, null);
|
|
18128
18162
|
(0,_utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_13__/* .removeEmbedOptionStore */ .iU)("__".concat(this.uniqueId, "_dom_options__"));
|
|
18129
|
-
(
|
|
18163
|
+
(_classPrivateFieldGet117 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet117 === void 0 ? void 0 : _classPrivateFieldGet117.remove();
|
|
18130
18164
|
_classPrivateFieldSet(_api, this, null);
|
|
18131
18165
|
(_this$shadowRoot = this.shadowRoot) === null || _this$shadowRoot === void 0 ? void 0 : _this$shadowRoot.replaceChildren();
|
|
18132
18166
|
_classPrivateFieldSet(_preactRoot, this, null);
|
|
@@ -18157,6 +18191,12 @@ function _get_pageUrl(_this) {
|
|
|
18157
18191
|
}
|
|
18158
18192
|
function _defaultLocalization() {
|
|
18159
18193
|
return {
|
|
18194
|
+
bcp47LanguageTag: 'en',
|
|
18195
|
+
familyName: 'English',
|
|
18196
|
+
familyNativeName: 'English',
|
|
18197
|
+
name: 'English',
|
|
18198
|
+
nativeName: 'English',
|
|
18199
|
+
wistiaLanguageCode: 'eng',
|
|
18160
18200
|
alpha3Bibliographic: 'eng',
|
|
18161
18201
|
alpha3Terminologic: 'eng',
|
|
18162
18202
|
duration: 0,
|
|
@@ -18165,9 +18205,7 @@ function _defaultLocalization() {
|
|
|
18165
18205
|
hashedId: this.mediaId,
|
|
18166
18206
|
ietfLanguageTag: 'eng',
|
|
18167
18207
|
isLocalization: true,
|
|
18168
|
-
iso6392LanguageCode: '
|
|
18169
|
-
name: 'English',
|
|
18170
|
-
nativeName: 'English',
|
|
18208
|
+
iso6392LanguageCode: 'eng',
|
|
18171
18209
|
sourceLanguage: true,
|
|
18172
18210
|
timeMappings: []
|
|
18173
18211
|
};
|
|
@@ -18182,12 +18220,12 @@ function _deferMediaDataFetchingToCarouselEmbed() {
|
|
|
18182
18220
|
return !!document.querySelector("wistia-channel-carousel[player-dom-id=\"".concat(this.id, "\"]:not([is-inside-playlist-embed=\"true\"][channel-id])"));
|
|
18183
18221
|
}
|
|
18184
18222
|
function _findLocalizationByLanguage(language) {
|
|
18185
|
-
var
|
|
18223
|
+
var _classPrivateFieldGet118;
|
|
18186
18224
|
if (language == null) {
|
|
18187
18225
|
return undefined;
|
|
18188
18226
|
}
|
|
18189
|
-
return (
|
|
18190
|
-
return localization.
|
|
18227
|
+
return (_classPrivateFieldGet118 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet118 === void 0 ? void 0 : _classPrivateFieldGet118.find(function (localization) {
|
|
18228
|
+
return localization.wistiaLanguageCode === language || localization.bcp47LanguageTag === language;
|
|
18191
18229
|
});
|
|
18192
18230
|
}
|
|
18193
18231
|
/**
|
|
@@ -18265,8 +18303,8 @@ function _initPlayerEmbed(_ref21) {
|
|
|
18265
18303
|
_assertClassBrand(_WistiaPlayer_brand, this, _maybeInjectJsonLd).call(this);
|
|
18266
18304
|
}
|
|
18267
18305
|
if ('attachInternals' in HTMLElement.prototype && 'states' in ElementInternals.prototype) {
|
|
18268
|
-
var
|
|
18269
|
-
(
|
|
18306
|
+
var _classPrivateFieldGet119;
|
|
18307
|
+
(_classPrivateFieldGet119 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet119 === void 0 ? void 0 : _classPrivateFieldGet119.states.delete('--initializing');
|
|
18270
18308
|
}
|
|
18271
18309
|
|
|
18272
18310
|
// Create and save the public api instance
|
|
@@ -18322,10 +18360,10 @@ function _initPublicApi2() {
|
|
|
18322
18360
|
_this19.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__/* .AFTER_REPLACE_EVENT */ .$1, _classPrivateFieldGet(_handleAfterReplace, _this19));
|
|
18323
18361
|
});
|
|
18324
18362
|
_classPrivateFieldGet(_api, this).ready(function () {
|
|
18325
|
-
var
|
|
18326
|
-
(
|
|
18363
|
+
var _classPrivateFieldGet126, _classPrivateFieldGet127;
|
|
18364
|
+
(_classPrivateFieldGet126 = _classPrivateFieldGet(_resizeObserver, _this19)) === null || _classPrivateFieldGet126 === void 0 ? void 0 : _classPrivateFieldGet126.disconnect();
|
|
18327
18365
|
_classPrivateFieldSet(_resizeObserver, _this19, null);
|
|
18328
|
-
(
|
|
18366
|
+
(_classPrivateFieldGet127 = _classPrivateFieldGet(_preloadThumbnailRoot, _this19)) === null || _classPrivateFieldGet127 === void 0 ? void 0 : _classPrivateFieldGet127.remove();
|
|
18329
18367
|
_this19.removeEventListener('click', _classPrivateFieldGet(_handlePreloadThumbnailClick, _this19));
|
|
18330
18368
|
// event for public consumption, exposed on our event types
|
|
18331
18369
|
_this19.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__/* .API_READY_EVENT */ .c5, {
|
|
@@ -18408,8 +18446,8 @@ function _maybeInitializeMux2() {
|
|
|
18408
18446
|
this.addEventListener('visitor-tracking-change', function (event) {
|
|
18409
18447
|
var isTrackingEnabled = event.detail.isTrackingEnabled;
|
|
18410
18448
|
if (!isTrackingEnabled) {
|
|
18411
|
-
var
|
|
18412
|
-
(
|
|
18449
|
+
var _classPrivateFieldGet129, _classPrivateFieldGet130;
|
|
18450
|
+
(_classPrivateFieldGet129 = _classPrivateFieldGet(_api, _this20)) === null || _classPrivateFieldGet129 === void 0 ? void 0 : (_classPrivateFieldGet130 = _classPrivateFieldGet129.mux) === null || _classPrivateFieldGet130 === void 0 ? void 0 : _classPrivateFieldGet130.destroy();
|
|
18413
18451
|
}
|
|
18414
18452
|
});
|
|
18415
18453
|
case 3:
|
|
@@ -18528,13 +18566,13 @@ function _renderPreloadThumbnail() {
|
|
|
18528
18566
|
if (!_classPrivateFieldGet(_preloadThumbnailRoot, this)) {
|
|
18529
18567
|
return;
|
|
18530
18568
|
}
|
|
18531
|
-
var
|
|
18532
|
-
assets =
|
|
18533
|
-
mediaType =
|
|
18534
|
-
carouselHardWall =
|
|
18535
|
-
var
|
|
18536
|
-
autoPlay =
|
|
18537
|
-
plugin =
|
|
18569
|
+
var _classPrivateFieldGet120 = _classPrivateFieldGet(_playerData, this).mediaData,
|
|
18570
|
+
assets = _classPrivateFieldGet120.assets,
|
|
18571
|
+
mediaType = _classPrivateFieldGet120.mediaType,
|
|
18572
|
+
carouselHardWall = _classPrivateFieldGet120.carouselHardWall;
|
|
18573
|
+
var _classPrivateFieldGet121 = _classPrivateFieldGet(_playerData, this).embedOptions,
|
|
18574
|
+
autoPlay = _classPrivateFieldGet121.autoPlay,
|
|
18575
|
+
plugin = _classPrivateFieldGet121.plugin;
|
|
18538
18576
|
|
|
18539
18577
|
// Don't render the preload thumbnail if we're going to show a carousel hard wall player.
|
|
18540
18578
|
if (carouselHardWall) {
|
|
@@ -18567,12 +18605,12 @@ function _runMethodsFromAttributes() {
|
|
|
18567
18605
|
// We have to wait until the api is ready to set the current time
|
|
18568
18606
|
if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, 'current-time') !== null) {
|
|
18569
18607
|
this.whenApiReady().then(function () {
|
|
18570
|
-
var _ref23,
|
|
18608
|
+
var _ref23, _classPrivateFieldGet122, _classPrivateFieldGet123;
|
|
18571
18609
|
var newTime = Number(_assertClassBrand(_WistiaPlayer_brand, _this14, _getValueFromAttribute).call(_this14, 'current-time'));
|
|
18572
|
-
var isClosedPopover = (_ref23 = ((
|
|
18610
|
+
var isClosedPopover = (_ref23 = ((_classPrivateFieldGet122 = _classPrivateFieldGet(_api, _this14)) === null || _classPrivateFieldGet122 === void 0 ? void 0 : _classPrivateFieldGet122.popover) && !_classPrivateFieldGet(_api, _this14).popover.isVisible()) !== null && _ref23 !== void 0 ? _ref23 : false;
|
|
18573
18611
|
var isMobile = (0,_utilities_detect_js__WEBPACK_IMPORTED_MODULE_11__/* .detectIsMobile */ .GS)();
|
|
18574
18612
|
var shouldDelayUntilPlay = _this14.state !== 'playing' && (isMobile || isClosedPopover);
|
|
18575
|
-
void ((
|
|
18613
|
+
void ((_classPrivateFieldGet123 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet123 === void 0 ? void 0 : _classPrivateFieldGet123.time(newTime, {
|
|
18576
18614
|
lazy: shouldDelayUntilPlay
|
|
18577
18615
|
}));
|
|
18578
18616
|
_assertClassBrand(_WistiaPlayer_brand, _this14, _setSyncedEmbedOption).call(_this14, 'currentTime', newTime);
|
|
@@ -18585,9 +18623,9 @@ function _runMethodsFromAttributes() {
|
|
|
18585
18623
|
}
|
|
18586
18624
|
if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, 'video-quality') !== null) {
|
|
18587
18625
|
this.whenApiReady().then(function () {
|
|
18588
|
-
var
|
|
18626
|
+
var _classPrivateFieldGet124;
|
|
18589
18627
|
var newQuality = _assertClassBrand(_WistiaPlayer_brand, _this14, _getValueFromAttribute).call(_this14, 'video-quality');
|
|
18590
|
-
(
|
|
18628
|
+
(_classPrivateFieldGet124 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet124 === void 0 ? void 0 : _classPrivateFieldGet124.setVideoQuality(newQuality);
|
|
18591
18629
|
_assertClassBrand(_WistiaPlayer_brand, _this14, _setSyncedEmbedOption).call(_this14, 'videoQuality', newQuality);
|
|
18592
18630
|
})
|
|
18593
18631
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|