Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Make the player fit the full width but content stay the same. For #2360
Gabe Kangasd2e357716754
diff --git a/web/components/ui/Content/Content.tsx b/web/components/ui/Content/Content.tsxindex 6be0753760..4e6e3f50a6 100644--- a/web/components/ui/Content/Content.tsx+++ b/web/components/ui/Content/Content.tsx@@ -233,7 +233,7 @@ export const Content: FC = () => {const isChatVisible = useRecoilValue<boolean>(isChatVisibleSelector);const isChatAvailable = useRecoilValue<boolean>(isChatAvailableSelector);const currentUser = useRecoilValue(currentUserAtom);-+ const serverStatus = useRecoilValue<ServerStatus>(serverStatusState);const [isMobile, setIsMobile] = useRecoilState<boolean | undefined>(isMobileAtom);const messages = useRecoilValue<ChatMessage[]>(chatMessagesAtom);const online = useRecoilValue<boolean>(isOnlineSelector);@@ -259,6 +259,7 @@ export const Content: FC = () => {const { account: fediverseAccount, enabled: fediverseEnabled } = federation;const { browser: browserNotifications } = notifications;const { enabled: browserNotificationsEnabled } = browserNotifications;+ const { online: isStreamLive } = serverStatus;const [externalActionToDisplay, setExternalActionToDisplay] = useState<ExternalAction>(null);const [supportsBrowserNotifications, setSupportsBrowserNotifications] = useState(false);@@ -346,7 +347,7 @@ export const Content: FC = () => {onFollowClick={() => setShowFollowModal(true)}/>)}- {online && (+ {isStreamLive && (<Statusbaronline={online}lastConnectTime={lastConnectTime}diff --git a/web/components/video/OwncastPlayer/OwncastPlayer.module.scss b/web/components/video/OwncastPlayer/OwncastPlayer.module.scssindex 3762a20f67..65ac31a629 100644--- a/web/components/video/OwncastPlayer/OwncastPlayer.module.scss+++ b/web/components/video/OwncastPlayer/OwncastPlayer.module.scss@@ -1,16 +1,20 @@+@import '../../../styles/mixins.scss';+.container {display: grid;width: 100%;justify-items: center;+ height: 78vh;++ @include screen(tablet) {+ aspect-ratio: 16 / 9;+ height: unset;+ }.player,.poster {- // position: static;- // height: auto !important;width: 100%;grid-column: 1;grid-row: 1;- aspect-ratio: 16 / 9;- max-height: 75vh;}}diff --git a/web/components/video/OwncastPlayer/OwncastPlayer.tsx b/web/components/video/OwncastPlayer/OwncastPlayer.tsxindex 884e9cfaf9..2c033717f9 100644--- a/web/components/video/OwncastPlayer/OwncastPlayer.tsx+++ b/web/components/video/OwncastPlayer/OwncastPlayer.tsx@@ -218,6 +218,7 @@ export const OwncastPlayer: FC<OwncastPlayerProps> = ({controls: true,responsive: true,fluid: false,+ fill: true,playsinline: true,liveui: true,preload: 'auto',diff --git a/web/components/video/VideoJS/VideoJS.module.scss b/web/components/video/VideoJS/VideoJS.module.scssindex eff313b0e0..79aee71c09 100644--- a/web/components/video/VideoJS/VideoJS.module.scss+++ b/web/components/video/VideoJS/VideoJS.module.scss@@ -1,9 +1,5 @@@import '../../../styles/mixins.scss';.player {- height: auto !important;width: 100%;- video {- position: static !important;- }}