Skip to content

Commit

Permalink
Get proper cinema mode for video streams on large monitors
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfcomp authored and Sean-Der committed Aug 22, 2024
1 parent b93764f commit 422f676
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/src/components/player/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ function Player({ cinemaMode }) {
muted
controls
playsInline
className={`bg-black w-full ${cinemaMode && "min-h-screen"}`}
className={`bg-black w-full ${cinemaMode && "h-full"}`}
style={cinemaMode && {
maxHeight: '100vh',
maxWidth: '100vw'
} || {}}
/>

{videoLayers.length >= 2 &&
Expand Down

0 comments on commit 422f676

Please sign in to comment.