Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions views/player_v2.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,23 @@
--media-focus-ring: 0 0 0 3px rgb(255 255 255 / 0.5);
}

* {
box-sizing: border-box;
}

html,
body {
margin: 0;
padding: 0;
background-color: #09090b; /* Zinc 950 */
width: 100%;
height: 100%;
background-color: #000;
overflow: hidden;
}

body {
color: #fff;
font-family: var(--font-sans);
height: 100vh;
width: 100vw;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
Expand All @@ -63,13 +71,16 @@
display: flex;
align-items: center;
justify-content: center;
position: relative;
}

media-player {
width: 100%;
height: 100%;
border: none;
background-color: transparent;
/* Ensure the player doesn't force an aspect ratio that overflows the container */
aspect-ratio: auto;
}

/* Continue Watching Popup */
Expand Down Expand Up @@ -156,6 +167,7 @@
<media-player
title="{{ .Title }}"
poster="{{ .Thumbnail }}"
view-type="video"
crossorigin
playsinline
>
Expand Down
Loading