Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Fix player sizing in different viewports. Closes #2360

Gabe Kangas4956d05701c5
diff --git a/web/components/video/OwncastPlayer/OwncastPlayer.module.scss b/web/components/video/OwncastPlayer/OwncastPlayer.module.scss
index 65ac31a629..d34628eed7 100644
--- a/web/components/video/OwncastPlayer/OwncastPlayer.module.scss
+++ b/web/components/video/OwncastPlayer/OwncastPlayer.module.scss
@@ -4,12 +4,8 @@
display: grid;
width: 100%;
justify-items: center;
- height: 78vh;
-
- @include screen(tablet) {
- aspect-ratio: 16 / 9;
- height: unset;
- }
+ max-height: 75vh;
+ aspect-ratio: 16 / 9;
.player,
.poster {
diff --git a/web/components/video/VideoPoster/VideoPoster.tsx b/web/components/video/VideoPoster/VideoPoster.tsx
index 1c21a3e6df..99f3a23bc0 100644
--- a/web/components/video/VideoPoster/VideoPoster.tsx
+++ b/web/components/video/VideoPoster/VideoPoster.tsx
@@ -33,9 +33,9 @@ export const VideoPoster: FC<VideoPosterProps> = ({ online, initialSrc, src: bas
<CrossfadeImage
src={src}
duration={duration}
- objectFit="cover"
+ objectFit="contain"
+ height="auto"
width="100%"
- height="100%"
/>
)}
</div>