Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
fix(embed): set background color of video embed
Gabe Kangas27bddb0ff7ea
diff --git a/web/pages/embed/video/VideoEmbed.module.scss b/web/pages/embed/video/VideoEmbed.module.scssnew file mode 100644index 0000000000..3dbb4469ad--- /dev/null+++ b/web/pages/embed/video/VideoEmbed.module.scss@@ -0,0 +1,8 @@+.onlineContainer {+ height: 96vh;+ background-color: var(--theme-color-components-video-status-bar-background);++ @media only screen and (max-width: 768px) {+ height: 100vh;+ }+}diff --git a/web/pages/embed/video/index.tsx b/web/pages/embed/video/index.tsxindex 6c20b1c26d..3523d40bd0 100644--- a/web/pages/embed/video/index.tsx+++ b/web/pages/embed/video/index.tsx@@ -1,4 +1,5 @@-import React from 'react';+/* eslint-disable react/no-unknown-property */+import React, { useEffect } from 'react';import { useRecoilValue } from 'recoil';import { useRouter } from 'next/router';import { Skeleton } from 'antd';@@ -16,6 +17,7 @@ import { ClientConfig } from '../../../interfaces/client-config.model';import { ServerStatus } from '../../../interfaces/server-status.model';import { AppStateOptions } from '../../../components/stores/application-state';import { Theme } from '../../../components/theme/Theme';+import styles from './VideoEmbed.module.scss';export default function VideoEmbed() {const status = useRecoilValue<ServerStatus>(serverStatusState);@@ -46,6 +48,11 @@ export default function VideoEmbed() {const loadingState = <Skeleton active style={{ padding: '10px' }} paragraph={{ rows: 10 }} />;+ // This is a hack to force a specific body background color for just this page.+ useEffect(() => {+ document.body.classList.add('body-background');+ }, []);+const offlineState = (<OfflineBannerstreamName={name}@@ -56,7 +63,14 @@ export default function VideoEmbed() {);const onlineState = (- <>+ <div className={styles.onlineContainer}>+ <style jsx global>+ {`+ .body-background {+ background: var(--theme-color-components-video-status-bar-background);+ }+ `}+ </style><OwncastPlayersource="/hls/stream.m3u8"online={online}@@ -70,7 +84,7 @@ export default function VideoEmbed() {lastDisconnectTime={lastDisconnectTime}viewerCount={viewerCount}/>- </>+ </div>);const getView = () => {