Skip to content
Merged
Show file tree
Hide file tree
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
11 changes: 9 additions & 2 deletions service/internal/sharerelay/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@
main { flex: 1; position: relative; min-height: 0; }
iframe { border: 0; width: 100%; height: 100%; display: block; background: #fff; }
.player { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #000; }
.player img { max-width: 100%; max-height: 100%; }
.player { position: relative; }
.player img, .player video { max-width: 100%; max-height: 100%; }
.player video { width: 100%; height: 100%; object-fit: contain; }
.player-note { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); max-width: min(560px, calc(100% - 32px)); padding: 8px 12px; border-radius: 8px; background: rgba(0,0,0,.7); color: #fff; text-align: center; }
.player-controls { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.player-controls button { font: inherit; min-height: 36px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; }
.player-controls button:disabled { opacity: .6; cursor: default; }
[hidden] { display: none !important; }
.notice { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; }
.notice h1 { font-size: 20px; margin: 0; font-weight: 600; }
.notice p { margin: 0; color: var(--muted); max-width: 420px; }
Expand All @@ -38,7 +45,7 @@
</head>
<body>
<header hidden id="bar">
<b>Shared camera</b>
<b id="camera">Shared camera</b>
<span class="muted" id="scope"></span>
<span class="grow"></span>
<span class="muted" id="left"></span>
Expand Down
Loading
Loading