@mottosports/motto-video-player 1.0.1-rc.45 → 1.0.1-rc.47
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/index.js +51 -28
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +51 -28
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1030,6 +1030,31 @@ styleInject(`/*! tailwindcss v4.1.8 | MIT License | https://tailwindcss.com */
|
|
|
1030
1030
|
margin-left: auto !important;
|
|
1031
1031
|
margin-right: auto !important;
|
|
1032
1032
|
}
|
|
1033
|
+
.shaka-overflow-menu .shaka-overflow-button .material-svg-icon:not(:first-child) {
|
|
1034
|
+
margin-left: 12px !important;
|
|
1035
|
+
}
|
|
1036
|
+
.shaka-overflow-menu .shaka-overflow-button .material-svg-icon:first-child {
|
|
1037
|
+
margin-left: 0 !important;
|
|
1038
|
+
margin-right: 12px !important;
|
|
1039
|
+
}
|
|
1040
|
+
html[dir=rtl] .shaka-controls-container,
|
|
1041
|
+
html[dir=rtl] .shaka-bottom-controls,
|
|
1042
|
+
html[dir=rtl] .shaka-controls-button-panel {
|
|
1043
|
+
direction: ltr !important;
|
|
1044
|
+
}
|
|
1045
|
+
html[dir=rtl] .shaka-overflow-menu,
|
|
1046
|
+
html[dir=rtl] .shaka-settings-menu {
|
|
1047
|
+
direction: rtl !important;
|
|
1048
|
+
text-align: right !important;
|
|
1049
|
+
}
|
|
1050
|
+
html[dir=rtl] .shaka-overflow-menu .shaka-overflow-button .material-svg-icon:not(:first-child) {
|
|
1051
|
+
margin-right: 12px !important;
|
|
1052
|
+
margin-left: 0 !important;
|
|
1053
|
+
}
|
|
1054
|
+
html[dir=rtl] .shaka-overflow-menu .shaka-overflow-button .material-svg-icon:first-child {
|
|
1055
|
+
margin-right: 0 !important;
|
|
1056
|
+
margin-left: 12px !important;
|
|
1057
|
+
}
|
|
1033
1058
|
@property --tw-gradient-position { syntax: "*"; inherits: false; }
|
|
1034
1059
|
@property --tw-gradient-from { syntax: "<color>"; inherits: false; initial-value: #0000; }
|
|
1035
1060
|
@property --tw-gradient-via { syntax: "<color>"; inherits: false; initial-value: #0000; }
|
|
@@ -1199,7 +1224,7 @@ var supportsWidevinePersistentLicenses = () => {
|
|
|
1199
1224
|
var import_mux_data_shakaplayer = __toESM(require("@mux/mux-data-shakaplayer"));
|
|
1200
1225
|
|
|
1201
1226
|
// package.json
|
|
1202
|
-
var version = "1.0.1-rc.
|
|
1227
|
+
var version = "1.0.1-rc.47";
|
|
1203
1228
|
|
|
1204
1229
|
// src/utils/licenseCache.ts
|
|
1205
1230
|
var PERSISTENT_LICENSE_PREFIX = "motto_lic_";
|
|
@@ -3459,6 +3484,31 @@ styleInject(`/*! tailwindcss v4.1.8 | MIT License | https://tailwindcss.com */
|
|
|
3459
3484
|
margin-left: auto !important;
|
|
3460
3485
|
margin-right: auto !important;
|
|
3461
3486
|
}
|
|
3487
|
+
.shaka-overflow-menu .shaka-overflow-button .material-svg-icon:not(:first-child) {
|
|
3488
|
+
margin-left: 12px !important;
|
|
3489
|
+
}
|
|
3490
|
+
.shaka-overflow-menu .shaka-overflow-button .material-svg-icon:first-child {
|
|
3491
|
+
margin-left: 0 !important;
|
|
3492
|
+
margin-right: 12px !important;
|
|
3493
|
+
}
|
|
3494
|
+
html[dir=rtl] .shaka-controls-container,
|
|
3495
|
+
html[dir=rtl] .shaka-bottom-controls,
|
|
3496
|
+
html[dir=rtl] .shaka-controls-button-panel {
|
|
3497
|
+
direction: ltr !important;
|
|
3498
|
+
}
|
|
3499
|
+
html[dir=rtl] .shaka-overflow-menu,
|
|
3500
|
+
html[dir=rtl] .shaka-settings-menu {
|
|
3501
|
+
direction: rtl !important;
|
|
3502
|
+
text-align: right !important;
|
|
3503
|
+
}
|
|
3504
|
+
html[dir=rtl] .shaka-overflow-menu .shaka-overflow-button .material-svg-icon:not(:first-child) {
|
|
3505
|
+
margin-right: 12px !important;
|
|
3506
|
+
margin-left: 0 !important;
|
|
3507
|
+
}
|
|
3508
|
+
html[dir=rtl] .shaka-overflow-menu .shaka-overflow-button .material-svg-icon:first-child {
|
|
3509
|
+
margin-right: 0 !important;
|
|
3510
|
+
margin-left: 12px !important;
|
|
3511
|
+
}
|
|
3462
3512
|
@property --tw-gradient-position { syntax: "*"; inherits: false; }
|
|
3463
3513
|
@property --tw-gradient-from { syntax: "<color>"; inherits: false; initial-value: #0000; }
|
|
3464
3514
|
@property --tw-gradient-via { syntax: "<color>"; inherits: false; initial-value: #0000; }
|
|
@@ -3695,32 +3745,6 @@ var Player = (0, import_react12.forwardRef)(
|
|
|
3695
3745
|
}
|
|
3696
3746
|
}
|
|
3697
3747
|
};
|
|
3698
|
-
const initializeChromecast = () => {
|
|
3699
|
-
try {
|
|
3700
|
-
if (typeof window !== "undefined" && window.chrome?.cast) {
|
|
3701
|
-
const castContext = window.chrome.cast.CastContext.getInstance();
|
|
3702
|
-
if (castContext) {
|
|
3703
|
-
castContext.setOptions({
|
|
3704
|
-
receiverApplicationId: chromecastConfig?.receiverApplicationId || "CC1AD845"
|
|
3705
|
-
// Default Media Receiver
|
|
3706
|
-
});
|
|
3707
|
-
castContext.addEventListener("caststatechanged", (event) => {
|
|
3708
|
-
const isCasting = event.castState === "CONNECTED";
|
|
3709
|
-
events?.onCastStateChange?.(isCasting);
|
|
3710
|
-
});
|
|
3711
|
-
}
|
|
3712
|
-
} else {
|
|
3713
|
-
if (events?.onCastStateChange) {
|
|
3714
|
-
setTimeout(() => events.onCastStateChange(false), 100);
|
|
3715
|
-
}
|
|
3716
|
-
}
|
|
3717
|
-
} catch (error) {
|
|
3718
|
-
console.warn("Chromecast initialization failed:", error);
|
|
3719
|
-
if (events?.onCastStateChange) {
|
|
3720
|
-
setTimeout(() => events.onCastStateChange(false), 100);
|
|
3721
|
-
}
|
|
3722
|
-
}
|
|
3723
|
-
};
|
|
3724
3748
|
(0, import_react12.useEffect)(() => {
|
|
3725
3749
|
const video = videoRef.current;
|
|
3726
3750
|
if (!video) return;
|
|
@@ -3732,7 +3756,6 @@ var Player = (0, import_react12.forwardRef)(
|
|
|
3732
3756
|
configureQuality();
|
|
3733
3757
|
await initializeUI();
|
|
3734
3758
|
initializeAds();
|
|
3735
|
-
initializeChromecast();
|
|
3736
3759
|
} catch (error) {
|
|
3737
3760
|
console.error("Error during player initialization:", error);
|
|
3738
3761
|
handleMuxError(error);
|