softbuilders-react-video-player 1.3.17 → 1.3.19
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/BufferTracker/index.js +8 -6
- package/dist/components/BufferTracker/index.js.map +1 -1
- package/dist/components/BufferTracker/index.tsx +7 -5
- package/dist/components/ControlBar/index.js +1 -1
- package/dist/components/ControlBar/index.js.map +1 -1
- package/dist/components/ControlBar/index.tsx +1 -20
- package/dist/components/CurrentTimeTracker/index.js +9 -7
- package/dist/components/CurrentTimeTracker/index.js.map +1 -1
- package/dist/components/CurrentTimeTracker/index.tsx +9 -7
- package/dist/components/SoftBuildersVideoPlayer/index.d.ts +2 -1
- package/dist/components/SoftBuildersVideoPlayer/index.js +4 -3
- package/dist/components/SoftBuildersVideoPlayer/index.js.map +1 -1
- package/dist/components/SoftBuildersVideoPlayer/index.tsx +5 -1
- package/dist/components/VideoPlayerComponent/index.d.ts +2 -1
- package/dist/components/VideoPlayerComponent/index.js +23 -1
- package/dist/components/VideoPlayerComponent/index.js.map +1 -1
- package/dist/components/VideoPlayerComponent/index.tsx +27 -2
- package/dist/components/VolumeSlider/index.js +21 -10
- package/dist/components/VolumeSlider/index.js.map +1 -1
- package/dist/components/VolumeSlider/index.tsx +28 -16
- package/dist/components/icons/BackwardIcon.tsx +20 -20
- package/dist/components/icons/CheckedIcon.tsx +20 -20
- package/dist/components/icons/ClosedNoteIcon.tsx +17 -17
- package/dist/components/icons/ForwardIcon.tsx +20 -20
- package/dist/components/icons/FullScreenIcon.tsx +20 -20
- package/dist/components/icons/LeftArrowIcon.tsx +20 -20
- package/dist/components/icons/MuteIcon.tsx +21 -21
- package/dist/components/icons/NoteIcon.tsx +17 -17
- package/dist/components/icons/OpenNoteIcon.tsx +17 -17
- package/dist/components/icons/PauseIcon.tsx +14 -14
- package/dist/components/icons/PlayIcon.tsx +20 -20
- package/dist/components/icons/SettingsIcon.tsx +17 -17
- package/dist/components/icons/SkillamiIcon.tsx +25 -25
- package/dist/components/icons/SubIcon.tsx +27 -27
- package/dist/components/icons/SubtitlesIcon.tsx +14 -14
- package/dist/components/icons/UnmuteIcon.tsx +17 -17
- package/dist/components/icons/VolumeHigh.tsx +15 -15
- package/dist/components/icons/VolumeLow.tsx +14 -14
- package/dist/components/icons/VolumeMute.tsx +25 -25
- package/dist/components/icons/VolumeVLow.tsx +14 -14
- package/dist/components/icons/index.ts +20 -20
- package/dist/index.d.mts +2 -1
- package/dist/index.mjs +44 -21
- package/package.json +1 -1
- package/dist/components/icons/VolumeHighIcon.d.ts +0 -3
- package/dist/components/icons/VolumeHighIcon.js +0 -4
- package/dist/components/icons/VolumeHighIcon.js.map +0 -1
- package/dist/components/icons/VolumeHighIcon.tsx +0 -16
- package/dist/components/icons/VolumeIconHigh.d.ts +0 -3
- package/dist/components/icons/VolumeIconHigh.js +0 -4
- package/dist/components/icons/VolumeIconHigh.js.map +0 -1
- package/dist/components/icons/VolumeIconHigh.tsx +0 -16
- package/dist/components/icons/VolumeIconLow copy.d.ts +0 -3
- package/dist/components/icons/VolumeIconLow copy.js +0 -4
- package/dist/components/icons/VolumeIconLow copy.js.map +0 -1
- package/dist/components/icons/VolumeIconLow copy.tsx +0 -17
- package/dist/components/icons/VolumeLowIcon.d.ts +0 -3
- package/dist/components/icons/VolumeLowIcon.js +0 -4
- package/dist/components/icons/VolumeLowIcon.js.map +0 -1
- package/dist/components/icons/VolumeLowIcon.tsx +0 -15
@@ -1,27 +1,27 @@
|
|
1
|
-
import type { SVGProps } from "react";
|
2
|
-
const SvgSubIcon = (props: SVGProps<SVGSVGElement>) => (
|
3
|
-
<svg
|
4
|
-
xmlns="http://www.w3.org/2000/svg"
|
5
|
-
width="1em"
|
6
|
-
height="1em"
|
7
|
-
fill="none"
|
8
|
-
viewBox="0 0 15 15"
|
9
|
-
{...props}
|
10
|
-
>
|
11
|
-
<path
|
12
|
-
stroke="#D1D5DB"
|
13
|
-
strokeLinecap="round"
|
14
|
-
strokeLinejoin="round"
|
15
|
-
strokeWidth={1.5}
|
16
|
-
d="M1.25 7.5c0-2.487 0-3.731.658-4.561q.159-.2.346-.367c.785-.697 1.96-.697 4.309-.697h1.875c2.349 0 3.523 0 4.307.697q.19.168.347.367c.658.83.658 2.074.658 4.561s0 3.731-.658 4.561q-.157.2-.347.367c-.784.697-1.957.697-4.307.697H6.562c-2.349 0-3.523 0-4.308-.697a3 3 0 0 1-.346-.367c-.658-.83-.658-2.073-.658-4.561"
|
17
|
-
/>
|
18
|
-
<path
|
19
|
-
stroke="#D1D5DB"
|
20
|
-
strokeLinecap="round"
|
21
|
-
strokeLinejoin="round"
|
22
|
-
strokeWidth={1.5}
|
23
|
-
d="M6.563 5.625H6.25c-.582 0-.874 0-1.103.095a1.25 1.25 0 0 0-.677.677c-.095.23-.095.52-.095 1.103 0 .582 0 .874.095 1.103a1.25 1.25 0 0 0 .677.677c.23.095.52.095 1.103.095h.313m4.062-3.75h-.312c-.583 0-.874 0-1.104.095a1.25 1.25 0 0 0-.676.677c-.095.23-.095.52-.095 1.103 0 .582 0 .874.095 1.103a1.25 1.25 0 0 0 .676.677c.23.095.521.095 1.104.095h.312"
|
24
|
-
/>
|
25
|
-
</svg>
|
26
|
-
);
|
27
|
-
export default SvgSubIcon;
|
1
|
+
import type { SVGProps } from "react";
|
2
|
+
const SvgSubIcon = (props: SVGProps<SVGSVGElement>) => (
|
3
|
+
<svg
|
4
|
+
xmlns="http://www.w3.org/2000/svg"
|
5
|
+
width="1em"
|
6
|
+
height="1em"
|
7
|
+
fill="none"
|
8
|
+
viewBox="0 0 15 15"
|
9
|
+
{...props}
|
10
|
+
>
|
11
|
+
<path
|
12
|
+
stroke="#D1D5DB"
|
13
|
+
strokeLinecap="round"
|
14
|
+
strokeLinejoin="round"
|
15
|
+
strokeWidth={1.5}
|
16
|
+
d="M1.25 7.5c0-2.487 0-3.731.658-4.561q.159-.2.346-.367c.785-.697 1.96-.697 4.309-.697h1.875c2.349 0 3.523 0 4.307.697q.19.168.347.367c.658.83.658 2.074.658 4.561s0 3.731-.658 4.561q-.157.2-.347.367c-.784.697-1.957.697-4.307.697H6.562c-2.349 0-3.523 0-4.308-.697a3 3 0 0 1-.346-.367c-.658-.83-.658-2.073-.658-4.561"
|
17
|
+
/>
|
18
|
+
<path
|
19
|
+
stroke="#D1D5DB"
|
20
|
+
strokeLinecap="round"
|
21
|
+
strokeLinejoin="round"
|
22
|
+
strokeWidth={1.5}
|
23
|
+
d="M6.563 5.625H6.25c-.582 0-.874 0-1.103.095a1.25 1.25 0 0 0-.677.677c-.095.23-.095.52-.095 1.103 0 .582 0 .874.095 1.103a1.25 1.25 0 0 0 .677.677c.23.095.52.095 1.103.095h.313m4.062-3.75h-.312c-.583 0-.874 0-1.104.095a1.25 1.25 0 0 0-.676.677c-.095.23-.095.52-.095 1.103 0 .582 0 .874.095 1.103a1.25 1.25 0 0 0 .676.677c.23.095.521.095 1.104.095h.312"
|
24
|
+
/>
|
25
|
+
</svg>
|
26
|
+
);
|
27
|
+
export default SvgSubIcon;
|
@@ -1,14 +1,14 @@
|
|
1
|
-
import type { SVGProps } from "react";
|
2
|
-
const SvgSubtitlesIcon = (props: SVGProps<SVGSVGElement>) => (
|
3
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" {...props}>
|
4
|
-
<path
|
5
|
-
fill="#FFF"
|
6
|
-
d="m78.649 64.733 4.772-.014c4.355-.012 8.711-.012 13.067-.01 4.703 0 9.407-.01 14.11-.02q13.815-.023 27.629-.023 11.23-.001 22.463-.012 31.861-.026 63.724-.025h6.94c18.57.001 37.138-.018 55.707-.046q28.618-.043 57.235-.04c10.706 0 21.413-.006 32.119-.027q13.673-.028 27.347-.009c4.647.006 9.295.007 13.943-.01q6.39-.024 12.783.004 2.303.005 4.605-.012c17.985-.122 33.209 4.858 46.137 17.55 8.927 9.239 14.882 21.979 14.901 34.934l.012 2.976-.003 3.246.01 3.467q.01 5.763.011 11.526l.015 8.254q.02 11.222.024 22.445l.012 14.022q.019 19.423.026 38.845v5.027l.002 5.048v2.53q.009 20.274.046 40.55.035 20.83.037 41.661-.001 11.69.025 23.38.023 9.956.012 19.913-.006 5.075.011 10.15c.013 3.677.007 7.353-.004 11.03l.025 3.206c-.1 15.234-5.618 28.587-16.181 39.571L478 426l-1.71 1.742c-12.91 12.154-30.359 13.722-47.23 13.639q-2.341.005-4.684.014c-4.25.013-8.502.007-12.753-.003-4.6-.007-9.2.004-13.8.012-8.996.013-17.991.01-26.987.002a15973 15973 0 0 0-25.105-.003q-3.18 0-6.358.003c-19.85.008-39.7-.002-59.55-.018a31884 31884 0 0 0-51.037.003 46445 46445 0 0 1-65.678.01l-3.148-.001q-10.951-.003-21.904.009-13.356.013-26.712-.01c-4.539-.008-9.077-.011-13.616-.001q-6.243.013-12.487-.012a631 631 0 0 0-4.493.006c-19.337.087-36.076-3.874-50.342-17.72-11.99-13.314-15.732-28.763-15.667-46.265l-.011-3.376c-.01-3.706-.007-7.412-.003-11.118q-.007-4.003-.015-8.006-.018-9.72-.012-19.439.002-7.905-.005-15.812l-.001-2.28-.004-4.584q-.014-21.467-.003-42.935c.006-13.068-.006-26.137-.025-39.205q-.03-20.168-.024-40.336.005-11.307-.014-22.614-.019-9.625-.002-19.252.01-4.903-.005-9.806c-.063-21.392.482-40.17 16.182-56.468L33 80l1.64-1.707C46.883 66.577 62.55 64.697 78.65 64.733M57 111c-3.615 5.55-3.427 10.594-3.394 16.994l-.019 3.364c-.017 3.722-.012 7.443-.007 11.165q-.01 4.002-.026 8.003c-.02 6.495-.025 12.99-.023 19.485a9577 9577 0 0 1-.017 20.405l-.003 2.295c-.019 14.32-.018 28.641-.01 42.961.005 13.096-.016 26.191-.05 39.287q-.05 20.178-.043 40.355c.002 7.55-.003 15.1-.028 22.65q-.033 9.641-.006 19.283.016 4.917-.01 9.834c-.019 3.558-.006 7.114.015 10.671l-.038 3.124c.093 7.623 1.84 12.297 7.234 17.703 6.322 4.896 14.068 4.11 21.659 4.042q2.337.007 4.673.02c4.269.017 8.537.003 12.806-.017 4.608-.015 9.216-.002 13.824.008 9.023.015 18.044.002 27.067-.02 10.505-.023 21.01-.021 31.516-.019 18.742.004 37.484-.017 56.226-.051q27.285-.05 54.569-.041 29.71.012 59.42-.015l3.173-.004 6.31-.006q10.986-.009 21.973-.006 13.386.003 26.77-.032c4.554-.012 9.107-.019 13.66-.013q6.252.006 12.502-.023 2.264-.008 4.526.001c2.05.007 4.098-.004 6.147-.02l3.45-.005c6.13-.735 10.246-3.731 14.154-8.378 3.27-6.025 3.426-11.188 3.381-17.962l.014-3.318c.012-3.663.003-7.326-.007-10.99q.007-3.942.016-7.885c.013-6.395.01-12.79.002-19.185a8074 8074 0 0 1-.003-17.841q0-2.258.003-4.514c.008-14.102-.002-28.204-.018-42.306q-.018-18.139.003-36.278a23436 23436 0 0 0 .01-46.65l-.001-2.235q-.003-7.785.009-15.572.014-10.484-.015-20.972-.006-3.847.004-7.696c.008-3.502-.002-7.004-.017-10.507l.02-3.075c-.055-6.664-.708-12.636-5.014-18.037l-1.7-1.352-1.675-1.398c-4.658-2.84-9.18-3.477-14.556-3.481-1.96-.01-1.96-.01-3.96-.018l-4.33.011-4.617-.011c-4.226-.01-8.452-.008-12.677-.004-4.559.002-9.117-.007-13.675-.014q-13.395-.018-26.788-.012a26146 26146 0 0 1-31.19-.01q-29.507-.013-59.014-.003c-18.001.006-36.002-.006-54.003-.025q-27.72-.03-55.438-.024c-10.376.002-20.753 0-31.13-.014q-13.248-.019-26.498-.002-6.76.011-13.521-.005-6.189-.015-12.378.007-2.239.004-4.478-.008c-10.356-.052-17.722-.02-24.759 8.386"
|
7
|
-
/>
|
8
|
-
<path
|
9
|
-
fill="#FFF"
|
10
|
-
d="M211.594 166.027C225.564 177.95 232.89 192.341 237 210v15h-38l-2-12c-3.428-9.924-9.002-16.527-18.25-21.375-8.317-3.952-19.394-4.22-28.062-1.187C141.226 194.932 134.624 202.24 131 212c-1.17 3.683-1.154 7.207-1.193 11.057l-.025 2.13q-.035 3.484-.055 6.97l-.017 2.417q-.039 6.342-.06 12.685-.02 5.22-.082 10.44c-.05 4.218-.074 8.437-.081 12.657a438 438 0 0 1-.046 4.793c-.172 12.03 1.188 23.276 9.907 32.394 7.225 6.372 16.431 10.19 26.16 9.809 8.312-1.173 15.45-3.473 21.492-9.352h2l.75-1.625c1.25-2.375 1.25-2.375 3.188-5 4.139-6.774 5.081-13.528 6.062-21.375h38c0 21.963-4.801 38.798-20.363 54.422L214 337l-1.918 2.016c-13.517 13.248-32.973 17.296-51.127 17.296-18.978-.262-36.43-7.932-49.955-21.312-16.343-18.293-21.143-37.855-21.203-61.969l-.009-2.324q-.022-6.097-.028-12.193c-.006-4.15-.03-8.301-.058-12.451a1811 1811 0 0 1-.026-9.7q-.004-2.29-.024-4.582c-.185-22.871 5.05-43.382 21.063-60.465 27.59-27.967 70.078-29.363 100.879-5.289M391 162.5a300 300 0 0 1 4 3.5l2 1.54c13.042 10.34 22.013 28.145 24 44.46v13h-38l-3-14c-4.092-9.822-9.492-15.253-19-20-8.913-3.553-18.759-3.316-27.625.25-9.012 4.09-14.51 10.719-18.187 19.813-2.989 7.986-2.348 17.084-2.356 25.457l-.01 3.922q-.009 4.095-.007 8.192c0 3.47-.014 6.939-.031 10.408-.014 3.347-.013 6.693-.014 10.04l-.022 3.729c.035 13.571 1.681 25.006 11.057 35.294 7.318 6.316 16.193 9.264 25.738 9.106 9.753-.837 18.156-5.38 24.77-12.524 5.983-7.59 7.067-14.967 8.687-24.687h38c0 20.87-4.852 37.261-19 53l-1.57 1.852c-10.837 11.926-28.103 20.027-44.063 21.37-21.875.91-40.916-3.117-57.91-17.921-13.741-12.868-23.846-30.701-24.597-49.89a557 557 0 0 1-.021-4.03l-.015-2.24q-.021-3.648-.027-7.297l-.009-2.538q-.022-6.658-.028-13.315c-.006-4.547-.03-9.095-.058-13.642a2163 2163 0 0 1-.026-10.584q-.004-2.512-.024-5.023c-.175-23.795 5.888-42.815 22.536-60.43C321.02 145.335 363.02 141.156 391 162.5"
|
11
|
-
/>
|
12
|
-
</svg>
|
13
|
-
);
|
14
|
-
export default SvgSubtitlesIcon;
|
1
|
+
import type { SVGProps } from "react";
|
2
|
+
const SvgSubtitlesIcon = (props: SVGProps<SVGSVGElement>) => (
|
3
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" {...props}>
|
4
|
+
<path
|
5
|
+
fill="#FFF"
|
6
|
+
d="m78.649 64.733 4.772-.014c4.355-.012 8.711-.012 13.067-.01 4.703 0 9.407-.01 14.11-.02q13.815-.023 27.629-.023 11.23-.001 22.463-.012 31.861-.026 63.724-.025h6.94c18.57.001 37.138-.018 55.707-.046q28.618-.043 57.235-.04c10.706 0 21.413-.006 32.119-.027q13.673-.028 27.347-.009c4.647.006 9.295.007 13.943-.01q6.39-.024 12.783.004 2.303.005 4.605-.012c17.985-.122 33.209 4.858 46.137 17.55 8.927 9.239 14.882 21.979 14.901 34.934l.012 2.976-.003 3.246.01 3.467q.01 5.763.011 11.526l.015 8.254q.02 11.222.024 22.445l.012 14.022q.019 19.423.026 38.845v5.027l.002 5.048v2.53q.009 20.274.046 40.55.035 20.83.037 41.661-.001 11.69.025 23.38.023 9.956.012 19.913-.006 5.075.011 10.15c.013 3.677.007 7.353-.004 11.03l.025 3.206c-.1 15.234-5.618 28.587-16.181 39.571L478 426l-1.71 1.742c-12.91 12.154-30.359 13.722-47.23 13.639q-2.341.005-4.684.014c-4.25.013-8.502.007-12.753-.003-4.6-.007-9.2.004-13.8.012-8.996.013-17.991.01-26.987.002a15973 15973 0 0 0-25.105-.003q-3.18 0-6.358.003c-19.85.008-39.7-.002-59.55-.018a31884 31884 0 0 0-51.037.003 46445 46445 0 0 1-65.678.01l-3.148-.001q-10.951-.003-21.904.009-13.356.013-26.712-.01c-4.539-.008-9.077-.011-13.616-.001q-6.243.013-12.487-.012a631 631 0 0 0-4.493.006c-19.337.087-36.076-3.874-50.342-17.72-11.99-13.314-15.732-28.763-15.667-46.265l-.011-3.376c-.01-3.706-.007-7.412-.003-11.118q-.007-4.003-.015-8.006-.018-9.72-.012-19.439.002-7.905-.005-15.812l-.001-2.28-.004-4.584q-.014-21.467-.003-42.935c.006-13.068-.006-26.137-.025-39.205q-.03-20.168-.024-40.336.005-11.307-.014-22.614-.019-9.625-.002-19.252.01-4.903-.005-9.806c-.063-21.392.482-40.17 16.182-56.468L33 80l1.64-1.707C46.883 66.577 62.55 64.697 78.65 64.733M57 111c-3.615 5.55-3.427 10.594-3.394 16.994l-.019 3.364c-.017 3.722-.012 7.443-.007 11.165q-.01 4.002-.026 8.003c-.02 6.495-.025 12.99-.023 19.485a9577 9577 0 0 1-.017 20.405l-.003 2.295c-.019 14.32-.018 28.641-.01 42.961.005 13.096-.016 26.191-.05 39.287q-.05 20.178-.043 40.355c.002 7.55-.003 15.1-.028 22.65q-.033 9.641-.006 19.283.016 4.917-.01 9.834c-.019 3.558-.006 7.114.015 10.671l-.038 3.124c.093 7.623 1.84 12.297 7.234 17.703 6.322 4.896 14.068 4.11 21.659 4.042q2.337.007 4.673.02c4.269.017 8.537.003 12.806-.017 4.608-.015 9.216-.002 13.824.008 9.023.015 18.044.002 27.067-.02 10.505-.023 21.01-.021 31.516-.019 18.742.004 37.484-.017 56.226-.051q27.285-.05 54.569-.041 29.71.012 59.42-.015l3.173-.004 6.31-.006q10.986-.009 21.973-.006 13.386.003 26.77-.032c4.554-.012 9.107-.019 13.66-.013q6.252.006 12.502-.023 2.264-.008 4.526.001c2.05.007 4.098-.004 6.147-.02l3.45-.005c6.13-.735 10.246-3.731 14.154-8.378 3.27-6.025 3.426-11.188 3.381-17.962l.014-3.318c.012-3.663.003-7.326-.007-10.99q.007-3.942.016-7.885c.013-6.395.01-12.79.002-19.185a8074 8074 0 0 1-.003-17.841q0-2.258.003-4.514c.008-14.102-.002-28.204-.018-42.306q-.018-18.139.003-36.278a23436 23436 0 0 0 .01-46.65l-.001-2.235q-.003-7.785.009-15.572.014-10.484-.015-20.972-.006-3.847.004-7.696c.008-3.502-.002-7.004-.017-10.507l.02-3.075c-.055-6.664-.708-12.636-5.014-18.037l-1.7-1.352-1.675-1.398c-4.658-2.84-9.18-3.477-14.556-3.481-1.96-.01-1.96-.01-3.96-.018l-4.33.011-4.617-.011c-4.226-.01-8.452-.008-12.677-.004-4.559.002-9.117-.007-13.675-.014q-13.395-.018-26.788-.012a26146 26146 0 0 1-31.19-.01q-29.507-.013-59.014-.003c-18.001.006-36.002-.006-54.003-.025q-27.72-.03-55.438-.024c-10.376.002-20.753 0-31.13-.014q-13.248-.019-26.498-.002-6.76.011-13.521-.005-6.189-.015-12.378.007-2.239.004-4.478-.008c-10.356-.052-17.722-.02-24.759 8.386"
|
7
|
+
/>
|
8
|
+
<path
|
9
|
+
fill="#FFF"
|
10
|
+
d="M211.594 166.027C225.564 177.95 232.89 192.341 237 210v15h-38l-2-12c-3.428-9.924-9.002-16.527-18.25-21.375-8.317-3.952-19.394-4.22-28.062-1.187C141.226 194.932 134.624 202.24 131 212c-1.17 3.683-1.154 7.207-1.193 11.057l-.025 2.13q-.035 3.484-.055 6.97l-.017 2.417q-.039 6.342-.06 12.685-.02 5.22-.082 10.44c-.05 4.218-.074 8.437-.081 12.657a438 438 0 0 1-.046 4.793c-.172 12.03 1.188 23.276 9.907 32.394 7.225 6.372 16.431 10.19 26.16 9.809 8.312-1.173 15.45-3.473 21.492-9.352h2l.75-1.625c1.25-2.375 1.25-2.375 3.188-5 4.139-6.774 5.081-13.528 6.062-21.375h38c0 21.963-4.801 38.798-20.363 54.422L214 337l-1.918 2.016c-13.517 13.248-32.973 17.296-51.127 17.296-18.978-.262-36.43-7.932-49.955-21.312-16.343-18.293-21.143-37.855-21.203-61.969l-.009-2.324q-.022-6.097-.028-12.193c-.006-4.15-.03-8.301-.058-12.451a1811 1811 0 0 1-.026-9.7q-.004-2.29-.024-4.582c-.185-22.871 5.05-43.382 21.063-60.465 27.59-27.967 70.078-29.363 100.879-5.289M391 162.5a300 300 0 0 1 4 3.5l2 1.54c13.042 10.34 22.013 28.145 24 44.46v13h-38l-3-14c-4.092-9.822-9.492-15.253-19-20-8.913-3.553-18.759-3.316-27.625.25-9.012 4.09-14.51 10.719-18.187 19.813-2.989 7.986-2.348 17.084-2.356 25.457l-.01 3.922q-.009 4.095-.007 8.192c0 3.47-.014 6.939-.031 10.408-.014 3.347-.013 6.693-.014 10.04l-.022 3.729c.035 13.571 1.681 25.006 11.057 35.294 7.318 6.316 16.193 9.264 25.738 9.106 9.753-.837 18.156-5.38 24.77-12.524 5.983-7.59 7.067-14.967 8.687-24.687h38c0 20.87-4.852 37.261-19 53l-1.57 1.852c-10.837 11.926-28.103 20.027-44.063 21.37-21.875.91-40.916-3.117-57.91-17.921-13.741-12.868-23.846-30.701-24.597-49.89a557 557 0 0 1-.021-4.03l-.015-2.24q-.021-3.648-.027-7.297l-.009-2.538q-.022-6.658-.028-13.315c-.006-4.547-.03-9.095-.058-13.642a2163 2163 0 0 1-.026-10.584q-.004-2.512-.024-5.023c-.175-23.795 5.888-42.815 22.536-60.43C321.02 145.335 363.02 141.156 391 162.5"
|
11
|
+
/>
|
12
|
+
</svg>
|
13
|
+
);
|
14
|
+
export default SvgSubtitlesIcon;
|
@@ -1,17 +1,17 @@
|
|
1
|
-
import type { SVGProps } from "react";
|
2
|
-
const SvgUnmuteIcon = (props: SVGProps<SVGSVGElement>) => (
|
3
|
-
<svg
|
4
|
-
xmlns="http://www.w3.org/2000/svg"
|
5
|
-
width="1em"
|
6
|
-
height="1em"
|
7
|
-
fill="none"
|
8
|
-
viewBox="0 0 8 15"
|
9
|
-
{...props}
|
10
|
-
>
|
11
|
-
<path
|
12
|
-
fill="#FFF"
|
13
|
-
d="M7.659 14.275h-.001l-3.979-3.251a.16.16 0 0 0-.104-.035H2.252A1.33 1.33 0 0 1 .924 9.66V5.32A1.33 1.33 0 0 1 2.252 3.99h1.323a.16.16 0 0 0 .101-.035L7.66.725a.163.163 0 0 1 .265.126v13.297a.162.162 0 0 1-.264.127z"
|
14
|
-
/>
|
15
|
-
</svg>
|
16
|
-
);
|
17
|
-
export default SvgUnmuteIcon;
|
1
|
+
import type { SVGProps } from "react";
|
2
|
+
const SvgUnmuteIcon = (props: SVGProps<SVGSVGElement>) => (
|
3
|
+
<svg
|
4
|
+
xmlns="http://www.w3.org/2000/svg"
|
5
|
+
width="1em"
|
6
|
+
height="1em"
|
7
|
+
fill="none"
|
8
|
+
viewBox="0 0 8 15"
|
9
|
+
{...props}
|
10
|
+
>
|
11
|
+
<path
|
12
|
+
fill="#FFF"
|
13
|
+
d="M7.659 14.275h-.001l-3.979-3.251a.16.16 0 0 0-.104-.035H2.252A1.33 1.33 0 0 1 .924 9.66V5.32A1.33 1.33 0 0 1 2.252 3.99h1.323a.16.16 0 0 0 .101-.035L7.66.725a.163.163 0 0 1 .265.126v13.297a.162.162 0 0 1-.264.127z"
|
14
|
+
/>
|
15
|
+
</svg>
|
16
|
+
);
|
17
|
+
export default SvgUnmuteIcon;
|
@@ -1,15 +1,15 @@
|
|
1
|
-
import type { SVGProps } from "react";
|
2
|
-
const SvgVolumeHigh = (props: SVGProps<SVGSVGElement>) => (
|
3
|
-
<svg
|
4
|
-
xmlns="http://www.w3.org/2000/svg"
|
5
|
-
width="1em"
|
6
|
-
height="1em"
|
7
|
-
fill="#fff"
|
8
|
-
viewBox="0 0 512 512"
|
9
|
-
{...props}
|
10
|
-
>
|
11
|
-
<path d="M264 416.19a23.92 23.92 0 0 1-14.21-4.69l-.66-.51-91.46-75H88a24 24 0 0 1-24-24V200a24 24 0 0 1 24-24h69.65l91.46-75 .66-.51A24 24 0 0 1 288 119.83v272.34a24 24 0 0 1-24 24ZM352 336a16 16 0 0 1-14.29-23.18c9.49-18.9 14.3-38 14.3-56.82 0-19.36-4.66-37.92-14.25-56.73a16 16 0 0 1 28.5-14.54C378.2 208.16 384 231.47 384 256c0 23.83-6 47.78-17.7 71.18A16 16 0 0 1 352 336" />
|
12
|
-
<path d="M400 384a16 16 0 0 1-13.87-24C405 327.05 416 299.45 416 256c0-44.12-10.94-71.52-29.83-103.95A16 16 0 0 1 413.83 136C434.92 172.16 448 204.88 448 256c0 50.36-13.06 83.24-34.12 120a16 16 0 0 1-13.88 8" />
|
13
|
-
</svg>
|
14
|
-
);
|
15
|
-
export default SvgVolumeHigh;
|
1
|
+
import type { SVGProps } from "react";
|
2
|
+
const SvgVolumeHigh = (props: SVGProps<SVGSVGElement>) => (
|
3
|
+
<svg
|
4
|
+
xmlns="http://www.w3.org/2000/svg"
|
5
|
+
width="1em"
|
6
|
+
height="1em"
|
7
|
+
fill="#fff"
|
8
|
+
viewBox="0 0 512 512"
|
9
|
+
{...props}
|
10
|
+
>
|
11
|
+
<path d="M264 416.19a23.92 23.92 0 0 1-14.21-4.69l-.66-.51-91.46-75H88a24 24 0 0 1-24-24V200a24 24 0 0 1 24-24h69.65l91.46-75 .66-.51A24 24 0 0 1 288 119.83v272.34a24 24 0 0 1-24 24ZM352 336a16 16 0 0 1-14.29-23.18c9.49-18.9 14.3-38 14.3-56.82 0-19.36-4.66-37.92-14.25-56.73a16 16 0 0 1 28.5-14.54C378.2 208.16 384 231.47 384 256c0 23.83-6 47.78-17.7 71.18A16 16 0 0 1 352 336" />
|
12
|
+
<path d="M400 384a16 16 0 0 1-13.87-24C405 327.05 416 299.45 416 256c0-44.12-10.94-71.52-29.83-103.95A16 16 0 0 1 413.83 136C434.92 172.16 448 204.88 448 256c0 50.36-13.06 83.24-34.12 120a16 16 0 0 1-13.88 8" />
|
13
|
+
</svg>
|
14
|
+
);
|
15
|
+
export default SvgVolumeHigh;
|
@@ -1,14 +1,14 @@
|
|
1
|
-
import type { SVGProps } from "react";
|
2
|
-
const SvgVolumeLow = (props: SVGProps<SVGSVGElement>) => (
|
3
|
-
<svg
|
4
|
-
xmlns="http://www.w3.org/2000/svg"
|
5
|
-
width="1em"
|
6
|
-
height="1em"
|
7
|
-
fill="#fff"
|
8
|
-
viewBox="0 0 512 512"
|
9
|
-
{...props}
|
10
|
-
>
|
11
|
-
<path d="M296 416.19a23.92 23.92 0 0 1-14.21-4.69l-.66-.51-91.46-75H120a24 24 0 0 1-24-24V200a24 24 0 0 1 24-24h69.65l91.46-75 .66-.51A24 24 0 0 1 320 119.83v272.34a24 24 0 0 1-24 24ZM384 336a16 16 0 0 1-14.29-23.18c9.49-18.9 14.3-38 14.3-56.82 0-19.36-4.66-37.92-14.25-56.73a16 16 0 0 1 28.5-14.54C410.2 208.16 416 231.47 416 256c0 23.83-6 47.78-17.7 71.18A16 16 0 0 1 384 336" />
|
12
|
-
</svg>
|
13
|
-
);
|
14
|
-
export default SvgVolumeLow;
|
1
|
+
import type { SVGProps } from "react";
|
2
|
+
const SvgVolumeLow = (props: SVGProps<SVGSVGElement>) => (
|
3
|
+
<svg
|
4
|
+
xmlns="http://www.w3.org/2000/svg"
|
5
|
+
width="1em"
|
6
|
+
height="1em"
|
7
|
+
fill="#fff"
|
8
|
+
viewBox="0 0 512 512"
|
9
|
+
{...props}
|
10
|
+
>
|
11
|
+
<path d="M296 416.19a23.92 23.92 0 0 1-14.21-4.69l-.66-.51-91.46-75H120a24 24 0 0 1-24-24V200a24 24 0 0 1 24-24h69.65l91.46-75 .66-.51A24 24 0 0 1 320 119.83v272.34a24 24 0 0 1-24 24ZM384 336a16 16 0 0 1-14.29-23.18c9.49-18.9 14.3-38 14.3-56.82 0-19.36-4.66-37.92-14.25-56.73a16 16 0 0 1 28.5-14.54C410.2 208.16 416 231.47 416 256c0 23.83-6 47.78-17.7 71.18A16 16 0 0 1 384 336" />
|
12
|
+
</svg>
|
13
|
+
);
|
14
|
+
export default SvgVolumeLow;
|
@@ -1,25 +1,25 @@
|
|
1
|
-
import type { SVGProps } from "react";
|
2
|
-
const SvgVolumeMute = (props: SVGProps<SVGSVGElement>) => (
|
3
|
-
<svg
|
4
|
-
xmlns="http://www.w3.org/2000/svg"
|
5
|
-
width="1em"
|
6
|
-
height="1em"
|
7
|
-
fill="#fff"
|
8
|
-
viewBox="0 0 512 512"
|
9
|
-
{...props}
|
10
|
-
>
|
11
|
-
<path
|
12
|
-
d="M416 432 64 80"
|
13
|
-
style={{
|
14
|
-
fill: "none",
|
15
|
-
stroke: "#fff",
|
16
|
-
strokeLinecap: "round",
|
17
|
-
strokeMiterlimit: 10,
|
18
|
-
strokeWidth: 32,
|
19
|
-
}}
|
20
|
-
/>
|
21
|
-
<path d="M243.33 98.86a23.89 23.89 0 0 0-25.55 1.82l-.66.51-28.52 23.35a8 8 0 0 0-.59 11.85l54.33 54.33a8 8 0 0 0 13.66-5.66v-64.49a24.51 24.51 0 0 0-12.67-21.71M251.33 335.29 96.69 180.69A16 16 0 0 0 85.38 176H56a24 24 0 0 0-24 24v112a24 24 0 0 0 24 24h69.76l92 75.31a23.9 23.9 0 0 0 25.87 1.69A24.51 24.51 0 0 0 256 391.45v-44.86a16 16 0 0 0-4.67-11.3M352 256c0-24.56-5.81-47.87-17.75-71.27a16 16 0 1 0-28.5 14.55C315.34 218.06 320 236.62 320 256q0 4-.31 8.13a8 8 0 0 0 2.32 6.25l14.36 14.36a8 8 0 0 0 13.55-4.31A146 146 0 0 0 352 256M416 256c0-51.18-13.08-83.89-34.18-120.06a16 16 0 0 0-27.64 16.12C373.07 184.44 384 211.83 384 256c0 23.83-3.29 42.88-9.37 60.65a8 8 0 0 0 1.9 8.26L389 337.4a8 8 0 0 0 13.13-2.79C411 311.76 416 287.26 416 256" />
|
22
|
-
<path d="M480 256c0-74.25-20.19-121.11-50.51-168.61a16 16 0 1 0-27 17.22C429.82 147.38 448 189.5 448 256c0 46.19-8.43 80.27-22.43 110.53a8 8 0 0 0 1.59 9l11.92 11.92a8 8 0 0 0 12.92-2.16C471.6 344.9 480 305 480 256" />
|
23
|
-
</svg>
|
24
|
-
);
|
25
|
-
export default SvgVolumeMute;
|
1
|
+
import type { SVGProps } from "react";
|
2
|
+
const SvgVolumeMute = (props: SVGProps<SVGSVGElement>) => (
|
3
|
+
<svg
|
4
|
+
xmlns="http://www.w3.org/2000/svg"
|
5
|
+
width="1em"
|
6
|
+
height="1em"
|
7
|
+
fill="#fff"
|
8
|
+
viewBox="0 0 512 512"
|
9
|
+
{...props}
|
10
|
+
>
|
11
|
+
<path
|
12
|
+
d="M416 432 64 80"
|
13
|
+
style={{
|
14
|
+
fill: "none",
|
15
|
+
stroke: "#fff",
|
16
|
+
strokeLinecap: "round",
|
17
|
+
strokeMiterlimit: 10,
|
18
|
+
strokeWidth: 32,
|
19
|
+
}}
|
20
|
+
/>
|
21
|
+
<path d="M243.33 98.86a23.89 23.89 0 0 0-25.55 1.82l-.66.51-28.52 23.35a8 8 0 0 0-.59 11.85l54.33 54.33a8 8 0 0 0 13.66-5.66v-64.49a24.51 24.51 0 0 0-12.67-21.71M251.33 335.29 96.69 180.69A16 16 0 0 0 85.38 176H56a24 24 0 0 0-24 24v112a24 24 0 0 0 24 24h69.76l92 75.31a23.9 23.9 0 0 0 25.87 1.69A24.51 24.51 0 0 0 256 391.45v-44.86a16 16 0 0 0-4.67-11.3M352 256c0-24.56-5.81-47.87-17.75-71.27a16 16 0 1 0-28.5 14.55C315.34 218.06 320 236.62 320 256q0 4-.31 8.13a8 8 0 0 0 2.32 6.25l14.36 14.36a8 8 0 0 0 13.55-4.31A146 146 0 0 0 352 256M416 256c0-51.18-13.08-83.89-34.18-120.06a16 16 0 0 0-27.64 16.12C373.07 184.44 384 211.83 384 256c0 23.83-3.29 42.88-9.37 60.65a8 8 0 0 0 1.9 8.26L389 337.4a8 8 0 0 0 13.13-2.79C411 311.76 416 287.26 416 256" />
|
22
|
+
<path d="M480 256c0-74.25-20.19-121.11-50.51-168.61a16 16 0 1 0-27 17.22C429.82 147.38 448 189.5 448 256c0 46.19-8.43 80.27-22.43 110.53a8 8 0 0 0 1.59 9l11.92 11.92a8 8 0 0 0 12.92-2.16C471.6 344.9 480 305 480 256" />
|
23
|
+
</svg>
|
24
|
+
);
|
25
|
+
export default SvgVolumeMute;
|
@@ -1,14 +1,14 @@
|
|
1
|
-
import type { SVGProps } from "react";
|
2
|
-
const SvgVolumeVLow = (props: SVGProps<SVGSVGElement>) => (
|
3
|
-
<svg
|
4
|
-
xmlns="http://www.w3.org/2000/svg"
|
5
|
-
width="1em"
|
6
|
-
height="1em"
|
7
|
-
fill="#fff"
|
8
|
-
viewBox="0 0 512 512"
|
9
|
-
{...props}
|
10
|
-
>
|
11
|
-
<path d="M344 416a23.92 23.92 0 0 1-14.21-4.69c-.23-.16-.44-.33-.66-.51l-91.46-74.9H168a24 24 0 0 1-24-24V200.07a24 24 0 0 1 24-24h69.65l91.46-74.9c.22-.18.43-.35.66-.51A24 24 0 0 1 368 120v272a24 24 0 0 1-24 24" />
|
12
|
-
</svg>
|
13
|
-
);
|
14
|
-
export default SvgVolumeVLow;
|
1
|
+
import type { SVGProps } from "react";
|
2
|
+
const SvgVolumeVLow = (props: SVGProps<SVGSVGElement>) => (
|
3
|
+
<svg
|
4
|
+
xmlns="http://www.w3.org/2000/svg"
|
5
|
+
width="1em"
|
6
|
+
height="1em"
|
7
|
+
fill="#fff"
|
8
|
+
viewBox="0 0 512 512"
|
9
|
+
{...props}
|
10
|
+
>
|
11
|
+
<path d="M344 416a23.92 23.92 0 0 1-14.21-4.69c-.23-.16-.44-.33-.66-.51l-91.46-74.9H168a24 24 0 0 1-24-24V200.07a24 24 0 0 1 24-24h69.65l91.46-74.9c.22-.18.43-.35.66-.51A24 24 0 0 1 368 120v272a24 24 0 0 1-24 24" />
|
12
|
+
</svg>
|
13
|
+
);
|
14
|
+
export default SvgVolumeVLow;
|
@@ -1,20 +1,20 @@
|
|
1
|
-
export { default as BackwardIcon } from "./BackwardIcon";
|
2
|
-
export { default as CheckedIcon } from "./CheckedIcon";
|
3
|
-
export { default as ClosedNoteIcon } from "./ClosedNoteIcon";
|
4
|
-
export { default as ForwardIcon } from "./ForwardIcon";
|
5
|
-
export { default as FullScreenIcon } from "./FullScreenIcon";
|
6
|
-
export { default as LeftArrowIcon } from "./LeftArrowIcon";
|
7
|
-
export { default as MuteIcon } from "./MuteIcon";
|
8
|
-
export { default as NoteIcon } from "./NoteIcon";
|
9
|
-
export { default as OpenNoteIcon } from "./OpenNoteIcon";
|
10
|
-
export { default as PauseIcon } from "./PauseIcon";
|
11
|
-
export { default as PlayIcon } from "./PlayIcon";
|
12
|
-
export { default as SettingsIcon } from "./SettingsIcon";
|
13
|
-
export { default as SkillamiIcon } from "./SkillamiIcon";
|
14
|
-
export { default as SubIcon } from "./SubIcon";
|
15
|
-
export { default as SubtitlesIcon } from "./SubtitlesIcon";
|
16
|
-
export { default as UnmuteIcon } from "./UnmuteIcon";
|
17
|
-
export { default as VolumeHigh } from "./VolumeHigh";
|
18
|
-
export { default as VolumeLow } from "./VolumeLow";
|
19
|
-
export { default as VolumeMute } from "./VolumeMute";
|
20
|
-
export { default as VolumeVLow } from "./VolumeVLow";
|
1
|
+
export { default as BackwardIcon } from "./BackwardIcon";
|
2
|
+
export { default as CheckedIcon } from "./CheckedIcon";
|
3
|
+
export { default as ClosedNoteIcon } from "./ClosedNoteIcon";
|
4
|
+
export { default as ForwardIcon } from "./ForwardIcon";
|
5
|
+
export { default as FullScreenIcon } from "./FullScreenIcon";
|
6
|
+
export { default as LeftArrowIcon } from "./LeftArrowIcon";
|
7
|
+
export { default as MuteIcon } from "./MuteIcon";
|
8
|
+
export { default as NoteIcon } from "./NoteIcon";
|
9
|
+
export { default as OpenNoteIcon } from "./OpenNoteIcon";
|
10
|
+
export { default as PauseIcon } from "./PauseIcon";
|
11
|
+
export { default as PlayIcon } from "./PlayIcon";
|
12
|
+
export { default as SettingsIcon } from "./SettingsIcon";
|
13
|
+
export { default as SkillamiIcon } from "./SkillamiIcon";
|
14
|
+
export { default as SubIcon } from "./SubIcon";
|
15
|
+
export { default as SubtitlesIcon } from "./SubtitlesIcon";
|
16
|
+
export { default as UnmuteIcon } from "./UnmuteIcon";
|
17
|
+
export { default as VolumeHigh } from "./VolumeHigh";
|
18
|
+
export { default as VolumeLow } from "./VolumeLow";
|
19
|
+
export { default as VolumeMute } from "./VolumeMute";
|
20
|
+
export { default as VolumeVLow } from "./VolumeVLow";
|
package/dist/index.d.mts
CHANGED
@@ -57,7 +57,8 @@ type Props<T = any> = {
|
|
57
57
|
videoId?: string;
|
58
58
|
isTrailer?: boolean;
|
59
59
|
height?: number;
|
60
|
+
token: string;
|
60
61
|
};
|
61
|
-
declare const SoftBuildersVideoPlayer: React$1.MemoExoticComponent<({ options, notes, chapters, startTime, handleSaveNoteAction, onPlay, onPause, isFocused, disableNote, childRef, bottomRedBar, noteButtonClick, videoId, isTrailer, height, }: Props<any>) => react_jsx_runtime.JSX.Element>;
|
62
|
+
declare const SoftBuildersVideoPlayer: React$1.MemoExoticComponent<({ options, notes, chapters, startTime, handleSaveNoteAction, onPlay, onPause, isFocused, disableNote, childRef, bottomRedBar, noteButtonClick, videoId, isTrailer, height, token, }: Props<any>) => react_jsx_runtime.JSX.Element>;
|
62
63
|
|
63
64
|
export { type SoftBuildersVideoPlayerChapter, type SoftBuildersVideoPlayerNote, type SoftBuildersVideoPlayerOptions, type SoftBuildersVideoPlayerSource, type SoftBuildersVideoPlayerTrack, SoftBuildersVideoPlayer as default };
|
package/dist/index.mjs
CHANGED
@@ -623,21 +623,20 @@ var VolumeSlider = ({
|
|
623
623
|
const [volume, setVolume] = useState2(0);
|
624
624
|
const [isClicked, setClicked] = useState2(false);
|
625
625
|
const updateVolumeState = () => {
|
626
|
-
if (player && player
|
627
|
-
const currentVolume =
|
626
|
+
if (player && typeof player.muted === "function" && typeof player.volume === "function") {
|
627
|
+
const currentVolume = player.muted() ? 0 : Number(player.volume() || 0) * 100;
|
628
628
|
setVolume(currentVolume);
|
629
629
|
}
|
630
630
|
};
|
631
631
|
useEffect2(() => {
|
632
632
|
if (player) {
|
633
633
|
updateVolumeState();
|
634
|
-
|
634
|
+
const handleVolumeChange = () => updateVolumeState();
|
635
|
+
player.on("volumechange", handleVolumeChange);
|
636
|
+
return () => {
|
637
|
+
player.off("volumechange", handleVolumeChange);
|
638
|
+
};
|
635
639
|
}
|
636
|
-
return () => {
|
637
|
-
if (player) {
|
638
|
-
player == null ? void 0 : player.off("volumechange", updateVolumeState);
|
639
|
-
}
|
640
|
-
};
|
641
640
|
}, [player]);
|
642
641
|
const handleVolumeSliderClick = (e) => {
|
643
642
|
e.stopPropagation();
|
@@ -1370,10 +1369,12 @@ import { Fragment as Fragment2, jsx as jsx35 } from "react/jsx-runtime";
|
|
1370
1369
|
var BufferTracker = () => {
|
1371
1370
|
const { player, setDownloadedBufferTimeufferTime } = useSoftBuildersVideoPlayerContext();
|
1372
1371
|
useEffect10(() => {
|
1373
|
-
|
1374
|
-
|
1375
|
-
|
1376
|
-
|
1372
|
+
if (player && typeof player.bufferedEnd === "function") {
|
1373
|
+
const intervalId = setInterval(() => {
|
1374
|
+
if (player) setDownloadedBufferTimeufferTime(player == null ? void 0 : player.bufferedEnd());
|
1375
|
+
}, 1e3);
|
1376
|
+
return () => clearInterval(intervalId);
|
1377
|
+
}
|
1377
1378
|
}, [player]);
|
1378
1379
|
return /* @__PURE__ */ jsx35(Fragment2, {});
|
1379
1380
|
};
|
@@ -1385,10 +1386,12 @@ import { Fragment as Fragment3, jsx as jsx36 } from "react/jsx-runtime";
|
|
1385
1386
|
var CurrentTimeTracker = () => {
|
1386
1387
|
const { setCurrentTime, player } = useSoftBuildersVideoPlayerContext();
|
1387
1388
|
useEffect11(() => {
|
1388
|
-
|
1389
|
-
|
1390
|
-
|
1391
|
-
|
1389
|
+
if (player && typeof player.currentTime === "function") {
|
1390
|
+
const intervalId = setInterval(() => {
|
1391
|
+
player.currentTime ? setCurrentTime(Number(player.currentTime())) : setCurrentTime(0);
|
1392
|
+
}, 500);
|
1393
|
+
return () => clearInterval(intervalId);
|
1394
|
+
}
|
1392
1395
|
}, [player]);
|
1393
1396
|
return /* @__PURE__ */ jsx36(Fragment3, {});
|
1394
1397
|
};
|
@@ -1720,7 +1723,7 @@ var ControlBar = ({
|
|
1720
1723
|
) }),
|
1721
1724
|
player && Array.isArray(player == null ? void 0 : player.currentSources()) == true && /* @ts-ignore */
|
1722
1725
|
((_a = player == null ? void 0 : player.currentSources()) == null ? void 0 : _a.length) > 0 && /* @ts-ignore */
|
1723
|
-
((_c = (_b = player == null ? void 0 : player.currentSources()) == null ? void 0 : _b[0]) == null ? void 0 : _c.type) === "application/
|
1726
|
+
((_c = (_b = player == null ? void 0 : player.currentSources()) == null ? void 0 : _b[0]) == null ? void 0 : _c.type) === "application/x-mpegURL" && /* @__PURE__ */ jsx39(
|
1724
1727
|
GlobalTooltip_default,
|
1725
1728
|
{
|
1726
1729
|
player,
|
@@ -1923,7 +1926,8 @@ var VideoPlayerComponent = ({
|
|
1923
1926
|
noteButtonClick,
|
1924
1927
|
videoID,
|
1925
1928
|
isTrailer,
|
1926
|
-
height
|
1929
|
+
height,
|
1930
|
+
token
|
1927
1931
|
}) => {
|
1928
1932
|
var _a, _b, _c;
|
1929
1933
|
const videoRef = useRef2(void 0);
|
@@ -1974,6 +1978,14 @@ var VideoPlayerComponent = ({
|
|
1974
1978
|
playerRef.current = videojs(videoElement, options, () => {
|
1975
1979
|
onReady(playerRef.current);
|
1976
1980
|
});
|
1981
|
+
if (videojs.Vhs && videojs.Vhs.xhr) {
|
1982
|
+
videojs.Vhs.xhr.beforeRequest = (options2) => {
|
1983
|
+
options2.headers = {
|
1984
|
+
Authorization: `Bearer ${token}`
|
1985
|
+
};
|
1986
|
+
return options2;
|
1987
|
+
};
|
1988
|
+
}
|
1977
1989
|
}
|
1978
1990
|
return () => {
|
1979
1991
|
if (playerRef.current) {
|
@@ -2015,6 +2027,15 @@ var VideoPlayerComponent = ({
|
|
2015
2027
|
playerRef.current = videojs(videoElement, options, () => {
|
2016
2028
|
onReady(playerRef.current);
|
2017
2029
|
});
|
2030
|
+
console.log("options:1 ", options);
|
2031
|
+
if (videojs.Vhs && videojs.Vhs.xhr) {
|
2032
|
+
videojs.Vhs.xhr.beforeRequest = (options2) => {
|
2033
|
+
options2.headers = {
|
2034
|
+
Authorization: `Bearer ${token}`
|
2035
|
+
};
|
2036
|
+
return options2;
|
2037
|
+
};
|
2038
|
+
}
|
2018
2039
|
}
|
2019
2040
|
return () => {
|
2020
2041
|
var _a2, _b2;
|
@@ -2355,7 +2376,8 @@ var Component = ({
|
|
2355
2376
|
noteButtonClick,
|
2356
2377
|
videoId,
|
2357
2378
|
isTrailer = false,
|
2358
|
-
height
|
2379
|
+
height,
|
2380
|
+
token
|
2359
2381
|
}) => {
|
2360
2382
|
options = __spreadProps(__spreadValues({}, options), {
|
2361
2383
|
responsive: true,
|
@@ -2416,13 +2438,14 @@ var Component = ({
|
|
2416
2438
|
bottomRedBar,
|
2417
2439
|
noteButtonClick,
|
2418
2440
|
isTrailer,
|
2419
|
-
height
|
2441
|
+
height,
|
2442
|
+
token
|
2420
2443
|
}
|
2421
2444
|
);
|
2422
2445
|
};
|
2423
2446
|
var SoftBuildersVideoPlayer = memo(Component, (prevProps, nextProps) => {
|
2424
2447
|
var _a, _b, _c, _d, _e, _f;
|
2425
|
-
return isEqual2(prevProps.options, nextProps.options) && ((_c = (_b = (_a = prevProps == null ? void 0 : prevProps.options) == null ? void 0 : _a.sources) == null ? void 0 : _b[0]) == null ? void 0 : _c.type) === ((_f = (_e = (_d = nextProps == null ? void 0 : nextProps.options) == null ? void 0 : _d.sources) == null ? void 0 : _e[0]) == null ? void 0 : _f.type) && prevProps.notes === nextProps.notes && prevProps.chapters === nextProps.chapters && prevProps.startTime === nextProps.startTime && prevProps.height === nextProps.height;
|
2448
|
+
return isEqual2(prevProps.options, nextProps.options) && ((_c = (_b = (_a = prevProps == null ? void 0 : prevProps.options) == null ? void 0 : _a.sources) == null ? void 0 : _b[0]) == null ? void 0 : _c.type) === ((_f = (_e = (_d = nextProps == null ? void 0 : nextProps.options) == null ? void 0 : _d.sources) == null ? void 0 : _e[0]) == null ? void 0 : _f.type) && prevProps.notes === nextProps.notes && prevProps.chapters === nextProps.chapters && prevProps.startTime === nextProps.startTime && prevProps.height === nextProps.height && prevProps.token === nextProps.token;
|
2426
2449
|
});
|
2427
2450
|
var SoftBuildersVideoPlayer_default = SoftBuildersVideoPlayer;
|
2428
2451
|
|
package/package.json
CHANGED
@@ -1,4 +0,0 @@
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
const SvgSubIcon = (props) => (_jsxs("svg", { fill: "white", width: "1em", height: "1em", viewBox: "0 0 15 15", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("title", { children: "ionicons-v5-g" }), _jsx("path", { d: "M264,416.19a23.92,23.92,0,0,1-14.21-4.69l-.66-.51-91.46-75H88a24,24,0,0,1-24-24V200a24,24,0,0,1,24-24h69.65l91.46-75,.66-.51A24,24,0,0,1,288,119.83V392.17a24,24,0,0,1-24,24Z" }), _jsx("path", { d: "M352,336a16,16,0,0,1-14.29-23.18c9.49-18.9,14.3-38,14.3-56.82,0-19.36-4.66-37.92-14.25-56.73a16,16,0,0,1,28.5-14.54C378.2,208.16,384,231.47,384,256c0,23.83-6,47.78-17.7,71.18A16,16,0,0,1,352,336Z" }), _jsx("path", { d: "M400,384a16,16,0,0,1-13.87-24C405,327.05,416,299.45,416,256c0-44.12-10.94-71.52-29.83-103.95A16,16,0,0,1,413.83,136C434.92,172.16,448,204.88,448,256c0,50.36-13.06,83.24-34.12,120A16,16,0,0,1,400,384Z" })] }));
|
3
|
-
export default SvgSubIcon;
|
4
|
-
//# sourceMappingURL=VolumeHighIcon.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"VolumeHighIcon.js","sourceRoot":"","sources":["../../../src/components/icons/VolumeHighIcon.tsx"],"names":[],"mappings":";AACA,MAAM,UAAU,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CACrD,eACE,IAAI,EAAC,OAAO,EACZ,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,EACZ,OAAO,EAAC,WAAW,EACnB,KAAK,EAAC,4BAA4B,aAElC,4CAA4B,EAC5B,eAAM,CAAC,EAAC,+KAA+K,GAAG,EAC1L,eAAM,CAAC,EAAC,qMAAqM,GAAG,EAChN,eAAM,CAAC,EAAC,yMAAyM,GAAG,IAChN,CACP,CAAC;AACF,eAAe,UAAU,CAAC"}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import type { SVGProps } from "react";
|
2
|
-
const SvgSubIcon = (props: SVGProps<SVGSVGElement>) => (
|
3
|
-
<svg
|
4
|
-
fill="white"
|
5
|
-
width="1em"
|
6
|
-
height="1em"
|
7
|
-
viewBox="0 0 15 15"
|
8
|
-
xmlns="http://www.w3.org/2000/svg"
|
9
|
-
>
|
10
|
-
<title>ionicons-v5-g</title>
|
11
|
-
<path d="M264,416.19a23.92,23.92,0,0,1-14.21-4.69l-.66-.51-91.46-75H88a24,24,0,0,1-24-24V200a24,24,0,0,1,24-24h69.65l91.46-75,.66-.51A24,24,0,0,1,288,119.83V392.17a24,24,0,0,1-24,24Z" />
|
12
|
-
<path d="M352,336a16,16,0,0,1-14.29-23.18c9.49-18.9,14.3-38,14.3-56.82,0-19.36-4.66-37.92-14.25-56.73a16,16,0,0,1,28.5-14.54C378.2,208.16,384,231.47,384,256c0,23.83-6,47.78-17.7,71.18A16,16,0,0,1,352,336Z" />
|
13
|
-
<path d="M400,384a16,16,0,0,1-13.87-24C405,327.05,416,299.45,416,256c0-44.12-10.94-71.52-29.83-103.95A16,16,0,0,1,413.83,136C434.92,172.16,448,204.88,448,256c0,50.36-13.06,83.24-34.12,120A16,16,0,0,1,400,384Z" />
|
14
|
-
</svg>
|
15
|
-
);
|
16
|
-
export default SvgSubIcon;
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
const VolumeIconHeigh = (props) => (_jsxs("svg", { fill: "white", width: "800px", height: "800px", viewBox: "0 0 512 512", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("title", { children: "ionicons-v5-g" }), _jsx("path", { d: "M264,416.19a23.92,23.92,0,0,1-14.21-4.69l-.66-.51-91.46-75H88a24,24,0,0,1-24-24V200a24,24,0,0,1,24-24h69.65l91.46-75,.66-.51A24,24,0,0,1,288,119.83V392.17a24,24,0,0,1-24,24Z" }), _jsx("path", { d: "M352,336a16,16,0,0,1-14.29-23.18c9.49-18.9,14.3-38,14.3-56.82,0-19.36-4.66-37.92-14.25-56.73a16,16,0,0,1,28.5-14.54C378.2,208.16,384,231.47,384,256c0,23.83-6,47.78-17.7,71.18A16,16,0,0,1,352,336Z" }), _jsx("path", { d: "M400,384a16,16,0,0,1-13.87-24C405,327.05,416,299.45,416,256c0-44.12-10.94-71.52-29.83-103.95A16,16,0,0,1,413.83,136C434.92,172.16,448,204.88,448,256c0,50.36-13.06,83.24-34.12,120A16,16,0,0,1,400,384Z" })] }));
|
3
|
-
export default VolumeIconHeigh;
|
4
|
-
//# sourceMappingURL=VolumeIconHigh.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"VolumeIconHigh.js","sourceRoot":"","sources":["../../../src/components/icons/VolumeIconHigh.tsx"],"names":[],"mappings":";AACA,MAAM,eAAe,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CAC1D,eACE,IAAI,EAAC,OAAO,EACZ,KAAK,EAAC,OAAO,EACb,MAAM,EAAC,OAAO,EACd,OAAO,EAAC,aAAa,EACrB,KAAK,EAAC,4BAA4B,aAElC,4CAA4B,EAC5B,eAAM,CAAC,EAAC,+KAA+K,GAAG,EAC1L,eAAM,CAAC,EAAC,qMAAqM,GAAG,EAChN,eAAM,CAAC,EAAC,yMAAyM,GAAG,IAChN,CACP,CAAC;AACF,eAAe,eAAe,CAAC"}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import type { SVGProps } from "react";
|
2
|
-
const VolumeIconHeigh = (props: SVGProps<SVGSVGElement>) => (
|
3
|
-
<svg
|
4
|
-
fill="white"
|
5
|
-
width="800px"
|
6
|
-
height="800px"
|
7
|
-
viewBox="0 0 512 512"
|
8
|
-
xmlns="http://www.w3.org/2000/svg"
|
9
|
-
>
|
10
|
-
<title>ionicons-v5-g</title>
|
11
|
-
<path d="M264,416.19a23.92,23.92,0,0,1-14.21-4.69l-.66-.51-91.46-75H88a24,24,0,0,1-24-24V200a24,24,0,0,1,24-24h69.65l91.46-75,.66-.51A24,24,0,0,1,288,119.83V392.17a24,24,0,0,1-24,24Z" />
|
12
|
-
<path d="M352,336a16,16,0,0,1-14.29-23.18c9.49-18.9,14.3-38,14.3-56.82,0-19.36-4.66-37.92-14.25-56.73a16,16,0,0,1,28.5-14.54C378.2,208.16,384,231.47,384,256c0,23.83-6,47.78-17.7,71.18A16,16,0,0,1,352,336Z" />
|
13
|
-
<path d="M400,384a16,16,0,0,1-13.87-24C405,327.05,416,299.45,416,256c0-44.12-10.94-71.52-29.83-103.95A16,16,0,0,1,413.83,136C434.92,172.16,448,204.88,448,256c0,50.36-13.06,83.24-34.12,120A16,16,0,0,1,400,384Z" />
|
14
|
-
</svg>
|
15
|
-
);
|
16
|
-
export default VolumeIconHeigh;
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
const VolumeIconLow = (props) => (_jsx("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 13 12" }, props, { children: _jsx("path", { fill: "#fff", d: "M12.428 9a2.5 2.5 0 0 1-.657 1.053l-1.27 1.214a2.6 2.6 0 0 1-1.1.63V9.5c0-.276.235-.5.523-.5zm.108-6.5V8H9.924c-.864 0-1.567.673-1.567 1.5V12H2.612C1.172 12 0 10.879 0 9.5v-7C0 1.122 1.172 0 2.612 0h7.312c1.44 0 2.612 1.122 2.612 2.5m-8.88 6.25c0-.414-.35-.75-.783-.75s-.784.336-.784.75.351.75.784.75c.432 0 .783-.336.783-.75m0-2.75c0-.414-.35-.75-.783-.75s-.784.336-.784.75.351.75.784.75c.432 0 .783-.336.783-.75m0-2.75c0-.414-.35-.75-.783-.75s-.784.336-.784.75.351.75.784.75c.432 0 .783-.336.783-.75" }) })));
|
3
|
-
export default VolumeIconLow;
|
4
|
-
//# sourceMappingURL=VolumeIconLow%20copy.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"VolumeIconLow copy.js","sourceRoot":"","sources":["../../../src/components/icons/VolumeIconLow copy.tsx"],"names":[],"mappings":";AACA,MAAM,aAAa,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CACxD,4BACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,EACZ,IAAI,EAAC,MAAM,EACX,OAAO,EAAC,WAAW,IACf,KAAK,cAET,eACE,IAAI,EAAC,MAAM,EACX,CAAC,EAAC,ufAAuf,GACzf,IACE,CACP,CAAC;AACF,eAAe,aAAa,CAAC"}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import type { SVGProps } from "react";
|
2
|
-
const VolumeIconLow = (props: SVGProps<SVGSVGElement>) => (
|
3
|
-
<svg
|
4
|
-
xmlns="http://www.w3.org/2000/svg"
|
5
|
-
width="1em"
|
6
|
-
height="1em"
|
7
|
-
fill="none"
|
8
|
-
viewBox="0 0 13 12"
|
9
|
-
{...props}
|
10
|
-
>
|
11
|
-
<path
|
12
|
-
fill="#fff"
|
13
|
-
d="M12.428 9a2.5 2.5 0 0 1-.657 1.053l-1.27 1.214a2.6 2.6 0 0 1-1.1.63V9.5c0-.276.235-.5.523-.5zm.108-6.5V8H9.924c-.864 0-1.567.673-1.567 1.5V12H2.612C1.172 12 0 10.879 0 9.5v-7C0 1.122 1.172 0 2.612 0h7.312c1.44 0 2.612 1.122 2.612 2.5m-8.88 6.25c0-.414-.35-.75-.783-.75s-.784.336-.784.75.351.75.784.75c.432 0 .783-.336.783-.75m0-2.75c0-.414-.35-.75-.783-.75s-.784.336-.784.75.351.75.784.75c.432 0 .783-.336.783-.75m0-2.75c0-.414-.35-.75-.783-.75s-.784.336-.784.75.351.75.784.75c.432 0 .783-.336.783-.75"
|
14
|
-
/>
|
15
|
-
</svg>
|
16
|
-
);
|
17
|
-
export default VolumeIconLow;
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
const SvgSubIcon = (props) => (_jsxs("svg", { fill: "white", width: "1em", height: "1em", viewBox: "0 0 15 15", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("title", { children: "ionicons-v5-g" }), _jsx("path", { d: "M296,416.19a23.92,23.92,0,0,1-14.21-4.69l-.66-.51-91.46-75H120a24,24,0,0,1-24-24V200a24,24,0,0,1,24-24h69.65l91.46-75,.66-.51A24,24,0,0,1,320,119.83V392.17a24,24,0,0,1-24,24Z" }), _jsx("path", { d: "M384,336a16,16,0,0,1-14.29-23.18c9.49-18.9,14.3-38,14.3-56.82,0-19.36-4.66-37.92-14.25-56.73a16,16,0,0,1,28.5-14.54C410.2,208.16,416,231.47,416,256c0,23.83-6,47.78-17.7,71.18A16,16,0,0,1,384,336Z" })] }));
|
3
|
-
export default SvgSubIcon;
|
4
|
-
//# sourceMappingURL=VolumeLowIcon.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"VolumeLowIcon.js","sourceRoot":"","sources":["../../../src/components/icons/VolumeLowIcon.tsx"],"names":[],"mappings":";AACA,MAAM,UAAU,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CACrD,eACE,IAAI,EAAC,OAAO,EACZ,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,EACZ,OAAO,EAAC,WAAW,EACnB,KAAK,EAAC,4BAA4B,aAElC,4CAA4B,EAC5B,eAAM,CAAC,EAAC,gLAAgL,GAAG,EAC3L,eAAM,CAAC,EAAC,qMAAqM,GAAG,IAC5M,CACP,CAAC;AACF,eAAe,UAAU,CAAC"}
|