streamd: copyable m3u8 links + FHD/HD/SD output variants
Some checks failed
release / build-and-upload (push) Failing after 3m33s

- WebUI Copy button for absolute m3u8 URLs (no player)
- Per-stream variants ladder; HD/SD live-transcoded as sibling HLS
- variants_json in DB/API; supervisor spawns scaled ffmpeg packagers
This commit is contained in:
404errordeveloper 2026-10-09 01:12:32 +02:00
parent ac8701b5a6
commit 3cb259c9b6
12 changed files with 913 additions and 62 deletions

View file

@ -9,6 +9,7 @@
--degraded: #f5a524;
--down: #f07178;
--stopped: #6b7280;
--chip: #1c2230;
}
* { box-sizing: border-box; }
body {
@ -26,7 +27,7 @@ header {
}
h1 { margin: 0; font-size: 18px; font-weight: 600; }
h2 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.header-right { display: flex; gap: 16px; align-items: center; }
.header-right { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.muted { color: var(--muted); }
.card {
margin: 16px 20px;
@ -66,12 +67,17 @@ button {
button:hover { border-color: var(--accent); }
button.ghost { background: transparent; }
button.danger { border-color: #7f1d1d; color: #fecaca; }
button.tiny {
padding: 3px 8px;
font-size: 11px;
line-height: 1.2;
}
.actions { display: flex; gap: 8px; align-items: end; }
.token-box input { width: 180px; }
.row-between { display: flex; justify-content: space-between; align-items: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th, td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 12px; }
.pill {
display: inline-block;
@ -82,25 +88,124 @@ th { color: var(--muted); font-weight: 500; font-size: 12px; }
}
.pill.ok { color: var(--ok); }
.pill.degraded { color: var(--degraded); }
.pill.down, .pill.starting { color: var(--down); }
.pill.stopped { color: var(--stopped); }
.pill.down, .pill.starting, .pill.pending { color: var(--down); }
.pill.stopped, .pill.off { color: var(--stopped); }
.pill.claim { color: #c4b5fd; background: #1f1635; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.row-actions button { padding: 4px 8px; font-size: 12px; }
.msg { min-height: 1.2em; margin: 8px 0 0; }
.msg.err { color: var(--down); }
a { color: var(--accent); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.variants-field {
border: 1px solid var(--border);
border-radius: 8px;
padding: 12px;
margin: 0;
}
.variants-field legend {
padding: 0 6px;
color: var(--text);
font-size: 12px;
font-weight: 600;
}
.hint { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.variant-toggles {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 8px;
}
.variant-card {
display: grid;
grid-template-columns: auto 1fr;
grid-template-rows: auto auto;
column-gap: 8px;
row-gap: 2px;
align-items: center;
padding: 10px 12px;
border: 1px solid var(--border);
border-radius: 8px;
background: #12151c;
cursor: pointer;
color: var(--text);
}
.variant-card input {
grid-row: 1 / span 2;
width: 16px;
height: 16px;
accent-color: var(--accent);
}
.variant-card .v-title { font-weight: 600; font-size: 13px; color: var(--text); }
.variant-card .v-meta { font-size: 11px; color: var(--muted); }
.variant-card.on,
.variant-card:has(input:checked) {
border-color: #3b82f6;
background: #152033;
box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.25);
}
.variant-card.locked {
opacity: 0.92;
cursor: default;
}
.link-stack { display: flex; flex-direction: column; gap: 6px; min-width: 180px; }
.link-row {
display: flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
padding: 6px 8px;
background: var(--chip);
border: 1px solid var(--border);
border-radius: 8px;
}
.link-row .v-label {
font-size: 11px;
font-weight: 700;
letter-spacing: 0.02em;
min-width: 2.4em;
color: var(--accent);
}
.link-row .v-path {
flex: 1;
min-width: 0;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 11px;
color: var(--muted);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.link-row .pill { margin-left: auto; }
.toast {
position: fixed;
right: 16px;
bottom: 16px;
background: #1e293b;
border: 1px solid #334155;
color: var(--text);
padding: 10px 14px;
border-radius: 8px;
box-shadow: 0 8px 24px rgba(0,0,0,.35);
z-index: 50;
font-size: 13px;
}
.toast.show { display: block; }
dialog {
border: 1px solid var(--border);
background: var(--card);
color: var(--text);
border-radius: 8px;
padding: 16px;
min-width: min(560px, 92vw);
min-width: min(640px, 94vw);
}
dialog::backdrop { background: rgba(0,0,0,.55); }
@media (max-width: 720px) {
.grid { grid-template-columns: 1fr; }
.span2 { grid-column: span 1; }
.variant-toggles { grid-template-columns: 1fr; }
header { flex-direction: column; align-items: flex-start; gap: 8px; }
}