Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Fix play button z-index + add basic player theme
Gabe Kangas29ed52b06308
diff --git a/web/components/video/Player.module.scss b/web/components/video/Player.module.scssindex 4f3ab16dec..2480e92345 100644--- a/web/components/video/Player.module.scss+++ b/web/components/video/Player.module.scss@@ -1,9 +1,4 @@.player {height: 80vh;width: 100%;- background-color: black;-- .vjs-big-play-centered .vjs-big-play-button {- z-index: 99999 !important;- }}diff --git a/web/components/video/player.scss b/web/components/video/player.scssnew file mode 100644index 0000000000..ad3e93eb80--- /dev/null+++ b/web/components/video/player.scss@@ -0,0 +1,14 @@+/* Change all text and icon colors in the player. */+.vjs-owncast.video-js {+ color: var(--primary-color);+}++.vjs-owncast .vjs-big-play-button {+ z-index: 999999;+ border-color: var(--primary-color) !important;+ border-radius: var(--theme-rounded-corners) !important;+}++.vjs-owncast .vjs-control-bar {+ background-color: var(--theme-background) !important;+}diff --git a/web/components/video/player.tsx b/web/components/video/player.tsxindex 8d158f6420..a1e3489e4b 100644--- a/web/components/video/player.tsx+++ b/web/components/video/player.tsx@@ -52,7 +52,7 @@ export function VideoJS(props: Props) {return (<div data-vjs-player>{/* eslint-disable-next-line jsx-a11y/media-has-caption */}- <video ref={videoRef} className={`video-js vjs-big-play-centered ${s.player}`} />+ <video ref={videoRef} className={`video-js vjs-big-play-centered ${s.player} vjs-owncast`} /></div>);}diff --git a/web/pages/_app.tsx b/web/pages/_app.tsxindex 44f1ccd1e2..85a341e3c1 100644--- a/web/pages/_app.tsx+++ b/web/pages/_app.tsx@@ -20,6 +20,8 @@ import '../styles/chat.scss';import '../styles/pages.scss';import '../styles/offline-notice.scss';+import '../components/video/player.scss';+import { AppProps } from 'next/app';import { Router, useRouter } from 'next/router';