zarebin-player-library 1.1.10 → 1.1.12
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.
|
@@ -10493,7 +10493,8 @@ var handleChangeSoundVolume = (volume) => {
|
|
|
10493
10493
|
...settings,
|
|
10494
10494
|
volume
|
|
10495
10495
|
}));
|
|
10496
|
-
if (conditions(ConditionName.isIOS)) videoTag().muted =
|
|
10496
|
+
if (conditions(ConditionName.isIOS)) if (conditions(ConditionName.hasAd)) videoTag().muted = false;
|
|
10497
|
+
else videoTag().muted = !videoTag().muted;
|
|
10497
10498
|
else videoTag().volume = volume / 100;
|
|
10498
10499
|
};
|
|
10499
10500
|
var handleIsLive = () => {
|
|
@@ -68961,13 +68962,8 @@ var useVideoControls = (ad, params) => {
|
|
|
68961
68962
|
const playPromise = video.play();
|
|
68962
68963
|
dispatch(setPlay(true));
|
|
68963
68964
|
if (playPromise !== void 0) playPromise.then(() => {
|
|
68964
|
-
|
|
68965
|
-
|
|
68966
|
-
dispatch(setFirstMute(false));
|
|
68967
|
-
} else {
|
|
68968
|
-
dispatch(setFirstMute(true));
|
|
68969
|
-
handleChangeSoundVolume(0);
|
|
68970
|
-
}
|
|
68965
|
+
handleChangeSoundVolume(100);
|
|
68966
|
+
dispatch(setFirstMute(false));
|
|
68971
68967
|
}).catch(() => {
|
|
68972
68968
|
handleChangeSoundVolume(0);
|
|
68973
68969
|
dispatch(setFirstMute(true));
|
|
@@ -69142,15 +69138,15 @@ var Advertisement = () => {
|
|
|
69142
69138
|
await handleFullScreen();
|
|
69143
69139
|
await handleLockOrientation();
|
|
69144
69140
|
},
|
|
69145
|
-
className: `pl-flex pl-h-full pl-w-full pl-flex-col pl-justify-end pl-bg-dark-1 ${conditions(ConditionName.isFullScreen) && "!pl-fixed !pl-right-0 !pl-top-0 !pl-h-screen !pl-w-screen"}`,
|
|
69146
|
-
style: { zIndex:
|
|
69141
|
+
className: `pl-flex pl-h-full pl-relative pl-w-full pl-flex-col pl-justify-end pl-bg-dark-1 ${conditions(ConditionName.isFullScreen) && "!pl-fixed !pl-right-0 !pl-top-0 !pl-h-screen !pl-w-screen"}`,
|
|
69142
|
+
style: { zIndex: 100001 },
|
|
69147
69143
|
children: [
|
|
69148
69144
|
/* @__PURE__ */ jsx("video", {
|
|
69149
69145
|
id: "player-tag",
|
|
69150
69146
|
src: adData?.url + `?uuid=${getUUID()}`,
|
|
69151
69147
|
autoPlay: true,
|
|
69152
69148
|
playsInline: true,
|
|
69153
|
-
className: "pl-
|
|
69149
|
+
className: "pl-size-full"
|
|
69154
69150
|
}),
|
|
69155
69151
|
/* @__PURE__ */ jsxs("div", {
|
|
69156
69152
|
className: `pl-relative pl-flex pl-h-full pl-w-full pl-flex-col pl-justify-between ${conditions(ConditionName.isTouchScreen) ? "pl-pb-3 pl-pt-4 lg:pl-pb-4" : "pl-pb-5 pl-pt-[30px]"}`,
|