@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.mjs
CHANGED
|
@@ -989,6 +989,31 @@ 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
|
+
}
|
|
999
|
+
html[dir=rtl] .shaka-controls-container,
|
|
1000
|
+
html[dir=rtl] .shaka-bottom-controls,
|
|
1001
|
+
html[dir=rtl] .shaka-controls-button-panel {
|
|
1002
|
+
direction: ltr !important;
|
|
1003
|
+
}
|
|
1004
|
+
html[dir=rtl] .shaka-overflow-menu,
|
|
1005
|
+
html[dir=rtl] .shaka-settings-menu {
|
|
1006
|
+
direction: rtl !important;
|
|
1007
|
+
text-align: right !important;
|
|
1008
|
+
}
|
|
1009
|
+
html[dir=rtl] .shaka-overflow-menu .shaka-overflow-button .material-svg-icon:not(:first-child) {
|
|
1010
|
+
margin-right: 12px !important;
|
|
1011
|
+
margin-left: 0 !important;
|
|
1012
|
+
}
|
|
1013
|
+
html[dir=rtl] .shaka-overflow-menu .shaka-overflow-button .material-svg-icon:first-child {
|
|
1014
|
+
margin-right: 0 !important;
|
|
1015
|
+
margin-left: 12px !important;
|
|
1016
|
+
}
|
|
992
1017
|
@property --tw-gradient-position { syntax: "*"; inherits: false; }
|
|
993
1018
|
@property --tw-gradient-from { syntax: "<color>"; inherits: false; initial-value: #0000; }
|
|
994
1019
|
@property --tw-gradient-via { syntax: "<color>"; inherits: false; initial-value: #0000; }
|
|
@@ -1158,7 +1183,7 @@ var supportsWidevinePersistentLicenses = () => {
|
|
|
1158
1183
|
import initShakaPlayerMux from "@mux/mux-data-shakaplayer";
|
|
1159
1184
|
|
|
1160
1185
|
// package.json
|
|
1161
|
-
var version = "1.0.1-rc.
|
|
1186
|
+
var version = "1.0.1-rc.47";
|
|
1162
1187
|
|
|
1163
1188
|
// src/utils/licenseCache.ts
|
|
1164
1189
|
var PERSISTENT_LICENSE_PREFIX = "motto_lic_";
|
|
@@ -3418,6 +3443,31 @@ styleInject(`/*! tailwindcss v4.1.8 | MIT License | https://tailwindcss.com */
|
|
|
3418
3443
|
margin-left: auto !important;
|
|
3419
3444
|
margin-right: auto !important;
|
|
3420
3445
|
}
|
|
3446
|
+
.shaka-overflow-menu .shaka-overflow-button .material-svg-icon:not(:first-child) {
|
|
3447
|
+
margin-left: 12px !important;
|
|
3448
|
+
}
|
|
3449
|
+
.shaka-overflow-menu .shaka-overflow-button .material-svg-icon:first-child {
|
|
3450
|
+
margin-left: 0 !important;
|
|
3451
|
+
margin-right: 12px !important;
|
|
3452
|
+
}
|
|
3453
|
+
html[dir=rtl] .shaka-controls-container,
|
|
3454
|
+
html[dir=rtl] .shaka-bottom-controls,
|
|
3455
|
+
html[dir=rtl] .shaka-controls-button-panel {
|
|
3456
|
+
direction: ltr !important;
|
|
3457
|
+
}
|
|
3458
|
+
html[dir=rtl] .shaka-overflow-menu,
|
|
3459
|
+
html[dir=rtl] .shaka-settings-menu {
|
|
3460
|
+
direction: rtl !important;
|
|
3461
|
+
text-align: right !important;
|
|
3462
|
+
}
|
|
3463
|
+
html[dir=rtl] .shaka-overflow-menu .shaka-overflow-button .material-svg-icon:not(:first-child) {
|
|
3464
|
+
margin-right: 12px !important;
|
|
3465
|
+
margin-left: 0 !important;
|
|
3466
|
+
}
|
|
3467
|
+
html[dir=rtl] .shaka-overflow-menu .shaka-overflow-button .material-svg-icon:first-child {
|
|
3468
|
+
margin-right: 0 !important;
|
|
3469
|
+
margin-left: 12px !important;
|
|
3470
|
+
}
|
|
3421
3471
|
@property --tw-gradient-position { syntax: "*"; inherits: false; }
|
|
3422
3472
|
@property --tw-gradient-from { syntax: "<color>"; inherits: false; initial-value: #0000; }
|
|
3423
3473
|
@property --tw-gradient-via { syntax: "<color>"; inherits: false; initial-value: #0000; }
|
|
@@ -3654,32 +3704,6 @@ var Player = forwardRef(
|
|
|
3654
3704
|
}
|
|
3655
3705
|
}
|
|
3656
3706
|
};
|
|
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
3707
|
useEffect5(() => {
|
|
3684
3708
|
const video = videoRef.current;
|
|
3685
3709
|
if (!video) return;
|
|
@@ -3691,7 +3715,6 @@ var Player = forwardRef(
|
|
|
3691
3715
|
configureQuality();
|
|
3692
3716
|
await initializeUI();
|
|
3693
3717
|
initializeAds();
|
|
3694
|
-
initializeChromecast();
|
|
3695
3718
|
} catch (error) {
|
|
3696
3719
|
console.error("Error during player initialization:", error);
|
|
3697
3720
|
handleMuxError(error);
|