@mottosports/motto-video-player 1.0.1-rc.45 → 1.0.1-rc.46
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 +15 -28
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -28
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -989,6 +989,13 @@ styleInject(`/*! tailwindcss v4.1.8 | MIT License | https://tailwindcss.com */
|
|
|
989
989
|
margin-left: auto !important;
|
|
990
990
|
margin-right: auto !important;
|
|
991
991
|
}
|
|
992
|
+
.shaka-overflow-menu .shaka-overflow-button .material-svg-icon:not(:first-child) {
|
|
993
|
+
margin-left: 12px !important;
|
|
994
|
+
}
|
|
995
|
+
.shaka-overflow-menu .shaka-overflow-button .material-svg-icon:first-child {
|
|
996
|
+
margin-left: 0 !important;
|
|
997
|
+
margin-right: 12px !important;
|
|
998
|
+
}
|
|
992
999
|
@property --tw-gradient-position { syntax: "*"; inherits: false; }
|
|
993
1000
|
@property --tw-gradient-from { syntax: "<color>"; inherits: false; initial-value: #0000; }
|
|
994
1001
|
@property --tw-gradient-via { syntax: "<color>"; inherits: false; initial-value: #0000; }
|
|
@@ -1158,7 +1165,7 @@ var supportsWidevinePersistentLicenses = () => {
|
|
|
1158
1165
|
import initShakaPlayerMux from "@mux/mux-data-shakaplayer";
|
|
1159
1166
|
|
|
1160
1167
|
// package.json
|
|
1161
|
-
var version = "1.0.1-rc.
|
|
1168
|
+
var version = "1.0.1-rc.46";
|
|
1162
1169
|
|
|
1163
1170
|
// src/utils/licenseCache.ts
|
|
1164
1171
|
var PERSISTENT_LICENSE_PREFIX = "motto_lic_";
|
|
@@ -3418,6 +3425,13 @@ styleInject(`/*! tailwindcss v4.1.8 | MIT License | https://tailwindcss.com */
|
|
|
3418
3425
|
margin-left: auto !important;
|
|
3419
3426
|
margin-right: auto !important;
|
|
3420
3427
|
}
|
|
3428
|
+
.shaka-overflow-menu .shaka-overflow-button .material-svg-icon:not(:first-child) {
|
|
3429
|
+
margin-left: 12px !important;
|
|
3430
|
+
}
|
|
3431
|
+
.shaka-overflow-menu .shaka-overflow-button .material-svg-icon:first-child {
|
|
3432
|
+
margin-left: 0 !important;
|
|
3433
|
+
margin-right: 12px !important;
|
|
3434
|
+
}
|
|
3421
3435
|
@property --tw-gradient-position { syntax: "*"; inherits: false; }
|
|
3422
3436
|
@property --tw-gradient-from { syntax: "<color>"; inherits: false; initial-value: #0000; }
|
|
3423
3437
|
@property --tw-gradient-via { syntax: "<color>"; inherits: false; initial-value: #0000; }
|
|
@@ -3654,32 +3668,6 @@ var Player = forwardRef(
|
|
|
3654
3668
|
}
|
|
3655
3669
|
}
|
|
3656
3670
|
};
|
|
3657
|
-
const initializeChromecast = () => {
|
|
3658
|
-
try {
|
|
3659
|
-
if (typeof window !== "undefined" && window.chrome?.cast) {
|
|
3660
|
-
const castContext = window.chrome.cast.CastContext.getInstance();
|
|
3661
|
-
if (castContext) {
|
|
3662
|
-
castContext.setOptions({
|
|
3663
|
-
receiverApplicationId: chromecastConfig?.receiverApplicationId || "CC1AD845"
|
|
3664
|
-
// Default Media Receiver
|
|
3665
|
-
});
|
|
3666
|
-
castContext.addEventListener("caststatechanged", (event) => {
|
|
3667
|
-
const isCasting = event.castState === "CONNECTED";
|
|
3668
|
-
events?.onCastStateChange?.(isCasting);
|
|
3669
|
-
});
|
|
3670
|
-
}
|
|
3671
|
-
} else {
|
|
3672
|
-
if (events?.onCastStateChange) {
|
|
3673
|
-
setTimeout(() => events.onCastStateChange(false), 100);
|
|
3674
|
-
}
|
|
3675
|
-
}
|
|
3676
|
-
} catch (error) {
|
|
3677
|
-
console.warn("Chromecast initialization failed:", error);
|
|
3678
|
-
if (events?.onCastStateChange) {
|
|
3679
|
-
setTimeout(() => events.onCastStateChange(false), 100);
|
|
3680
|
-
}
|
|
3681
|
-
}
|
|
3682
|
-
};
|
|
3683
3671
|
useEffect5(() => {
|
|
3684
3672
|
const video = videoRef.current;
|
|
3685
3673
|
if (!video) return;
|
|
@@ -3691,7 +3679,6 @@ var Player = forwardRef(
|
|
|
3691
3679
|
configureQuality();
|
|
3692
3680
|
await initializeUI();
|
|
3693
3681
|
initializeAds();
|
|
3694
|
-
initializeChromecast();
|
|
3695
3682
|
} catch (error) {
|
|
3696
3683
|
console.error("Error during player initialization:", error);
|
|
3697
3684
|
handleMuxError(error);
|