@halibegic/react-video-player 0.0.38 → 0.0.39
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
type LivePlayerViewerCountProps = {
|
|
2
2
|
url: string;
|
|
3
3
|
};
|
|
4
|
-
declare function LivePlayerViewerCount({ url }: LivePlayerViewerCountProps): null;
|
|
4
|
+
declare function LivePlayerViewerCount({ url }: LivePlayerViewerCountProps): import("react/jsx-runtime").JSX.Element | null;
|
|
5
5
|
export { LivePlayerViewerCount };
|
|
@@ -1598,6 +1598,9 @@ function Mr({ url: e, messages: t = {} }) {
|
|
|
1598
1598
|
}, [l]), n ? /* @__PURE__ */ s.jsx(Yt, { url: n, isLive: !0, messages: t }) : null;
|
|
1599
1599
|
}
|
|
1600
1600
|
function Nr({ url: e }) {
|
|
1601
|
+
return f((n) => n.isStarted) ? /* @__PURE__ */ s.jsx(Vr, { url: e }) : null;
|
|
1602
|
+
}
|
|
1603
|
+
function Vr({ url: e }) {
|
|
1601
1604
|
const t = A((l) => l.setViewerCount), n = V(null), o = (l) => {
|
|
1602
1605
|
try {
|
|
1603
1606
|
return new URL(l).pathname.split("/").filter((d) => d.length > 0)[0] || null;
|
|
@@ -1631,7 +1634,7 @@ function Nr({ url: e }) {
|
|
|
1631
1634
|
n.current && n.current.abort();
|
|
1632
1635
|
}), [e]), Ve(a, 15e3), null;
|
|
1633
1636
|
}
|
|
1634
|
-
function
|
|
1637
|
+
function Ar(e, {
|
|
1635
1638
|
defaultValue: t = !1,
|
|
1636
1639
|
initializeWithValue: n = !0
|
|
1637
1640
|
} = {}) {
|
|
@@ -1648,13 +1651,13 @@ function Vr(e, {
|
|
|
1648
1651
|
};
|
|
1649
1652
|
}, [e]), a;
|
|
1650
1653
|
}
|
|
1651
|
-
const
|
|
1652
|
-
playbackButton:
|
|
1653
|
-
seekIndicator:
|
|
1654
|
-
seekIndicatorLeft:
|
|
1655
|
-
seekIndicatorRight:
|
|
1656
|
-
seekIndicatorVisible:
|
|
1657
|
-
},
|
|
1654
|
+
const Or = "_playbackButton_lgsgw_1", Hr = "_seekIndicator_lgsgw_23", $r = "_seekIndicatorLeft_lgsgw_49", Ur = "_seekIndicatorRight_lgsgw_53", Br = "_seekIndicatorVisible_lgsgw_57", me = {
|
|
1655
|
+
playbackButton: Or,
|
|
1656
|
+
seekIndicator: Hr,
|
|
1657
|
+
seekIndicatorLeft: $r,
|
|
1658
|
+
seekIndicatorRight: Ur,
|
|
1659
|
+
seekIndicatorVisible: Br
|
|
1660
|
+
}, zr = 10;
|
|
1658
1661
|
function Xt(i) {
|
|
1659
1662
|
var c = i, {
|
|
1660
1663
|
className: e,
|
|
@@ -1671,8 +1674,8 @@ function Xt(i) {
|
|
|
1671
1674
|
"maxForwardTime",
|
|
1672
1675
|
"maxBackwardTime"
|
|
1673
1676
|
]);
|
|
1674
|
-
return
|
|
1675
|
-
|
|
1677
|
+
return Ar("(min-width: 1024px)") ? /* @__PURE__ */ s.jsx(qr, L({ className: e, onClick: t }, u)) : /* @__PURE__ */ s.jsx(
|
|
1678
|
+
Wr,
|
|
1676
1679
|
L({
|
|
1677
1680
|
className: e,
|
|
1678
1681
|
maxForwardTime: a,
|
|
@@ -1682,7 +1685,7 @@ function Xt(i) {
|
|
|
1682
1685
|
}, u)
|
|
1683
1686
|
);
|
|
1684
1687
|
}
|
|
1685
|
-
function
|
|
1688
|
+
function qr(o) {
|
|
1686
1689
|
var a = o, { className: e, onClick: t } = a, n = ne(a, ["className", "onClick"]);
|
|
1687
1690
|
const l = V(null), u = f((x) => x.exitFullscreen), i = f((x) => x.isFullscreen), c = f((x) => x.requestFullscreen), d = (x) => {
|
|
1688
1691
|
v() ? (y(), i ? u() : c()) : g(x);
|
|
@@ -1704,7 +1707,7 @@ function zr(o) {
|
|
|
1704
1707
|
}, n)
|
|
1705
1708
|
);
|
|
1706
1709
|
}
|
|
1707
|
-
function
|
|
1710
|
+
function Wr(u) {
|
|
1708
1711
|
var i = u, {
|
|
1709
1712
|
className: e,
|
|
1710
1713
|
maxForwardTime: t,
|
|
@@ -1734,7 +1737,7 @@ function qr(u) {
|
|
|
1734
1737
|
p.preventDefault(), p.stopPropagation(), d.current.single && (window.clearTimeout(d.current.single), d.current.single = null), N(), (v.current === null || v.current !== q) && (y.current = 0, v.current = q);
|
|
1735
1738
|
const te = q === "backward" ? n : t;
|
|
1736
1739
|
y.current = Math.min(
|
|
1737
|
-
y.current +
|
|
1740
|
+
y.current + zr,
|
|
1738
1741
|
te != null ? te : 1 / 0
|
|
1739
1742
|
), _(q, y.current), d.current.accumulate && window.clearTimeout(d.current.accumulate), d.current.accumulate = window.setTimeout(() => {
|
|
1740
1743
|
const W = y.current;
|
|
@@ -1783,7 +1786,7 @@ function qr(u) {
|
|
|
1783
1786
|
)
|
|
1784
1787
|
] });
|
|
1785
1788
|
}
|
|
1786
|
-
function
|
|
1789
|
+
function Zr() {
|
|
1787
1790
|
const e = f((c) => c.isPlaying), t = f((c) => c.pause), n = f((c) => c.getPauseTimeDiff), o = f((c) => c.play), a = A((c) => c.delay), l = A((c) => c.setDelay), u = A((c) => c.startDate), i = u ? u.getTime() : 0;
|
|
1788
1791
|
return /* @__PURE__ */ s.jsx(
|
|
1789
1792
|
Xt,
|
|
@@ -1809,9 +1812,9 @@ function Wr() {
|
|
|
1809
1812
|
}
|
|
1810
1813
|
);
|
|
1811
1814
|
}
|
|
1812
|
-
const
|
|
1813
|
-
playerButton:
|
|
1814
|
-
playerButtonCircle:
|
|
1815
|
+
const Kr = "_playerButton_izwqq_1", Yr = "_playerButtonCircle_izwqq_42", xt = {
|
|
1816
|
+
playerButton: Kr,
|
|
1817
|
+
playerButtonCircle: Yr
|
|
1815
1818
|
}, le = Ne(
|
|
1816
1819
|
(a, o) => {
|
|
1817
1820
|
var l = a, { shape: e = "circle", className: t } = l, n = ne(l, ["shape", "className"]);
|
|
@@ -1820,12 +1823,12 @@ const Zr = "_playerButton_izwqq_1", Kr = "_playerButtonCircle_izwqq_42", xt = {
|
|
|
1820
1823
|
}
|
|
1821
1824
|
);
|
|
1822
1825
|
le.displayName = "PlayerButton";
|
|
1823
|
-
const
|
|
1824
|
-
liveIndicator:
|
|
1825
|
-
liveIndicatorHasDelay:
|
|
1826
|
-
liveIndicatorNoDelay:
|
|
1826
|
+
const Xr = "_liveIndicator_1jczn_1", Gr = "_liveIndicatorHasDelay_1jczn_9", Jr = "_liveIndicatorNoDelay_1jczn_13", ke = {
|
|
1827
|
+
liveIndicator: Xr,
|
|
1828
|
+
liveIndicatorHasDelay: Gr,
|
|
1829
|
+
liveIndicatorNoDelay: Jr
|
|
1827
1830
|
};
|
|
1828
|
-
function
|
|
1831
|
+
function Qr(n) {
|
|
1829
1832
|
var o = n, { message: e } = o, t = ne(o, ["message"]);
|
|
1830
1833
|
const a = A((c) => c.delay), l = A((c) => c.setDelay), u = () => {
|
|
1831
1834
|
a && l(0);
|
|
@@ -1857,7 +1860,7 @@ function Jt() {
|
|
|
1857
1860
|
}
|
|
1858
1861
|
);
|
|
1859
1862
|
}
|
|
1860
|
-
function
|
|
1863
|
+
function eo() {
|
|
1861
1864
|
const e = f((i) => i.isPlaying), t = f((i) => i.pause), n = f((i) => i.getPauseTimeDiff), o = f((i) => i.play), a = A((i) => i.delay), l = A((i) => i.setDelay), u = () => {
|
|
1862
1865
|
if (e)
|
|
1863
1866
|
t();
|
|
@@ -1868,17 +1871,17 @@ function Qr() {
|
|
|
1868
1871
|
};
|
|
1869
1872
|
return /* @__PURE__ */ s.jsx(le, { onClick: u, children: e ? /* @__PURE__ */ s.jsx(Gt, {}) : /* @__PURE__ */ s.jsx(Jt, {}) });
|
|
1870
1873
|
}
|
|
1871
|
-
const
|
|
1872
|
-
progressSlider:
|
|
1873
|
-
tipContainer:
|
|
1874
|
-
tipContainerVisible:
|
|
1875
|
-
tipContainerHidden:
|
|
1876
|
-
tipContent:
|
|
1877
|
-
},
|
|
1878
|
-
sliderRoot:
|
|
1879
|
-
sliderTrack:
|
|
1880
|
-
sliderRange:
|
|
1881
|
-
sliderThumb:
|
|
1874
|
+
const to = "_progressSlider_hwzgf_1", no = "_tipContainer_hwzgf_7", ro = "_tipContainerVisible_hwzgf_17", oo = "_tipContainerHidden_hwzgf_22", io = "_tipContent_hwzgf_27", se = {
|
|
1875
|
+
progressSlider: to,
|
|
1876
|
+
tipContainer: no,
|
|
1877
|
+
tipContainerVisible: ro,
|
|
1878
|
+
tipContainerHidden: oo,
|
|
1879
|
+
tipContent: io
|
|
1880
|
+
}, so = "_sliderRoot_aeak6_1", ao = "_sliderTrack_aeak6_18", lo = "_sliderRange_aeak6_28", co = "_sliderThumb_aeak6_37", Ie = {
|
|
1881
|
+
sliderRoot: so,
|
|
1882
|
+
sliderTrack: ao,
|
|
1883
|
+
sliderRange: lo,
|
|
1884
|
+
sliderThumb: co
|
|
1882
1885
|
}, Ae = Ne((l, a) => {
|
|
1883
1886
|
var u = l, { max: e = 100, min: t = 0, className: n } = u, o = ne(u, ["max", "min", "className"]);
|
|
1884
1887
|
return /* @__PURE__ */ s.jsxs(
|
|
@@ -1915,7 +1918,7 @@ function Me(e) {
|
|
|
1915
1918
|
} : t;
|
|
1916
1919
|
}
|
|
1917
1920
|
const Tt = "vod-player-progress-bar";
|
|
1918
|
-
function
|
|
1921
|
+
function uo() {
|
|
1919
1922
|
const e = V(null), t = V(null), [n, o] = X(0), [a, l] = X(0), [u, i] = X(!1), [c, d] = X(-1), [g, y] = X(-1), v = A((D) => D.delay), x = A((D) => D.startDate), P = x ? x.getTime() : 0, b = (/* @__PURE__ */ new Date()).getTime(), E = A((D) => D.setDelay), N = f((D) => D.isPlaying), S = f((D) => D.addIdleLock), k = f((D) => D.removeIdleLock), _ = z(() => {
|
|
1920
1923
|
o(Wt(P, v)), l(br(P, b));
|
|
1921
1924
|
}, [v, b, P]), I = parseFloat(
|
|
@@ -1968,7 +1971,7 @@ function co() {
|
|
|
1968
1971
|
)
|
|
1969
1972
|
] });
|
|
1970
1973
|
}
|
|
1971
|
-
function
|
|
1974
|
+
function fo() {
|
|
1972
1975
|
return /* @__PURE__ */ s.jsx(
|
|
1973
1976
|
"svg",
|
|
1974
1977
|
{
|
|
@@ -1979,17 +1982,17 @@ function uo() {
|
|
|
1979
1982
|
}
|
|
1980
1983
|
);
|
|
1981
1984
|
}
|
|
1982
|
-
function
|
|
1985
|
+
function ho() {
|
|
1983
1986
|
const e = A((a) => a.startDate), t = A((a) => a.setDelay), n = e ? e.getTime() : 0, o = () => t(qt(n));
|
|
1984
|
-
return /* @__PURE__ */ s.jsx(le, { onClick: o, children: /* @__PURE__ */ s.jsx(
|
|
1987
|
+
return /* @__PURE__ */ s.jsx(le, { onClick: o, children: /* @__PURE__ */ s.jsx(fo, {}) });
|
|
1985
1988
|
}
|
|
1986
|
-
const
|
|
1987
|
-
viewersContainer:
|
|
1988
|
-
viewersIndicator:
|
|
1989
|
-
viewersIcon:
|
|
1990
|
-
viewersCount:
|
|
1989
|
+
const mo = "_viewersContainer_bsl3f_1", po = "_viewersIndicator_bsl3f_13", vo = "_viewersIcon_bsl3f_21", yo = "_viewersCount_bsl3f_25", De = {
|
|
1990
|
+
viewersContainer: mo,
|
|
1991
|
+
viewersIndicator: po,
|
|
1992
|
+
viewersIcon: vo,
|
|
1993
|
+
viewersCount: yo
|
|
1991
1994
|
};
|
|
1992
|
-
function
|
|
1995
|
+
function go() {
|
|
1993
1996
|
const e = A((t) => t.viewerCount);
|
|
1994
1997
|
return e ? /* @__PURE__ */ s.jsxs("div", { className: De.viewersContainer, children: [
|
|
1995
1998
|
/* @__PURE__ */ s.jsx("span", { className: De.viewersIndicator }),
|
|
@@ -2035,17 +2038,17 @@ function Qt() {
|
|
|
2035
2038
|
}
|
|
2036
2039
|
);
|
|
2037
2040
|
}
|
|
2038
|
-
const
|
|
2039
|
-
playerContainer:
|
|
2040
|
-
controlsTop:
|
|
2041
|
-
controlsBottom:
|
|
2042
|
-
controlsContainer:
|
|
2043
|
-
controlsRow:
|
|
2044
|
-
controlsSection:
|
|
2045
|
-
controlsSectionStart:
|
|
2046
|
-
controlsSectionEnd:
|
|
2041
|
+
const wo = "_playerContainer_146tx_1", _o = "_controlsTop_146tx_12", xo = "_controlsBottom_146tx_29", To = "_controlsContainer_146tx_45", Co = "_controlsRow_146tx_61", Eo = "_controlsSection_146tx_68", Ro = "_controlsSectionStart_146tx_78", bo = "_controlsSectionEnd_146tx_82", B = {
|
|
2042
|
+
playerContainer: wo,
|
|
2043
|
+
controlsTop: _o,
|
|
2044
|
+
controlsBottom: xo,
|
|
2045
|
+
controlsContainer: To,
|
|
2046
|
+
controlsRow: Co,
|
|
2047
|
+
controlsSection: Eo,
|
|
2048
|
+
controlsSectionStart: Ro,
|
|
2049
|
+
controlsSectionEnd: bo
|
|
2047
2050
|
};
|
|
2048
|
-
function
|
|
2051
|
+
function So() {
|
|
2049
2052
|
return /* @__PURE__ */ s.jsx(
|
|
2050
2053
|
"svg",
|
|
2051
2054
|
{
|
|
@@ -2056,7 +2059,7 @@ function bo() {
|
|
|
2056
2059
|
}
|
|
2057
2060
|
);
|
|
2058
2061
|
}
|
|
2059
|
-
function
|
|
2062
|
+
function jo() {
|
|
2060
2063
|
return /* @__PURE__ */ s.jsx(
|
|
2061
2064
|
"svg",
|
|
2062
2065
|
{
|
|
@@ -2082,18 +2085,18 @@ function en() {
|
|
|
2082
2085
|
return ar(d, i);
|
|
2083
2086
|
}, [e, i, u]), F(() => {
|
|
2084
2087
|
l(!0);
|
|
2085
|
-
}, [l]), /* @__PURE__ */ s.jsx(le, { onClick: c, children: n ? /* @__PURE__ */ s.jsx(
|
|
2088
|
+
}, [l]), /* @__PURE__ */ s.jsx(le, { onClick: c, children: n ? /* @__PURE__ */ s.jsx(jo, {}) : /* @__PURE__ */ s.jsx(So, {}) });
|
|
2086
2089
|
}
|
|
2087
|
-
const
|
|
2088
|
-
idleCheckContainer:
|
|
2089
|
-
idleCheckContainerIdle:
|
|
2090
|
-
idleCheckContainerActive:
|
|
2091
|
-
},
|
|
2090
|
+
const Lo = "_idleCheckContainer_iz9tu_1", Po = "_idleCheckContainerIdle_iz9tu_10", ko = "_idleCheckContainerActive_iz9tu_15", Ze = {
|
|
2091
|
+
idleCheckContainer: Lo,
|
|
2092
|
+
idleCheckContainerIdle: Po,
|
|
2093
|
+
idleCheckContainerActive: ko
|
|
2094
|
+
}, Io = 5 * 1e3;
|
|
2092
2095
|
function tn({ children: e }) {
|
|
2093
2096
|
const t = V(null), n = f((v) => v.isIdle), o = f((v) => v.setIsIdle), a = V(null), u = f((v) => v.idleLocks).size, i = f((v) => v.eventEmitter), c = z(() => {
|
|
2094
2097
|
a.current !== null && (window.clearTimeout(a.current), a.current = null);
|
|
2095
2098
|
}, []), d = z(() => {
|
|
2096
|
-
c(), a.current = window.setTimeout(() => o(!0),
|
|
2099
|
+
c(), a.current = window.setTimeout(() => o(!0), Io);
|
|
2097
2100
|
}, [c]);
|
|
2098
2101
|
F(() => (o(!1), d(), () => {
|
|
2099
2102
|
c();
|
|
@@ -2123,13 +2126,13 @@ function tn({ children: e }) {
|
|
|
2123
2126
|
const g = n && !u, y = `${Ze.idleCheckContainer} ${g ? Ze.idleCheckContainerIdle : Ze.idleCheckContainerActive}`;
|
|
2124
2127
|
return /* @__PURE__ */ s.jsx("div", { ref: t, className: y, children: e });
|
|
2125
2128
|
}
|
|
2126
|
-
const
|
|
2127
|
-
spinner:
|
|
2129
|
+
const Do = "_spinner_oo4hi_10", Fo = {
|
|
2130
|
+
spinner: Do
|
|
2128
2131
|
};
|
|
2129
|
-
function
|
|
2130
|
-
return /* @__PURE__ */ s.jsx("div", L({ className:
|
|
2132
|
+
function Mo(e) {
|
|
2133
|
+
return /* @__PURE__ */ s.jsx("div", L({ className: Fo.spinner }, e));
|
|
2131
2134
|
}
|
|
2132
|
-
function
|
|
2135
|
+
function No(e, t = 500) {
|
|
2133
2136
|
const [n, o] = X(e);
|
|
2134
2137
|
return F(() => {
|
|
2135
2138
|
const a = window.setTimeout(() => o(e), t);
|
|
@@ -2138,15 +2141,15 @@ function Mo(e, t = 500) {
|
|
|
2138
2141
|
};
|
|
2139
2142
|
}, [e, t]), n;
|
|
2140
2143
|
}
|
|
2141
|
-
const
|
|
2142
|
-
loadingContainer:
|
|
2144
|
+
const Vo = "_loadingContainer_v9v7r_1", Ao = {
|
|
2145
|
+
loadingContainer: Vo
|
|
2143
2146
|
};
|
|
2144
2147
|
function nn(n) {
|
|
2145
2148
|
var o = n, { style: e } = o, t = ne(o, ["style"]);
|
|
2146
2149
|
const a = f((u) => u.isLoading);
|
|
2147
|
-
return
|
|
2150
|
+
return No(a, 100) ? /* @__PURE__ */ s.jsx("div", he(L({ className: Ao.loadingContainer, style: e }, t), { children: /* @__PURE__ */ s.jsx(Mo, {}) })) : null;
|
|
2148
2151
|
}
|
|
2149
|
-
function
|
|
2152
|
+
function Oo() {
|
|
2150
2153
|
return /* @__PURE__ */ s.jsx(
|
|
2151
2154
|
"svg",
|
|
2152
2155
|
{
|
|
@@ -2157,7 +2160,7 @@ function Ao() {
|
|
|
2157
2160
|
}
|
|
2158
2161
|
);
|
|
2159
2162
|
}
|
|
2160
|
-
function
|
|
2163
|
+
function Ho() {
|
|
2161
2164
|
return /* @__PURE__ */ s.jsx(
|
|
2162
2165
|
"svg",
|
|
2163
2166
|
{
|
|
@@ -2168,14 +2171,14 @@ function Oo() {
|
|
|
2168
2171
|
}
|
|
2169
2172
|
);
|
|
2170
2173
|
}
|
|
2171
|
-
const
|
|
2172
|
-
dropdownMenuContent:
|
|
2173
|
-
dropdownMenuItem:
|
|
2174
|
-
scrollAreaRoot:
|
|
2175
|
-
scrollAreaViewport:
|
|
2176
|
-
scrollAreaScrollbar:
|
|
2177
|
-
scrollAreaThumb:
|
|
2178
|
-
},
|
|
2174
|
+
const $o = "_dropdownMenuContent_b7j6b_1", Uo = "_dropdownMenuItem_b7j6b_83", Bo = "_scrollAreaRoot_b7j6b_125", zo = "_scrollAreaViewport_b7j6b_133", qo = "_scrollAreaScrollbar_b7j6b_141", Wo = "_scrollAreaThumb_b7j6b_168", pe = {
|
|
2175
|
+
dropdownMenuContent: $o,
|
|
2176
|
+
dropdownMenuItem: Uo,
|
|
2177
|
+
scrollAreaRoot: Bo,
|
|
2178
|
+
scrollAreaViewport: zo,
|
|
2179
|
+
scrollAreaScrollbar: qo,
|
|
2180
|
+
scrollAreaThumb: Wo
|
|
2181
|
+
}, Zo = Te.Root, Ko = Te.Trigger, Yo = Te.Portal, rn = Ne((l, a) => {
|
|
2179
2182
|
var u = l, { sideOffset: e = 4, className: t, children: n } = u, o = ne(u, ["sideOffset", "className", "children"]);
|
|
2180
2183
|
return /* @__PURE__ */ s.jsx(
|
|
2181
2184
|
Te.Content,
|
|
@@ -2241,22 +2244,22 @@ function sn() {
|
|
|
2241
2244
|
},
|
|
2242
2245
|
[o, a]
|
|
2243
2246
|
);
|
|
2244
|
-
return /* @__PURE__ */ s.jsxs(
|
|
2245
|
-
/* @__PURE__ */ s.jsx(
|
|
2246
|
-
/* @__PURE__ */ s.jsx(
|
|
2247
|
+
return /* @__PURE__ */ s.jsxs(Zo, { open: e, onOpenChange: i, children: [
|
|
2248
|
+
/* @__PURE__ */ s.jsx(Ko, { asChild: !0, children: /* @__PURE__ */ s.jsx(le, { children: /* @__PURE__ */ s.jsx(Ho, {}) }) }),
|
|
2249
|
+
/* @__PURE__ */ s.jsx(Yo, { container: n.current, children: /* @__PURE__ */ s.jsx(rn, { side: "top", align: "end", children: l == null ? void 0 : l.map((c) => /* @__PURE__ */ s.jsxs(
|
|
2247
2250
|
on,
|
|
2248
2251
|
{
|
|
2249
2252
|
onClick: () => u(c.value),
|
|
2250
2253
|
children: [
|
|
2251
2254
|
c.label,
|
|
2252
|
-
c.selected && /* @__PURE__ */ s.jsx(
|
|
2255
|
+
c.selected && /* @__PURE__ */ s.jsx(Oo, {})
|
|
2253
2256
|
]
|
|
2254
2257
|
},
|
|
2255
2258
|
c.sid
|
|
2256
2259
|
)) }) })
|
|
2257
2260
|
] });
|
|
2258
2261
|
}
|
|
2259
|
-
function
|
|
2262
|
+
function Xo() {
|
|
2260
2263
|
return /* @__PURE__ */ s.jsx(
|
|
2261
2264
|
"svg",
|
|
2262
2265
|
{
|
|
@@ -2267,7 +2270,7 @@ function Yo() {
|
|
|
2267
2270
|
}
|
|
2268
2271
|
);
|
|
2269
2272
|
}
|
|
2270
|
-
function
|
|
2273
|
+
function Go() {
|
|
2271
2274
|
return /* @__PURE__ */ s.jsx(
|
|
2272
2275
|
"svg",
|
|
2273
2276
|
{
|
|
@@ -2278,7 +2281,7 @@ function Xo() {
|
|
|
2278
2281
|
}
|
|
2279
2282
|
);
|
|
2280
2283
|
}
|
|
2281
|
-
function
|
|
2284
|
+
function Jo() {
|
|
2282
2285
|
return /* @__PURE__ */ s.jsx(
|
|
2283
2286
|
"svg",
|
|
2284
2287
|
{
|
|
@@ -2289,9 +2292,9 @@ function Go() {
|
|
|
2289
2292
|
}
|
|
2290
2293
|
);
|
|
2291
2294
|
}
|
|
2292
|
-
const
|
|
2293
|
-
volumeContainer:
|
|
2294
|
-
volumeSlider:
|
|
2295
|
+
const Qo = "_volumeContainer_4d6jg_1", ei = "_volumeSlider_4d6jg_8", Et = {
|
|
2296
|
+
volumeContainer: Qo,
|
|
2297
|
+
volumeSlider: ei
|
|
2295
2298
|
}, Rt = "volume";
|
|
2296
2299
|
function an() {
|
|
2297
2300
|
const e = f((i) => i.setVolume), t = f((i) => i.volume), n = f((i) => i.addIdleLock), o = f((i) => i.removeIdleLock), a = (i) => {
|
|
@@ -2300,7 +2303,7 @@ function an() {
|
|
|
2300
2303
|
o(Rt);
|
|
2301
2304
|
}, u = () => e(t ? 0 : 100);
|
|
2302
2305
|
return /* @__PURE__ */ s.jsxs("div", { className: Et.volumeContainer, children: [
|
|
2303
|
-
/* @__PURE__ */ s.jsx(le, { onClick: u, className: "shrink-0", children: t ? t > 50 ? /* @__PURE__ */ s.jsx(
|
|
2306
|
+
/* @__PURE__ */ s.jsx(le, { onClick: u, className: "shrink-0", children: t ? t > 50 ? /* @__PURE__ */ s.jsx(Xo, {}) : /* @__PURE__ */ s.jsx(Go, {}) : /* @__PURE__ */ s.jsx(Jo, {}) }),
|
|
2304
2307
|
/* @__PURE__ */ s.jsx("div", { className: Et.volumeSlider, children: /* @__PURE__ */ s.jsx(
|
|
2305
2308
|
Ae,
|
|
2306
2309
|
{
|
|
@@ -2311,10 +2314,10 @@ function an() {
|
|
|
2311
2314
|
) })
|
|
2312
2315
|
] });
|
|
2313
2316
|
}
|
|
2314
|
-
function
|
|
2315
|
-
return /* @__PURE__ */ s.jsx(kr, { children: /* @__PURE__ */ s.jsx(
|
|
2317
|
+
function yi(e) {
|
|
2318
|
+
return /* @__PURE__ */ s.jsx(kr, { children: /* @__PURE__ */ s.jsx(ti, L({}, e)) });
|
|
2316
2319
|
}
|
|
2317
|
-
function
|
|
2320
|
+
function ti({ url: e, messages: t, onEvent: n }) {
|
|
2318
2321
|
const o = f((a) => a.containerRef);
|
|
2319
2322
|
return /* @__PURE__ */ s.jsxs(
|
|
2320
2323
|
"div",
|
|
@@ -2343,18 +2346,18 @@ function ei({ url: e, messages: t, onEvent: n }) {
|
|
|
2343
2346
|
/* @__PURE__ */ s.jsx(Qt, {}),
|
|
2344
2347
|
/* @__PURE__ */ s.jsx(nn, {}),
|
|
2345
2348
|
/* @__PURE__ */ s.jsxs(tn, { children: [
|
|
2346
|
-
/* @__PURE__ */ s.jsx(
|
|
2347
|
-
/* @__PURE__ */ s.jsx("div", { className: B.controlsTop, children: /* @__PURE__ */ s.jsx("div", { className: B.controlsContainer, children: /* @__PURE__ */ s.jsx("div", { className: B.controlsRow, children: /* @__PURE__ */ s.jsx(
|
|
2349
|
+
/* @__PURE__ */ s.jsx(Zr, {}),
|
|
2350
|
+
/* @__PURE__ */ s.jsx("div", { className: B.controlsTop, children: /* @__PURE__ */ s.jsx("div", { className: B.controlsContainer, children: /* @__PURE__ */ s.jsx("div", { className: B.controlsRow, children: /* @__PURE__ */ s.jsx(go, {}) }) }) }),
|
|
2348
2351
|
/* @__PURE__ */ s.jsx("div", { className: B.controlsBottom, children: /* @__PURE__ */ s.jsxs("div", { className: B.controlsContainer, children: [
|
|
2349
|
-
/* @__PURE__ */ s.jsx(
|
|
2352
|
+
/* @__PURE__ */ s.jsx(uo, {}),
|
|
2350
2353
|
/* @__PURE__ */ s.jsxs("div", { className: B.controlsRow, children: [
|
|
2351
2354
|
/* @__PURE__ */ s.jsxs(
|
|
2352
2355
|
"div",
|
|
2353
2356
|
{
|
|
2354
2357
|
className: `${B.controlsSection} ${B.controlsSectionStart}`,
|
|
2355
2358
|
children: [
|
|
2356
|
-
/* @__PURE__ */ s.jsx(
|
|
2357
|
-
/* @__PURE__ */ s.jsx(
|
|
2359
|
+
/* @__PURE__ */ s.jsx(eo, {}),
|
|
2360
|
+
/* @__PURE__ */ s.jsx(ho, {}),
|
|
2358
2361
|
/* @__PURE__ */ s.jsx(an, {})
|
|
2359
2362
|
]
|
|
2360
2363
|
}
|
|
@@ -2364,7 +2367,7 @@ function ei({ url: e, messages: t, onEvent: n }) {
|
|
|
2364
2367
|
{
|
|
2365
2368
|
className: `${B.controlsSection} ${B.controlsSectionEnd}`,
|
|
2366
2369
|
children: [
|
|
2367
|
-
/* @__PURE__ */ s.jsx(
|
|
2370
|
+
/* @__PURE__ */ s.jsx(Qr, { message: t == null ? void 0 : t.live }),
|
|
2368
2371
|
/* @__PURE__ */ s.jsx(sn, {}),
|
|
2369
2372
|
/* @__PURE__ */ s.jsx(en, {})
|
|
2370
2373
|
]
|
|
@@ -2383,7 +2386,7 @@ function ei({ url: e, messages: t, onEvent: n }) {
|
|
|
2383
2386
|
}
|
|
2384
2387
|
);
|
|
2385
2388
|
}
|
|
2386
|
-
function
|
|
2389
|
+
function ni() {
|
|
2387
2390
|
const e = f((u) => u.isPlaying), t = f((u) => u.pause), n = f((u) => u.play), o = f((u) => u.currentTime), a = f((u) => u.duration), l = f((u) => u.seek);
|
|
2388
2391
|
return /* @__PURE__ */ s.jsx(
|
|
2389
2392
|
Xt,
|
|
@@ -2404,14 +2407,14 @@ function ti() {
|
|
|
2404
2407
|
}
|
|
2405
2408
|
);
|
|
2406
2409
|
}
|
|
2407
|
-
function
|
|
2410
|
+
function ri() {
|
|
2408
2411
|
const e = f((a) => a.isPlaying), t = f((a) => a.pause), n = f((a) => a.play), o = () => {
|
|
2409
2412
|
e ? t() : n();
|
|
2410
2413
|
};
|
|
2411
2414
|
return /* @__PURE__ */ s.jsx(le, { onClick: o, children: e ? /* @__PURE__ */ s.jsx(Gt, {}) : /* @__PURE__ */ s.jsx(Jt, {}) });
|
|
2412
2415
|
}
|
|
2413
2416
|
const bt = "vod-player-progress-bar";
|
|
2414
|
-
function
|
|
2417
|
+
function oi() {
|
|
2415
2418
|
const e = V(null), t = V(null), [n, o] = X(!1), [a, l] = X(-1), [u, i] = X(-1), c = f((k) => k.currentTime), d = f((k) => k.duration), g = f((k) => k.seek), y = f((k) => k.addIdleLock), v = f((k) => k.removeIdleLock), x = parseFloat(
|
|
2416
2419
|
(d ? (u !== -1 ? u : c) / d * 100 : 0).toFixed(1)
|
|
2417
2420
|
), P = (k) => {
|
|
@@ -2455,12 +2458,12 @@ function ri() {
|
|
|
2455
2458
|
)
|
|
2456
2459
|
] });
|
|
2457
2460
|
}
|
|
2458
|
-
const
|
|
2459
|
-
remainingTimeContainer:
|
|
2460
|
-
remainingTime:
|
|
2461
|
-
remainingSeparator:
|
|
2461
|
+
const ii = "_remainingTimeContainer_1yyhb_1", si = "_remainingTime_1yyhb_1", ai = "_remainingSeparator_1yyhb_17", Fe = {
|
|
2462
|
+
remainingTimeContainer: ii,
|
|
2463
|
+
remainingTime: si,
|
|
2464
|
+
remainingSeparator: ai
|
|
2462
2465
|
};
|
|
2463
|
-
function
|
|
2466
|
+
function li() {
|
|
2464
2467
|
const e = f((n) => n.currentTime), t = f((n) => n.duration);
|
|
2465
2468
|
return /* @__PURE__ */ s.jsxs("div", { className: Fe.remainingTimeContainer, children: [
|
|
2466
2469
|
/* @__PURE__ */ s.jsx("p", { className: Fe.remainingTime, children: xe(e) }),
|
|
@@ -2468,7 +2471,7 @@ function ai() {
|
|
|
2468
2471
|
/* @__PURE__ */ s.jsx("p", { className: Fe.remainingTime, children: xe(t) })
|
|
2469
2472
|
] });
|
|
2470
2473
|
}
|
|
2471
|
-
function
|
|
2474
|
+
function ci({ callback: e }) {
|
|
2472
2475
|
const t = f((n) => n.eventEmitter);
|
|
2473
2476
|
return F(() => {
|
|
2474
2477
|
const n = (o) => e("timeUpdate", o);
|
|
@@ -2477,7 +2480,7 @@ function li({ callback: e }) {
|
|
|
2477
2480
|
};
|
|
2478
2481
|
}, [e, t]), /* @__PURE__ */ s.jsx(zt, { callback: e });
|
|
2479
2482
|
}
|
|
2480
|
-
function
|
|
2483
|
+
function ui() {
|
|
2481
2484
|
const e = f((i) => i.currentTime), t = f((i) => i.duration), n = f((i) => i.isPlaying), o = f((i) => i.pause), a = f((i) => i.play), l = f((i) => i.seek), u = z(
|
|
2482
2485
|
(i) => {
|
|
2483
2486
|
let c = !1;
|
|
@@ -2502,10 +2505,10 @@ function ci() {
|
|
|
2502
2505
|
document.removeEventListener("keydown", u);
|
|
2503
2506
|
}), [u]), /* @__PURE__ */ s.jsx(Zt, {});
|
|
2504
2507
|
}
|
|
2505
|
-
function
|
|
2506
|
-
return /* @__PURE__ */ s.jsx(Kt, { children: /* @__PURE__ */ s.jsx(
|
|
2508
|
+
function gi(e) {
|
|
2509
|
+
return /* @__PURE__ */ s.jsx(Kt, { children: /* @__PURE__ */ s.jsx(di, L({}, e)) });
|
|
2507
2510
|
}
|
|
2508
|
-
function
|
|
2511
|
+
function di({ url: e, messages: t, onEvent: n, startTime: o }) {
|
|
2509
2512
|
const a = f((u) => u.setStartTime), l = f((u) => u.containerRef);
|
|
2510
2513
|
return F(() => {
|
|
2511
2514
|
o && a(o);
|
|
@@ -2519,18 +2522,18 @@ function ui({ url: e, messages: t, onEvent: n, startTime: o }) {
|
|
|
2519
2522
|
/* @__PURE__ */ s.jsx(Qt, {}),
|
|
2520
2523
|
/* @__PURE__ */ s.jsx(nn, {}),
|
|
2521
2524
|
/* @__PURE__ */ s.jsxs(tn, { children: [
|
|
2522
|
-
/* @__PURE__ */ s.jsx(
|
|
2525
|
+
/* @__PURE__ */ s.jsx(ni, {}),
|
|
2523
2526
|
/* @__PURE__ */ s.jsx("div", { className: B.controlsBottom, children: /* @__PURE__ */ s.jsxs("div", { className: B.controlsContainer, children: [
|
|
2524
|
-
/* @__PURE__ */ s.jsx(
|
|
2527
|
+
/* @__PURE__ */ s.jsx(oi, {}),
|
|
2525
2528
|
/* @__PURE__ */ s.jsxs("div", { className: B.controlsRow, children: [
|
|
2526
2529
|
/* @__PURE__ */ s.jsxs(
|
|
2527
2530
|
"div",
|
|
2528
2531
|
{
|
|
2529
2532
|
className: `${B.controlsSection} ${B.controlsSectionStart}`,
|
|
2530
2533
|
children: [
|
|
2531
|
-
/* @__PURE__ */ s.jsx(
|
|
2534
|
+
/* @__PURE__ */ s.jsx(ri, {}),
|
|
2532
2535
|
/* @__PURE__ */ s.jsx(an, {}),
|
|
2533
|
-
/* @__PURE__ */ s.jsx(
|
|
2536
|
+
/* @__PURE__ */ s.jsx(li, {})
|
|
2534
2537
|
]
|
|
2535
2538
|
}
|
|
2536
2539
|
),
|
|
@@ -2547,14 +2550,14 @@ function ui({ url: e, messages: t, onEvent: n, startTime: o }) {
|
|
|
2547
2550
|
] })
|
|
2548
2551
|
] }) })
|
|
2549
2552
|
] }),
|
|
2550
|
-
/* @__PURE__ */ s.jsx(
|
|
2551
|
-
n && /* @__PURE__ */ s.jsx(
|
|
2553
|
+
/* @__PURE__ */ s.jsx(ui, {}),
|
|
2554
|
+
n && /* @__PURE__ */ s.jsx(ci, { callback: n })
|
|
2552
2555
|
]
|
|
2553
2556
|
}
|
|
2554
2557
|
);
|
|
2555
2558
|
}
|
|
2556
2559
|
export {
|
|
2557
|
-
|
|
2558
|
-
|
|
2560
|
+
yi as LivePlayer,
|
|
2561
|
+
gi as VodPlayer
|
|
2559
2562
|
};
|
|
2560
2563
|
//# sourceMappingURL=react-video-player.es.js.map
|