mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-09-26 03:28:38 +02:00
Fix bug with stream chat not showing
This commit is contained in:
5
.changeset/polite-trees-compete.md
Normal file
5
.changeset/polite-trees-compete.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"nostrudel": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix bug with stream chat not showing on chromium based browsers
|
@@ -57,7 +57,6 @@ export function LiveVideoPlayer({
|
|||||||
autoPlay={autoPlay}
|
autoPlay={autoPlay}
|
||||||
poster={poster}
|
poster={poster}
|
||||||
muted={muted}
|
muted={muted}
|
||||||
style={{ maxHeight: "100%", maxWidth: "100%", width: "100%" }}
|
|
||||||
{...props}
|
{...props}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
@@ -102,11 +102,13 @@ function DesktopStreamPage({ stream }: { stream: ParsedStream }) {
|
|||||||
<StreamDebugButton stream={stream} variant="ghost" />
|
<StreamDebugButton stream={stream} variant="ghost" />
|
||||||
<Button onClick={() => setShowChat((v) => !v)}>{showChat ? "Hide" : "Show"} Chat</Button>
|
<Button onClick={() => setShowChat((v) => !v)}>{showChat ? "Hide" : "Show"} Chat</Button>
|
||||||
</Flex>
|
</Flex>
|
||||||
<Flex gap="2" maxH="calc(100vh - 4rem)">
|
<Flex gap="2" maxH="calc(100vh - 4rem)" overflow="hidden">
|
||||||
<LiveVideoPlayer
|
<LiveVideoPlayer
|
||||||
stream={stream.streaming || stream.recording}
|
stream={stream.streaming || stream.recording}
|
||||||
autoPlay={!!stream.streaming}
|
autoPlay={!!stream.streaming}
|
||||||
poster={stream.image}
|
poster={stream.image}
|
||||||
|
// NOTE: width=0 is used for chromium browser to stop the video element from pushing the chat off screen
|
||||||
|
w={0}
|
||||||
flexGrow={1}
|
flexGrow={1}
|
||||||
mx="auto"
|
mx="auto"
|
||||||
/>
|
/>
|
||||||
|
Reference in New Issue
Block a user