diff --git a/package-lock.json b/package-lock.json index e18ffd8..4811381 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,6 +30,7 @@ "react-konami-code": "^2.3.0", "react-material-ui-carousel": "^3.4.2", "react-multi-carousel": "^2.8.3", + "react-player": "^2.12.0", "react-router-dom": "^6.11.0", "tauri-plugin-store-api": "github:tauri-apps/tauri-plugin-store", "uuid": "^9.0.0", @@ -2151,6 +2152,14 @@ } } }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", @@ -2616,6 +2625,11 @@ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" }, + "node_modules/load-script": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/load-script/-/load-script-1.0.0.tgz", + "integrity": "sha512-kPEjMFtZvwL9TaZo0uZ2ml+Ye9HUMmPwbYRJ324qF9tqMejwykJ5ggTyvzmrbBeapCAbk98BSbTeovHEEP1uCA==" + }, "node_modules/loose-envify": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", @@ -2659,6 +2673,11 @@ "npm": ">=5" } }, + "node_modules/memoize-one": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-5.2.1.tgz", + "integrity": "sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==" + }, "node_modules/mime-db": { "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", @@ -2964,6 +2983,11 @@ "react": "^18.2.0" } }, + "node_modules/react-fast-compare": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-3.2.1.tgz", + "integrity": "sha512-xTYf9zFim2pEif/Fw16dBiXpe0hoy5PxcD8+OwBnTtNLfIm3g6WxhKNurY+6OmdH1u6Ta/W/Vl6vjbYP1MFnDg==" + }, "node_modules/react-is": { "version": "18.2.0", "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", @@ -3045,6 +3069,21 @@ "node": ">=8" } }, + "node_modules/react-player": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/react-player/-/react-player-2.12.0.tgz", + "integrity": "sha512-rymLRz/2GJJD+Wc01S7S+i9pGMFYnNmQibR2gVE3KmHJCBNN8BhPAlOPTGZtn1uKpJ6p4RPLlzPQ1OLreXd8gw==", + "dependencies": { + "deepmerge": "^4.0.0", + "load-script": "^1.0.0", + "memoize-one": "^5.1.1", + "prop-types": "^15.7.2", + "react-fast-compare": "^3.0.1" + }, + "peerDependencies": { + "react": ">=16.6.0" + } + }, "node_modules/react-refresh": { "version": "0.14.0", "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.14.0.tgz", diff --git a/package.json b/package.json index 893c7f4..9baff6c 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "react-konami-code": "^2.3.0", "react-material-ui-carousel": "^3.4.2", "react-multi-carousel": "^2.8.3", + "react-player": "^2.12.0", "react-router-dom": "^6.11.0", "tauri-plugin-store-api": "github:tauri-apps/tauri-plugin-store", "uuid": "^9.0.0", diff --git a/src/App.jsx b/src/App.jsx index 04048b2..d2c3a48 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -50,7 +50,7 @@ import FavouritePage from "./routes/favourite/index.jsx"; import Settings from "./routes/settings"; import About from "./routes/about"; -import VideoPlayer from "./routes/player/videoPlayer.jsx"; +import { VideoPlayer } from "./routes/player/videoPlayer.jsx"; import { SideMenu } from "./components/menu/sidemenu.jsx"; import { AppBar } from "./components/appBar/appBar.jsx"; diff --git a/src/components/player/video.jsx b/src/components/player/video.jsx deleted file mode 100644 index 21fc74c..0000000 --- a/src/components/player/video.jsx +++ /dev/null @@ -1,56 +0,0 @@ -/** @format */ - -import React from "react"; -import videojs from "video.js"; -import "./video.module.scss"; - -export const VideoJS = (props) => { - const videoRef = React.useRef(null); - const playerRef = React.useRef(null); - const { options, onReady } = props; - - React.useEffect(() => { - // Make sure Video.js player is only initialized once - if (!playerRef.current) { - // The Video.js player needs to be _inside_ the component el for React 18 Strict Mode. - const videoElement = document.createElement("video-js"); - - videoElement.classList.add("vjs-big-play-centered"); - videoRef.current.appendChild(videoElement); - - const player = (playerRef.current = videojs( - videoElement, - options, - () => { - videojs.log("player is ready"); - onReady && onReady(player); - }, - )); - } else { - const player = playerRef.current; - - player.autoplay(options.autoplay); - player.src(options.sources); - } - }, [options, videoRef]); - - // Dispose the Video.js player when the functional component unmounts - React.useEffect(() => { - const player = playerRef.current; - - return () => { - if (player && !player.isDisposed()) { - player.dispose(); - playerRef.current = null; - } - }; - }, [playerRef]); - - return ( -
-
-
- ); -}; - -export default VideoJS; diff --git a/src/components/player/video.module.scss b/src/components/player/video.module.scss deleted file mode 100644 index 4845ad5..0000000 --- a/src/components/player/video.module.scss +++ /dev/null @@ -1,2002 +0,0 @@ -/** @format */ - -.vjs-modal-dialog .vjs-modal-dialog-content, -.video-js .vjs-modal-dialog, -.vjs-button > .vjs-icon-placeholder:before, -.video-js .vjs-big-play-button .vjs-icon-placeholder:before { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; -} - -.vjs-button > .vjs-icon-placeholder:before, -.video-js .vjs-big-play-button .vjs-icon-placeholder:before { - text-align: center; -} - -@font-face { - font-family: VideoJ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7uMMbOzjuDc0EmXCP/C7cJ38Iu+RP4QEe8CU8pP8WHmOPX2EPz87TPo202ey2OjlnQSXV/6arOjWFmvszMWtd6CqwOlKHq6ovycLaWMWVydXKFFZnmVFlZU46tP7R2nI5ncbi/dDkfDtFBA2DDXbYkhKc+V0Bqs5Zt9JM1HQGBRTm/EezTmZNKtpcAMs9Yu6AK9caF76zoLWIWcfMGOSkVduvSWechqZsz040Ib2PY3urxBJTzriT95lipz+TN1fmAAAAeJxtkXlT2zAQxf1C4thJAwRajt4HRy8VMwwfSJHXsQZZcnUQ+PYoTtwpM+wf2t9brWZ2n5JBsol58nJcYYAdDDFCijEy5JhgileYYRd72MccBzjEa7zBEY5xglO8xTu8xwd8xCd8xhd8xTec4RwXuMR3/MBP/MJvMPzBFYpk2Cr+OF0fTEgrFI1aHhxN740KDbEmeJpsWZlVj40s+45aLuv9KijlhCXSjLQnu/d/4UH6sWul1mRzFxZeekUuE7z10mg3qMtM1FGQddPSrLQyvJR6OaukItYXDp6pCJrmz0umqkau5pZ2hFmm7m+ImG5W2t0kZoJXUtPhVnYTbbdOBdeCVGqpJe7XKTqSbRK7zbdwXfR0U+SVsStuS3Y76em6+Ic3xYiHUppc04Nn0lMzay3dSxNcp8auDlWlaCi48yetFD7Y9USsx87G45cuop1ZxQUtjLnL4j53FO0a+5X08UXqQ7NQNo92R0XOz7sxWEnxN2TneJI8Acttu4Q=) - format("woff"); - font-weight: normal; - font-style: normal; -} -.vjs-icon-play, -.video-js .vjs-play-control .vjs-icon-placeholder, -.video-js .vjs-big-play-button .vjs-icon-placeholder:before { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-play:before, -.video-js .vjs-play-control .vjs-icon-placeholder:before, -.video-js .vjs-big-play-button .vjs-icon-placeholder:before { - content: "\f101"; -} - -.vjs-icon-play-circle { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-play-circle:before { - content: "\f102"; -} - -.vjs-icon-pause, -.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-pause:before, -.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder:before { - content: "\f103"; -} - -.vjs-icon-volume-mute, -.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-volume-mute:before, -.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder:before { - content: "\f104"; -} - -.vjs-icon-volume-low, -.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-volume-low:before, -.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder:before { - content: "\f105"; -} - -.vjs-icon-volume-mid, -.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-volume-mid:before, -.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder:before { - content: "\f106"; -} - -.vjs-icon-volume-high, -.video-js .vjs-mute-control .vjs-icon-placeholder { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-volume-high:before, -.video-js .vjs-mute-control .vjs-icon-placeholder:before { - content: "\f107"; -} - -.vjs-icon-fullscreen-enter, -.video-js .vjs-fullscreen-control .vjs-icon-placeholder { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-fullscreen-enter:before, -.video-js .vjs-fullscreen-control .vjs-icon-placeholder:before { - content: "\f108"; -} - -.vjs-icon-fullscreen-exit, -.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-fullscreen-exit:before, -.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder:before { - content: "\f109"; -} - -.vjs-icon-spinner { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-spinner:before { - content: "\f10a"; -} - -.vjs-icon-subtitles, -.video-js .vjs-subs-caps-button .vjs-icon-placeholder, -.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder, -.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder, -.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder, -.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder, -.video-js .vjs-subtitles-button .vjs-icon-placeholder { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-subtitles:before, -.video-js .vjs-subs-caps-button .vjs-icon-placeholder:before, -.video-js.video-js:lang(en-GB) - .vjs-subs-caps-button - .vjs-icon-placeholder:before, -.video-js.video-js:lang(en-IE) - .vjs-subs-caps-button - .vjs-icon-placeholder:before, -.video-js.video-js:lang(en-AU) - .vjs-subs-caps-button - .vjs-icon-placeholder:before, -.video-js.video-js:lang(en-NZ) - .vjs-subs-caps-button - .vjs-icon-placeholder:before, -.video-js .vjs-subtitles-button .vjs-icon-placeholder:before { - content: "\f10b"; -} - -.vjs-icon-captions, -.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder, -.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder, -.video-js .vjs-captions-button .vjs-icon-placeholder { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-captions:before, -.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder:before, -.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder:before, -.video-js .vjs-captions-button .vjs-icon-placeholder:before { - content: "\f10c"; -} - -.vjs-icon-hd { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-hd:before { - content: "\f10d"; -} - -.vjs-icon-chapters, -.video-js .vjs-chapters-button .vjs-icon-placeholder { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-chapters:before, -.video-js .vjs-chapters-button .vjs-icon-placeholder:before { - content: "\f10e"; -} - -.vjs-icon-downloading { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-downloading:before { - content: "\f10f"; -} - -.vjs-icon-file-download { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-file-download:before { - content: "\f110"; -} - -.vjs-icon-file-download-done { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-file-download-done:before { - content: "\f111"; -} - -.vjs-icon-file-download-off { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-file-download-off:before { - content: "\f112"; -} - -.vjs-icon-share { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-share:before { - content: "\f113"; -} - -.vjs-icon-cog { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-cog:before { - content: "\f114"; -} - -.vjs-icon-square { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-square:before { - content: "\f115"; -} - -.vjs-icon-circle, -.vjs-seek-to-live-control .vjs-icon-placeholder, -.video-js .vjs-volume-level, -.video-js .vjs-play-progress { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-circle:before, -.vjs-seek-to-live-control .vjs-icon-placeholder:before, -.video-js .vjs-volume-level:before, -.video-js .vjs-play-progress:before { - content: "\f116"; -} - -.vjs-icon-circle-outline { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-circle-outline:before { - content: "\f117"; -} - -.vjs-icon-circle-inner-circle { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-circle-inner-circle:before { - content: "\f118"; -} - -.vjs-icon-cancel, -.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-cancel:before, -.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder:before { - content: "\f119"; -} - -.vjs-icon-repeat { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-repeat:before { - content: "\f11a"; -} - -.vjs-icon-replay, -.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-replay:before, -.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder:before { - content: "\f11b"; -} - -.vjs-icon-replay-5, -.video-js .vjs-skip-backward-5 .vjs-icon-placeholder { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-replay-5:before, -.video-js .vjs-skip-backward-5 .vjs-icon-placeholder:before { - content: "\f11c"; -} - -.vjs-icon-replay-10, -.video-js .vjs-skip-backward-10 .vjs-icon-placeholder { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-replay-10:before, -.video-js .vjs-skip-backward-10 .vjs-icon-placeholder:before { - content: "\f11d"; -} - -.vjs-icon-replay-30, -.video-js .vjs-skip-backward-30 .vjs-icon-placeholder { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-replay-30:before, -.video-js .vjs-skip-backward-30 .vjs-icon-placeholder:before { - content: "\f11e"; -} - -.vjs-icon-forward-5, -.video-js .vjs-skip-forward-5 .vjs-icon-placeholder { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-forward-5:before, -.video-js .vjs-skip-forward-5 .vjs-icon-placeholder:before { - content: "\f11f"; -} - -.vjs-icon-forward-10, -.video-js .vjs-skip-forward-10 .vjs-icon-placeholder { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-forward-10:before, -.video-js .vjs-skip-forward-10 .vjs-icon-placeholder:before { - content: "\f120"; -} - -.vjs-icon-forward-30, -.video-js .vjs-skip-forward-30 .vjs-icon-placeholder { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-forward-30:before, -.video-js .vjs-skip-forward-30 .vjs-icon-placeholder:before { - content: "\f121"; -} - -.vjs-icon-audio, -.video-js .vjs-audio-button .vjs-icon-placeholder { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-audio:before, -.video-js .vjs-audio-button .vjs-icon-placeholder:before { - content: "\f122"; -} - -.vjs-icon-next-item { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-next-item:before { - content: "\f123"; -} - -.vjs-icon-previous-item { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-previous-item:before { - content: "\f124"; -} - -.vjs-icon-shuffle { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-shuffle:before { - content: "\f125"; -} - -.vjs-icon-cast { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-cast:before { - content: "\f126"; -} - -.vjs-icon-picture-in-picture-enter, -.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-picture-in-picture-enter:before, -.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder:before { - content: "\f127"; -} - -.vjs-icon-picture-in-picture-exit, -.video-js.vjs-picture-in-picture - .vjs-picture-in-picture-control - .vjs-icon-placeholder { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-picture-in-picture-exit:before, -.video-js.vjs-picture-in-picture - .vjs-picture-in-picture-control - .vjs-icon-placeholder:before { - content: "\f128"; -} - -.vjs-icon-facebook { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-facebook:before { - content: "\f129"; -} - -.vjs-icon-linkedin { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-linkedin:before { - content: "\f12a"; -} - -.vjs-icon-twitter { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-twitter:before { - content: "\f12b"; -} - -.vjs-icon-tumblr { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-tumblr:before { - content: "\f12c"; -} - -.vjs-icon-pinterest { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-pinterest:before { - content: "\f12d"; -} - -.vjs-icon-audio-description, -.video-js .vjs-descriptions-button .vjs-icon-placeholder { - font-family: VideoJS; - font-weight: normal; - font-style: normal; -} -.vjs-icon-audio-description:before, -.video-js .vjs-descriptions-button .vjs-icon-placeholder:before { - content: "\f12e"; -} - -.video-js { - display: inline-block; - vertical-align: top; - box-sizing: border-box; - color: #fff; - background-color: #000; - position: relative; - padding: 0; - font-size: 10px; - line-height: 1; - font-weight: normal; - font-style: normal; - font-family: Arial, Helvetica, sans-serif; - word-break: initial; -} -.video-js:-moz-full-screen { - position: absolute; -} -.video-js:-webkit-full-screen { - width: 100% !important; - height: 100% !important; -} - -.video-js[tabindex="-1"] { - outline: none; -} - -.video-js *, -.video-js *:before, -.video-js *:after { - box-sizing: inherit; -} - -.video-js ul { - font-family: inherit; - font-size: inherit; - line-height: inherit; - list-style-position: outside; - margin-left: 0; - margin-right: 0; - margin-top: 0; - margin-bottom: 0; -} - -.video-js.vjs-fluid, -.video-js.vjs-16-9, -.video-js.vjs-4-3, -.video-js.vjs-9-16, -.video-js.vjs-1-1 { - width: 100%; - max-width: 100%; -} - -.video-js.vjs-fluid:not(.vjs-audio-only-mode), -.video-js.vjs-16-9:not(.vjs-audio-only-mode), -.video-js.vjs-4-3:not(.vjs-audio-only-mode), -.video-js.vjs-9-16:not(.vjs-audio-only-mode), -.video-js.vjs-1-1:not(.vjs-audio-only-mode) { - height: 0; -} - -.video-js.vjs-16-9:not(.vjs-audio-only-mode) { - padding-top: 56.25%; -} - -.video-js.vjs-4-3:not(.vjs-audio-only-mode) { - padding-top: 75%; -} - -.video-js.vjs-9-16:not(.vjs-audio-only-mode) { - padding-top: 177.7777777778%; -} - -.video-js.vjs-1-1:not(.vjs-audio-only-mode) { - padding-top: 100%; -} - -.video-js.vjs-fill:not(.vjs-audio-only-mode) { - width: 100vw; - height: 100vh; -} - -.video-js .vjs-tech { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; -} - -.video-js.vjs-audio-only-mode .vjs-tech { - display: none; -} - -body.vjs-full-window, -body.vjs-pip-window { - padding: 0; - margin: 0; - height: 100%; -} - -.vjs-full-window .video-js.vjs-fullscreen, -body.vjs-pip-window .video-js { - position: fixed; - overflow: hidden; - z-index: 1000; - left: 0; - top: 0; - bottom: 0; - right: 0; -} - -.video-js.vjs-fullscreen:not(.vjs-ios-native-fs), -body.vjs-pip-window .video-js { - width: 100% !important; - height: 100% !important; - padding-top: 0 !important; -} - -.video-js.vjs-fullscreen.vjs-user-inactive { - cursor: none; -} - -.vjs-pip-container .vjs-pip-text { - position: absolute; - bottom: 10%; - font-size: 2em; - background-color: rgba(0, 0, 0, 0.7); - padding: 0.5em; - text-align: center; - width: 100%; -} - -.vjs-layout-tiny.vjs-pip-container .vjs-pip-text, -.vjs-layout-x-small.vjs-pip-container .vjs-pip-text, -.vjs-layout-small.vjs-pip-container .vjs-pip-text { - bottom: 0; - font-size: 1.4em; -} - -.vjs-hidden { - display: none !important; -} - -.vjs-disabled { - opacity: 0.5; - cursor: default; -} - -.video-js .vjs-offscreen { - height: 1px; - left: -9999px; - position: absolute; - top: 0; - width: 1px; -} - -.vjs-lock-showing { - display: block !important; - opacity: 1 !important; - visibility: visible !important; -} - -.vjs-no-js { - padding: 20px; - color: #fff; - background-color: #000; - font-size: 18px; - font-family: Arial, Helvetica, sans-serif; - text-align: center; - width: 300px; - height: 150px; - margin: 0px auto; -} - -.vjs-no-js a, -.vjs-no-js a:visited { - color: #66a8cc; -} - -.video-js .vjs-big-play-button { - font-size: 3em; - line-height: 1.5em; - height: 1.63332em; - width: 3em; - display: block; - position: absolute; - top: 50%; - left: 50%; - padding: 0; - margin-top: -0.81666em; - margin-left: -1.5em; - cursor: pointer; - opacity: 1; - border: 0.06666em solid #fff; - background-color: #2b333f; - background-color: rgba(43, 51, 63, 0.7); - border-radius: 0.3em; - transition: all 0.4s; -} -.video-js:hover .vjs-big-play-button, -.video-js .vjs-big-play-button:focus { - border-color: #fff; - background-color: #73859f; - background-color: rgba(115, 133, 159, 0.5); - transition: all 0s; -} - -.vjs-controls-disabled .vjs-big-play-button, -.vjs-has-started .vjs-big-play-button, -.vjs-using-native-controls .vjs-big-play-button, -.vjs-error .vjs-big-play-button { - display: none; -} - -.vjs-has-started.vjs-paused.vjs-show-big-play-button-on-pause - .vjs-big-play-button { - display: block; -} - -.video-js button { - background: none; - border: none; - color: inherit; - display: inline-block; - font-size: inherit; - line-height: inherit; - text-transform: none; - text-decoration: none; - transition: none; - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; -} - -.vjs-control .vjs-button { - width: 100%; - height: 100%; -} - -.video-js .vjs-control.vjs-close-button { - cursor: pointer; - height: 3em; - position: absolute; - right: 0; - top: 0.5em; - z-index: 2; -} -.video-js .vjs-modal-dialog { - background: rgba(0, 0, 0, 0.8); - background: linear-gradient( - 180deg, - rgba(0, 0, 0, 0.8), - rgba(255, 255, 255, 0) - ); - overflow: auto; -} - -.video-js .vjs-modal-dialog > * { - box-sizing: border-box; -} - -.vjs-modal-dialog .vjs-modal-dialog-content { - font-size: 1.2em; - line-height: 1.5; - padding: 20px 24px; - z-index: 1; -} - -.vjs-menu-button { - cursor: pointer; -} - -.vjs-menu-button.vjs-disabled { - cursor: default; -} - -.vjs-workinghover .vjs-menu-button.vjs-disabled:hover .vjs-menu { - display: none; -} - -.vjs-menu .vjs-menu-content { - display: block; - padding: 0; - margin: 0; - font-family: Arial, Helvetica, sans-serif; - overflow: auto; -} - -.vjs-menu .vjs-menu-content > * { - box-sizing: border-box; -} - -.vjs-scrubbing .vjs-control.vjs-menu-button:hover .vjs-menu { - display: none; -} - -.vjs-menu li { - list-style: none; - margin: 0; - padding: 0.2em 0; - line-height: 1.4em; - font-size: 1.2em; - text-align: center; - text-transform: lowercase; -} - -.vjs-menu li.vjs-menu-item:focus, -.vjs-menu li.vjs-menu-item:hover, -.js-focus-visible .vjs-menu li.vjs-menu-item:hover { - background-color: #73859f; - background-color: rgba(115, 133, 159, 0.5); -} - -.vjs-menu li.vjs-selected, -.vjs-menu li.vjs-selected:focus, -.vjs-menu li.vjs-selected:hover, -.js-focus-visible .vjs-menu li.vjs-selected:hover { - background-color: #fff; - color: #2b333f; -} - -.video-js .vjs-menu *:not(.vjs-selected):focus:not(:focus-visible), -.js-focus-visible .vjs-menu *:not(.vjs-selected):focus:not(.focus-visible) { - background: none; -} - -.vjs-menu li.vjs-menu-title { - text-align: center; - text-transform: uppercase; - font-size: 1em; - line-height: 2em; - padding: 0; - margin: 0 0 0.3em 0; - font-weight: bold; - cursor: default; -} - -.vjs-menu-button-popup .vjs-menu { - display: none; - position: absolute; - bottom: 0; - width: 10em; - left: -3em; - height: 0em; - margin-bottom: 1.5em; - border-top-color: rgba(43, 51, 63, 0.7); -} - -.vjs-pip-window .vjs-menu-button-popup .vjs-menu { - left: unset; - right: 1em; -} - -.vjs-menu-button-popup .vjs-menu .vjs-menu-content { - background-color: #2b333f; - background-color: rgba(43, 51, 63, 0.7); - position: absolute; - width: 100%; - bottom: 1.5em; - max-height: 15em; -} - -.vjs-layout-tiny .vjs-menu-button-popup .vjs-menu .vjs-menu-content, -.vjs-layout-x-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content { - max-height: 5em; -} - -.vjs-layout-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content { - max-height: 10em; -} - -.vjs-layout-medium .vjs-menu-button-popup .vjs-menu .vjs-menu-content { - max-height: 14em; -} - -.vjs-layout-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content, -.vjs-layout-x-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content, -.vjs-layout-huge .vjs-menu-button-popup .vjs-menu .vjs-menu-content { - max-height: 25em; -} - -.vjs-workinghover .vjs-menu-button-popup.vjs-hover .vjs-menu, -.vjs-menu-button-popup .vjs-menu.vjs-lock-showing { - display: block; -} - -.video-js .vjs-menu-button-inline { - transition: all 0.4s; - overflow: hidden; -} - -.video-js .vjs-menu-button-inline:before { - width: 2.222222222em; -} - -.video-js .vjs-menu-button-inline:hover, -.video-js .vjs-menu-button-inline:focus, -.video-js .vjs-menu-button-inline.vjs-slider-active { - width: 12em; -} - -.vjs-menu-button-inline .vjs-menu { - opacity: 0; - height: 100%; - width: auto; - position: absolute; - left: 4em; - top: 0; - padding: 0; - margin: 0; - transition: all 0.4s; -} - -.vjs-menu-button-inline:hover .vjs-menu, -.vjs-menu-button-inline:focus .vjs-menu, -.vjs-menu-button-inline.vjs-slider-active .vjs-menu { - display: block; - opacity: 1; -} - -.vjs-menu-button-inline .vjs-menu-content { - width: auto; - height: 100%; - margin: 0; - overflow: hidden; -} - -.video-js .vjs-control-bar { - display: none; - width: 100%; - position: absolute; - bottom: 0; - left: 0; - right: 0; - height: 3em; - background-color: #2b333f; - background-color: rgba(43, 51, 63, 0.7); -} - -.vjs-has-started .vjs-control-bar, -.vjs-audio-only-mode .vjs-control-bar { - display: flex; - visibility: visible; - opacity: 1; - transition: visibility 0.1s, opacity 0.1s; -} - -.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar { - visibility: visible; - opacity: 0; - pointer-events: none; - transition: visibility 1s, opacity 1s; -} - -.vjs-controls-disabled .vjs-control-bar, -.vjs-using-native-controls .vjs-control-bar, -.vjs-error .vjs-control-bar { - display: none !important; -} - -.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar, -.vjs-audio-only-mode.vjs-has-started.vjs-user-inactive.vjs-playing - .vjs-control-bar { - opacity: 1; - visibility: visible; - pointer-events: auto; -} - -.video-js .vjs-control { - position: relative; - text-align: center; - margin: 0; - padding: 0; - height: 100%; - width: 4em; - flex: none; -} - -.video-js .vjs-control.vjs-visible-text { - width: auto; - padding-left: 1em; - padding-right: 1em; -} - -.vjs-button > .vjs-icon-placeholder:before { - font-size: 1.8em; - line-height: 1.67; -} - -.vjs-button > .vjs-icon-placeholder { - display: block; -} - -.video-js .vjs-control:focus:before, -.video-js .vjs-control:hover:before, -.video-js .vjs-control:focus { - text-shadow: 0em 0em 1em white; -} - -.video-js *:not(.vjs-visible-text) > .vjs-control-text { - border: 0; - clip: rect(0 0 0 0); - height: 1px; - overflow: hidden; - padding: 0; - position: absolute; - width: 1px; -} - -.video-js .vjs-custom-control-spacer { - display: none; -} - -.video-js .vjs-progress-control { - cursor: pointer; - flex: auto; - display: flex; - align-items: center; - min-width: 4em; - touch-action: none; -} - -.video-js .vjs-progress-control.disabled { - cursor: default; -} - -.vjs-live .vjs-progress-control { - display: none; -} - -.vjs-liveui .vjs-progress-control { - display: flex; - align-items: center; -} - -.video-js .vjs-progress-holder { - flex: auto; - transition: all 0.2s; - height: 0.3em; -} - -.video-js .vjs-progress-control .vjs-progress-holder { - margin: 0 10px; -} - -.video-js .vjs-progress-control:hover .vjs-progress-holder { - font-size: 1.6666666667em; -} - -.video-js .vjs-progress-control:hover .vjs-progress-holder.disabled { - font-size: 1em; -} - -.video-js .vjs-progress-holder .vjs-play-progress, -.video-js .vjs-progress-holder .vjs-load-progress, -.video-js .vjs-progress-holder .vjs-load-progress div { - position: absolute; - display: block; - height: 100%; - margin: 0; - padding: 0; - width: 0; -} - -.video-js .vjs-play-progress { - background-color: #fff; -} -.video-js .vjs-play-progress:before { - font-size: 0.9em; - position: absolute; - right: -0.5em; - line-height: 0.35em; - z-index: 1; -} - -.video-js .vjs-load-progress { - background: rgba(115, 133, 159, 0.5); -} - -.video-js .vjs-load-progress div { - background: rgba(115, 133, 159, 0.75); -} - -.video-js .vjs-time-tooltip { - background-color: #fff; - background-color: rgba(255, 255, 255, 0.8); - border-radius: 0.3em; - color: #000; - float: right; - font-family: Arial, Helvetica, sans-serif; - font-size: 1em; - padding: 6px 8px 8px 8px; - pointer-events: none; - position: absolute; - top: -3.4em; - visibility: hidden; - z-index: 1; -} - -.video-js .vjs-progress-holder:focus .vjs-time-tooltip { - display: none; -} - -.video-js .vjs-progress-control:hover .vjs-time-tooltip, -.video-js - .vjs-progress-control:hover - .vjs-progress-holder:focus - .vjs-time-tooltip { - display: block; - font-size: 0.6em; - visibility: visible; -} - -.video-js .vjs-progress-control.disabled:hover .vjs-time-tooltip { - font-size: 1em; -} - -.video-js .vjs-progress-control .vjs-mouse-display { - display: none; - position: absolute; - width: 1px; - height: 100%; - background-color: #000; - z-index: 1; -} - -.video-js .vjs-progress-control:hover .vjs-mouse-display { - display: block; -} - -.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display { - visibility: hidden; - opacity: 0; - transition: visibility 1s, opacity 1s; -} - -.vjs-mouse-display .vjs-time-tooltip { - color: #fff; - background-color: #000; - background-color: rgba(0, 0, 0, 0.8); -} - -.video-js .vjs-slider { - position: relative; - cursor: pointer; - padding: 0; - margin: 0 0.45em 0 0.45em; - /* iOS Safari */ - -webkit-touch-callout: none; - /* Safari */ - -webkit-user-select: none; - /* Konqueror HTML */ - /* Firefox */ - -moz-user-select: none; - /* Internet Explorer/Edge */ - /* Non-prefixed version, currently supported by Chrome and Opera */ - user-select: none; - background-color: #73859f; - background-color: rgba(115, 133, 159, 0.5); -} - -.video-js .vjs-slider.disabled { - cursor: default; -} - -.video-js .vjs-slider:focus { - text-shadow: 0em 0em 1em white; - box-shadow: 0 0 1em #fff; -} - -.video-js .vjs-mute-control { - cursor: pointer; - flex: none; -} -.video-js .vjs-volume-control { - cursor: pointer; - margin-right: 1em; - display: flex; -} - -.video-js .vjs-volume-control.vjs-volume-horizontal { - width: 5em; -} - -.video-js .vjs-volume-panel .vjs-volume-control { - visibility: visible; - opacity: 0; - width: 1px; - height: 1px; - margin-left: -1px; -} - -.video-js .vjs-volume-panel { - transition: width 1s; -} -.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control, -.video-js .vjs-volume-panel:active .vjs-volume-control, -.video-js .vjs-volume-panel:focus .vjs-volume-control, -.video-js .vjs-volume-panel .vjs-volume-control:active, -.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control ~ .vjs-volume-control, -.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active { - visibility: visible; - opacity: 1; - position: relative; - transition: visibility 0.1s, opacity 0.1s, height 0.1s, width 0.1s, left 0s, - top 0s; -} -.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-horizontal, -.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-horizontal, -.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-horizontal, -.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-horizontal, -.video-js - .vjs-volume-panel.vjs-hover - .vjs-mute-control - ~ .vjs-volume-control.vjs-volume-horizontal, -.video-js - .vjs-volume-panel - .vjs-volume-control.vjs-slider-active.vjs-volume-horizontal { - width: 5em; - height: 3em; - margin-right: 0; -} -.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-vertical, -.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-vertical, -.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-vertical, -.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-vertical, -.video-js - .vjs-volume-panel.vjs-hover - .vjs-mute-control - ~ .vjs-volume-control.vjs-volume-vertical, -.video-js - .vjs-volume-panel - .vjs-volume-control.vjs-slider-active.vjs-volume-vertical { - left: -3.5em; - transition: left 0s; -} -.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover, -.video-js .vjs-volume-panel.vjs-volume-panel-horizontal:active, -.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active { - width: 10em; - transition: width 0.1s; -} -.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-mute-toggle-only { - width: 4em; -} - -.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical { - height: 8em; - width: 3em; - left: -3000em; - transition: visibility 1s, opacity 1s, height 1s 1s, width 1s 1s, - left 1s 1s, top 1s 1s; -} - -.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal { - transition: visibility 1s, opacity 1s, height 1s 1s, width 1s, left 1s 1s, - top 1s 1s; -} - -.video-js .vjs-volume-panel { - display: flex; -} - -.video-js .vjs-volume-bar { - margin: 1.35em 0.45em; -} - -.vjs-volume-bar.vjs-slider-horizontal { - width: 5em; - height: 0.3em; -} - -.vjs-volume-bar.vjs-slider-vertical { - width: 0.3em; - height: 5em; - margin: 1.35em auto; -} - -.video-js .vjs-volume-level { - position: absolute; - bottom: 0; - left: 0; - background-color: #fff; -} -.video-js .vjs-volume-level:before { - position: absolute; - font-size: 0.9em; - z-index: 1; -} - -.vjs-slider-vertical .vjs-volume-level { - width: 0.3em; -} -.vjs-slider-vertical .vjs-volume-level:before { - top: -0.5em; - left: -0.3em; - z-index: 1; -} - -.vjs-slider-horizontal .vjs-volume-level { - height: 0.3em; -} -.vjs-slider-horizontal .vjs-volume-level:before { - line-height: 0.35em; - right: -0.5em; -} - -.video-js .vjs-volume-panel.vjs-volume-panel-vertical { - width: 4em; -} - -.vjs-volume-bar.vjs-slider-vertical .vjs-volume-level { - height: 100%; -} - -.vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level { - width: 100%; -} - -.video-js .vjs-volume-vertical { - width: 3em; - height: 8em; - bottom: 8em; - background-color: #2b333f; - background-color: rgba(43, 51, 63, 0.7); -} - -.video-js .vjs-volume-horizontal .vjs-menu { - left: -2em; -} - -.video-js .vjs-volume-tooltip { - background-color: #fff; - background-color: rgba(255, 255, 255, 0.8); - border-radius: 0.3em; - color: #000; - float: right; - font-family: Arial, Helvetica, sans-serif; - font-size: 1em; - padding: 6px 8px 8px 8px; - pointer-events: none; - position: absolute; - top: -3.4em; - visibility: hidden; - z-index: 1; -} - -.video-js .vjs-volume-control:hover .vjs-volume-tooltip, -.video-js - .vjs-volume-control:hover - .vjs-progress-holder:focus - .vjs-volume-tooltip { - display: block; - font-size: 1em; - visibility: visible; -} - -.video-js .vjs-volume-vertical:hover .vjs-volume-tooltip, -.video-js - .vjs-volume-vertical:hover - .vjs-progress-holder:focus - .vjs-volume-tooltip { - left: 1em; - top: -12px; -} - -.video-js .vjs-volume-control.disabled:hover .vjs-volume-tooltip { - font-size: 1em; -} - -.video-js .vjs-volume-control .vjs-mouse-display { - display: none; - position: absolute; - width: 100%; - height: 1px; - background-color: #000; - z-index: 1; -} - -.video-js .vjs-volume-horizontal .vjs-mouse-display { - width: 1px; - height: 100%; -} - -.video-js .vjs-volume-control:hover .vjs-mouse-display { - display: block; -} - -.video-js.vjs-user-inactive .vjs-volume-control .vjs-mouse-display { - visibility: hidden; - opacity: 0; - transition: visibility 1s, opacity 1s; -} - -.vjs-mouse-display .vjs-volume-tooltip { - color: #fff; - background-color: #000; - background-color: rgba(0, 0, 0, 0.8); -} - -.vjs-poster { - display: inline-block; - vertical-align: middle; - cursor: pointer; - margin: 0; - padding: 0; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - height: 100%; -} - -.vjs-has-started .vjs-poster, -.vjs-using-native-controls .vjs-poster { - display: none; -} - -.vjs-audio.vjs-has-started .vjs-poster, -.vjs-has-started.vjs-audio-poster-mode .vjs-poster, -.vjs-pip-container.vjs-has-started .vjs-poster { - display: block; -} - -.vjs-poster img { - width: 100%; - height: 100%; - -o-object-fit: contain; - object-fit: contain; -} - -.video-js .vjs-live-control { - display: flex; - align-items: flex-start; - flex: auto; - font-size: 1em; - line-height: 3em; -} - -.video-js:not(.vjs-live) .vjs-live-control, -.video-js.vjs-liveui .vjs-live-control { - display: none; -} - -.video-js .vjs-seek-to-live-control { - align-items: center; - cursor: pointer; - flex: none; - display: inline-flex; - height: 100%; - padding-left: 0.5em; - padding-right: 0.5em; - font-size: 1em; - line-height: 3em; - width: auto; - min-width: 4em; -} - -.video-js.vjs-live:not(.vjs-liveui) .vjs-seek-to-live-control, -.video-js:not(.vjs-live) .vjs-seek-to-live-control { - display: none; -} - -.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge { - cursor: auto; -} - -.vjs-seek-to-live-control .vjs-icon-placeholder { - margin-right: 0.5em; - color: #888; -} - -.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge .vjs-icon-placeholder { - color: red; -} - -.video-js .vjs-time-control { - flex: none; - font-size: 1em; - line-height: 3em; - min-width: 2em; - width: auto; - padding-left: 1em; - padding-right: 1em; -} - -.vjs-live .vjs-time-control, -.vjs-live .vjs-time-divider, -.video-js .vjs-current-time, -.video-js .vjs-duration { - display: none; -} - -.vjs-time-divider { - display: none; - line-height: 3em; -} - -.video-js .vjs-play-control { - cursor: pointer; -} - -.video-js .vjs-play-control .vjs-icon-placeholder { - flex: none; -} - -.vjs-text-track-display { - position: absolute; - bottom: 3em; - left: 0; - right: 0; - top: 0; - pointer-events: none; -} - -.video-js.vjs-controls-disabled .vjs-text-track-display, -.video-js.vjs-user-inactive.vjs-playing .vjs-text-track-display { - bottom: 1em; -} - -.video-js .vjs-text-track { - font-size: 1.4em; - text-align: center; - margin-bottom: 0.1em; -} - -.vjs-subtitles { - color: #fff; -} - -.vjs-captions { - color: #fc6; -} - -.vjs-tt-cue { - display: block; -} - -video::-webkit-media-text-track-display { - transform: translateY(-3em); -} - -.video-js.vjs-controls-disabled video::-webkit-media-text-track-display, -.video-js.vjs-user-inactive.vjs-playing - video::-webkit-media-text-track-display { - transform: translateY(-1.5em); -} - -.video-js .vjs-picture-in-picture-control { - cursor: pointer; - flex: none; -} -.video-js.vjs-audio-only-mode .vjs-picture-in-picture-control, -.vjs-pip-window .vjs-picture-in-picture-control { - display: none; -} - -.video-js .vjs-fullscreen-control { - cursor: pointer; - flex: none; -} -.video-js.vjs-audio-only-mode .vjs-fullscreen-control, -.vjs-pip-window .vjs-fullscreen-control { - display: none; -} - -.vjs-playback-rate > .vjs-menu-button, -.vjs-playback-rate .vjs-playback-rate-value { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; -} - -.vjs-playback-rate .vjs-playback-rate-value { - pointer-events: none; - font-size: 1.5em; - line-height: 2; - text-align: center; -} - -.vjs-playback-rate .vjs-menu { - width: 4em; - left: 0em; -} - -.vjs-error .vjs-error-display .vjs-modal-dialog-content { - font-size: 1.4em; - text-align: center; -} - -.vjs-error .vjs-error-display:before { - color: #fff; - content: "X"; - font-family: Arial, Helvetica, sans-serif; - font-size: 4em; - left: 0; - line-height: 1; - margin-top: -0.5em; - position: absolute; - text-shadow: 0.05em 0.05em 0.1em #000; - text-align: center; - top: 50%; - vertical-align: middle; - width: 100%; -} - -.vjs-loading-spinner { - display: none; - position: absolute; - top: 50%; - left: 50%; - margin: -25px 0 0 -25px; - opacity: 0.85; - text-align: left; - border: 6px solid rgba(43, 51, 63, 0.7); - box-sizing: border-box; - background-clip: padding-box; - width: 50px; - height: 50px; - border-radius: 25px; - visibility: hidden; -} - -.vjs-seeking .vjs-loading-spinner, -.vjs-waiting .vjs-loading-spinner { - display: block; - animation: vjs-spinner-show 0s linear 0.3s forwards; -} - -.vjs-loading-spinner:before, -.vjs-loading-spinner:after { - content: ""; - position: absolute; - margin: -6px; - box-sizing: inherit; - width: inherit; - height: inherit; - border-radius: inherit; - opacity: 1; - border: inherit; - border-color: transparent; - border-top-color: white; -} - -.vjs-seeking .vjs-loading-spinner:before, -.vjs-seeking .vjs-loading-spinner:after, -.vjs-waiting .vjs-loading-spinner:before, -.vjs-waiting .vjs-loading-spinner:after { - animation: vjs-spinner-spin 1.1s cubic-bezier(0.6, 0.2, 0, 0.8) infinite, - vjs-spinner-fade 1.1s linear infinite; -} - -.vjs-seeking .vjs-loading-spinner:before, -.vjs-waiting .vjs-loading-spinner:before { - border-top-color: rgb(255, 255, 255); -} - -.vjs-seeking .vjs-loading-spinner:after, -.vjs-waiting .vjs-loading-spinner:after { - border-top-color: rgb(255, 255, 255); - animation-delay: 0.44s; -} - -@keyframes vjs-spinner-show { - to { - visibility: visible; - } -} -@keyframes vjs-spinner-spin { - 100% { - transform: rotate(360deg); - } -} -@keyframes vjs-spinner-fade { - 0% { - border-top-color: #73859f; - } - 20% { - border-top-color: #73859f; - } - 35% { - border-top-color: white; - } - 60% { - border-top-color: #73859f; - } - 100% { - border-top-color: #73859f; - } -} -.video-js.vjs-audio-only-mode .vjs-captions-button { - display: none; -} - -.vjs-chapters-button .vjs-menu ul { - width: 24em; -} - -.video-js.vjs-audio-only-mode .vjs-descriptions-button { - display: none; -} - -.video-js - .vjs-subs-caps-button - + .vjs-menu - .vjs-captions-menu-item - .vjs-menu-item-text - .vjs-icon-placeholder { - vertical-align: middle; - display: inline-block; - margin-bottom: -0.1em; -} - -.video-js - .vjs-subs-caps-button - + .vjs-menu - .vjs-captions-menu-item - .vjs-menu-item-text - .vjs-icon-placeholder:before { - font-family: VideoJS; - content: "\f10c"; - font-size: 1.5em; - line-height: inherit; -} - -.video-js.vjs-audio-only-mode .vjs-subs-caps-button { - display: none; -} - -.video-js - .vjs-audio-button - + .vjs-menu - .vjs-main-desc-menu-item - .vjs-menu-item-text - .vjs-icon-placeholder { - vertical-align: middle; - display: inline-block; - margin-bottom: -0.1em; -} - -.video-js - .vjs-audio-button - + .vjs-menu - .vjs-main-desc-menu-item - .vjs-menu-item-text - .vjs-icon-placeholder:before { - font-family: VideoJS; - content: " \f12e"; - font-size: 1.5em; - line-height: inherit; -} - -.video-js.vjs-layout-small .vjs-current-time, -.video-js.vjs-layout-small .vjs-time-divider, -.video-js.vjs-layout-small .vjs-duration, -.video-js.vjs-layout-small .vjs-remaining-time, -.video-js.vjs-layout-small .vjs-playback-rate, -.video-js.vjs-layout-small .vjs-volume-control, -.video-js.vjs-layout-x-small .vjs-current-time, -.video-js.vjs-layout-x-small .vjs-time-divider, -.video-js.vjs-layout-x-small .vjs-duration, -.video-js.vjs-layout-x-small .vjs-remaining-time, -.video-js.vjs-layout-x-small .vjs-playback-rate, -.video-js.vjs-layout-x-small .vjs-volume-control, -.video-js.vjs-layout-tiny .vjs-current-time, -.video-js.vjs-layout-tiny .vjs-time-divider, -.video-js.vjs-layout-tiny .vjs-duration, -.video-js.vjs-layout-tiny .vjs-remaining-time, -.video-js.vjs-layout-tiny .vjs-playback-rate, -.video-js.vjs-layout-tiny .vjs-volume-control { - display: none; -} -.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover, -.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:active, -.video-js.vjs-layout-small - .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active, -.video-js.vjs-layout-small - .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover, -.video-js.vjs-layout-x-small - .vjs-volume-panel.vjs-volume-panel-horizontal:hover, -.video-js.vjs-layout-x-small - .vjs-volume-panel.vjs-volume-panel-horizontal:active, -.video-js.vjs-layout-x-small - .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active, -.video-js.vjs-layout-x-small - .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover, -.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:hover, -.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:active, -.video-js.vjs-layout-tiny - .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active, -.video-js.vjs-layout-tiny - .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover { - width: auto; - width: initial; -} -.video-js.vjs-layout-x-small .vjs-progress-control, -.video-js.vjs-layout-tiny .vjs-progress-control { - display: none; -} -.video-js.vjs-layout-x-small .vjs-custom-control-spacer { - flex: auto; - display: block; -} - -.vjs-modal-dialog.vjs-text-track-settings { - background-color: #2b333f; - background-color: rgba(43, 51, 63, 0.75); - color: #fff; - height: 70%; -} - -.vjs-text-track-settings .vjs-modal-dialog-content { - display: table; -} - -.vjs-text-track-settings .vjs-track-settings-colors, -.vjs-text-track-settings .vjs-track-settings-font, -.vjs-text-track-settings .vjs-track-settings-controls { - display: table-cell; -} - -.vjs-text-track-settings .vjs-track-settings-controls { - text-align: right; - vertical-align: bottom; -} - -@supports (display: grid) { - .vjs-text-track-settings .vjs-modal-dialog-content { - display: grid; - grid-template-columns: 1fr 1fr; - grid-template-rows: 1fr; - padding: 20px 24px 0px 24px; - } - .vjs-track-settings-controls .vjs-default-button { - margin-bottom: 20px; - } - .vjs-text-track-settings .vjs-track-settings-controls { - grid-column: 1/-1; - } - .vjs-layout-small .vjs-text-track-settings .vjs-modal-dialog-content, - .vjs-layout-x-small .vjs-text-track-settings .vjs-modal-dialog-content, - .vjs-layout-tiny .vjs-text-track-settings .vjs-modal-dialog-content { - grid-template-columns: 1fr; - } -} -.vjs-track-setting > select { - margin-right: 1em; - margin-bottom: 0.5em; -} - -.vjs-text-track-settings fieldset { - margin: 10px; - border: none; -} - -.vjs-text-track-settings fieldset span { - display: inline-block; - padding: 0 6px 8px; -} - -.vjs-text-track-settings fieldset span > select { - max-width: 7.3em; -} - -.vjs-text-track-settings legend { - color: #fff; - font-weight: bold; - font-size: 14px; -} - -.vjs-text-track-settings .vjs-label { - clip: rect(1px 1px 1px 1px); - clip: rect(1px, 1px, 1px, 1px); - margin: 0 5px 5px 0; - border: 0; - height: 1px; - width: 1px; - overflow: hidden; -} - -.vjs-track-settings-controls button:focus, -.vjs-track-settings-controls button:active { - outline-style: solid; - outline-width: medium; - background-image: linear-gradient(0deg, #fff 88%, #73859f 100%); -} - -.vjs-track-settings-controls button:hover { - color: rgba(43, 51, 63, 0.75); -} - -.vjs-track-settings-controls button { - background-color: #fff; - background-image: linear-gradient(-180deg, #fff 88%, #73859f 100%); - color: #2b333f; - cursor: pointer; - border-radius: 2px; -} - -.vjs-track-settings-controls .vjs-default-button { - margin-right: 1em; -} - -.vjs-title-bar { - background: rgba(0, 0, 0, 0.9); - background: linear-gradient( - 180deg, - rgba(0, 0, 0, 0.9) 0%, - rgba(0, 0, 0, 0.7) 60%, - rgba(0, 0, 0, 0) 100% - ); - font-size: 1.2em; - line-height: 1.5; - transition: opacity 0.1s; - padding: 0.666em 1.333em 4em; - pointer-events: none; - position: absolute; - top: 0; - width: 100%; -} - -.vjs-title-bar-title, -.vjs-title-bar-description { - margin: 0; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -.vjs-title-bar-title { - font-weight: bold; - margin-bottom: 0.333em; -} - -.vjs-playing.vjs-user-inactive .vjs-title-bar { - opacity: 0; - transition: opacity 1s; -} - -.video-js .vjs-skip-forward-5 { - cursor: pointer; -} -.video-js .vjs-skip-forward-10 { - cursor: pointer; -} -.video-js .vjs-skip-forward-30 { - cursor: pointer; -} -.video-js .vjs-skip-backward-5 { - cursor: pointer; -} -.video-js .vjs-skip-backward-10 { - cursor: pointer; -} -.video-js .vjs-skip-backward-30 { - cursor: pointer; -} -@media print { - .video-js > *:not(.vjs-tech):not(.vjs-poster) { - visibility: hidden; - } -} -.vjs-resize-manager { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - border: none; - z-index: -1000; -} - -.js-focus-visible .video-js *:focus:not(.focus-visible) { - outline: none; -} - -.video-js *:focus:not(:focus-visible) { - outline: none; -} diff --git a/src/routes/player/videoPlayer.jsx b/src/routes/player/videoPlayer.jsx index a057e3c..39126ad 100644 --- a/src/routes/player/videoPlayer.jsx +++ b/src/routes/player/videoPlayer.jsx @@ -1,30 +1,51 @@ /** @format */ - -import React from "react"; - -import videojs from "video.js"; - -import { useParams } from "react-router-dom"; -import { useQuery } from "@tanstack/react-query"; -import { getVideosApi } from "@jellyfin/sdk/lib/utils/api/videos-api"; - -import Box from "@mui/material/Box"; - -// This imports the functional component from the previous sample. -import VideoJS from "../../components/player/video"; -import { usePlaybackStore } from "../../utils/store/playback"; +import { appWindow } from "@tauri-apps/api/window"; import AppBar from "@mui/material/AppBar"; +import Toolbar from "@mui/material/Toolbar"; +import Box from "@mui/material/Box"; import IconButton from "@mui/material/IconButton"; +import Typography from "@mui/material/Typography"; + +import ReactPlayer from "react-player"; + +import { usePlaybackStore } from "../../utils/store/playback"; +import { MdiArrowLeft } from "../../components/icons/mdiArrowLeft"; import { useNavigate } from "react-router-dom"; -import { MdiChevronLeft } from "../../components/icons/mdiChevronLeft"; - +import { useRef, useState, useCallback } from "react"; import { secToTicks, ticksToSec } from "../../utils/date/time"; import { getPlaystateApi } from "@jellyfin/sdk/lib/utils/api/playstate-api"; -const VideoPlayer = () => { +export const VideoPlayer = () => { + const navigate = useNavigate(); + + const playerRef = useRef(); + const [isPlaying, setIsPlaying] = useState(true); + const [isMuted, setIsMuted] = useState(false); + const [isReady, setIsReady] = useState(false); + + const onReady = useCallback(() => { + if (!isReady) { + const timeToStart = ticksToSec(startPosition); + playerRef.current.seekTo(timeToStart, "seconds"); + setIsReady(true); + } + }, [isReady]); + + const onProgress = async (e) => { + console.log(e); + await getPlaystateApi(window.api).reportPlaybackProgress({ + playbackProgressInfo: { + ItemId: itemId, + IsMuted: isMuted, + PositionTicks: secToTicks(e.playedSeconds), + PlaybackStartTimeTicks: startPosition, + }, + }); + }; + const [url, startPosition, itemId, itemName] = usePlaybackStore( (state) => [ state.url, @@ -33,57 +54,36 @@ const VideoPlayer = () => { state.itemName, ], ); - - const navigate = useNavigate(); - - const playerRef = React.useRef(null); - - const videoJsOptions = { - autoplay: true, - controls: true, - responsive: true, - fill: true, - sources: [ - { - src: url, - type: "video/mp4", - }, - ], - }; - - const handlePlayerReady = (player) => { - playerRef.current = player; - - player.on("waiting", () => { - videojs.log("player is waiting"); - }); - - player.on("dispose", () => { - videojs.log("player will dispose"); - }); - - player.on("progress", async () => { - await getPlaystateApi(window.api).reportPlaybackProgress({ - playbackProgressInfo: { - ItemId: itemId, - PlaybackStartTimeTicks: startPosition, - PositionTicks: secToTicks(player.currentTime()), - }, - }); - }); - player.currentTime(ticksToSec(startPosition)); - }; - return ( - - - navigate(-1)}> - - + + + + navigate(-1)}> + + + + {itemName} + + - + ); }; - -export default VideoPlayer;