nixamp 0.45.5 → 0.46.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/break-silence.d.ts +27 -0
- package/dist/break-silence.js +57 -0
- package/dist/channels.d.ts +21 -0
- package/dist/channels.js +82 -0
- package/dist/listen-pass.d.ts +29 -0
- package/dist/listen-pass.js +93 -0
- package/dist/server.js +31 -0
- package/dist/station-page.js +2 -1
- package/dist/station-routes.d.ts +4 -0
- package/dist/station-routes.js +10 -2
- package/dist/station-usage.d.ts +1 -1
- package/dist/station-usage.js +1 -1
- package/dist/stations.d.ts +2 -0
- package/dist/stations.js +5 -1
- package/package.json +3 -3
- package/src/break-silence.ts +65 -0
- package/src/channels.ts +78 -0
- package/src/listen-pass.ts +104 -0
- package/src/server.ts +33 -0
- package/src/station-page.ts +2 -1
- package/src/station-routes.ts +12 -2
- package/src/station-usage.ts +1 -1
- package/src/stations.ts +5 -1
- package/web/dist/assets/{ar-CebVvHAw.js → ar-Db_tDh8O.js} +1 -1
- package/web/dist/assets/{cs-CWbKpezF.js → cs-BlaJwVKZ.js} +1 -1
- package/web/dist/assets/{da-DDeqVz72.js → da-rqJgHbtd.js} +1 -1
- package/web/dist/assets/{de-BIcO1iEz.js → de-D3jfQ5X1.js} +1 -1
- package/web/dist/assets/{es-rha6a6uY.js → es-DL3ceO0F.js} +1 -1
- package/web/dist/assets/{fi-DQVrR7HD.js → fi-C9uYTqZj.js} +1 -1
- package/web/dist/assets/{fr-7GBVEDb9.js → fr-BIMC-Rho.js} +1 -1
- package/web/dist/assets/{hi-DgWvU_Lm.js → hi-B6Wzcc1h.js} +1 -1
- package/web/dist/assets/{hu-ev2AI3vJ.js → hu-B_1agTpY.js} +1 -1
- package/web/dist/assets/{id-CEpAesOA.js → id-Cqvy9k6T.js} +1 -1
- package/web/dist/assets/{it-XGRhkpyV.js → it-D7dik-D0.js} +1 -1
- package/web/dist/assets/main-BGqOUW4j.js +22 -0
- package/web/dist/assets/{nl-C3AxtpK7.js → nl-DMbfbT8D.js} +1 -1
- package/web/dist/assets/{ru-DK2Ja4_w.js → ru-BZj1t0h7.js} +1 -1
- package/web/dist/assets/{station-Djxdr3MD.js → station-BhCxDaWb.js} +1 -1
- package/web/dist/assets/{sv-BYUU-a1y.js → sv-B8a1GD58.js} +1 -1
- package/web/dist/assets/{uk-TxpZ1viH.js → uk-BpEXCXvC.js} +1 -1
- package/web/dist/assets/{vi-Di4kvWLk.js → vi-B2ch2kpO.js} +1 -1
- package/web/dist/assets/{zh-BjOk7rqG.js → zh-B6GcwVnN.js} +1 -1
- package/web/dist/index.html +1 -1
- package/web/dist/station.html +1 -1
- package/web/dist/sw.js +20 -20
- package/web/dist/assets/main-B6IHgkWQ.js +0 -22
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Silence in place of a break, for one listener of a station: the last resort.
|
|
3
|
+
*
|
|
4
|
+
* A listener with a listen pass (listen-pass.ts) skips breaks out of a head
|
|
5
|
+
* start of music (Channel.listenWithoutBreaks). Only when that is spent is a
|
|
6
|
+
* break replaced, by MP3 silence lasting as long as the bytes it stands in
|
|
7
|
+
* for, rather than a gap that stalls the player. Audio only; a
|
|
8
|
+
* fragmented MP4 cannot have fragments swapped, so a TV station's breaks are
|
|
9
|
+
* everybody's.
|
|
10
|
+
*
|
|
11
|
+
* The silent frame is MPEG-1 Layer III at 48 kHz (the rate every station is
|
|
12
|
+
* resampled to) with empty side information: four header bytes and zeros,
|
|
13
|
+
* which every decoder plays as nothing.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
const SAMPLE_RATE = 48_000;
|
|
17
|
+
const FRAME_SECONDS = 1152 / SAMPLE_RATE;
|
|
18
|
+
/** MPEG-1 Layer III bitrate index by kbps. */
|
|
19
|
+
const BITRATE_INDEX: Record<number, number> = {
|
|
20
|
+
32: 1, 40: 2, 48: 3, 56: 4, 64: 5, 80: 6, 96: 7, 112: 8, 128: 9, 160: 10, 192: 11, 224: 12, 256: 13, 320: 14,
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** One silent frame at this bitrate (128 kbps when the bitrate is not a Layer III one). */
|
|
24
|
+
export function silentFrame(kbps: number): Buffer {
|
|
25
|
+
const rate = BITRATE_INDEX[kbps] ? kbps : 128;
|
|
26
|
+
const frame = Buffer.alloc((144 * rate * 1000) / SAMPLE_RATE);
|
|
27
|
+
// Sync, MPEG-1, Layer III, no CRC; bitrate, 48 kHz (01), no padding; stereo.
|
|
28
|
+
frame[0] = 0xff;
|
|
29
|
+
frame[1] = 0xfb;
|
|
30
|
+
frame[2] = (BITRATE_INDEX[rate]! << 4) | (0b01 << 2);
|
|
31
|
+
frame[3] = 0x00;
|
|
32
|
+
return frame;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface Writer {
|
|
36
|
+
write: (chunk: Buffer) => boolean;
|
|
37
|
+
end: () => void;
|
|
38
|
+
pending?: () => number;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* A writer that sends silence instead of whatever is written while `inBreak()`
|
|
43
|
+
* says yes. `kbps` is the stream's bitrate, which is how a chunk's bytes become
|
|
44
|
+
* seconds.
|
|
45
|
+
*/
|
|
46
|
+
export function quietDuringBreaks(out: Writer, kbps: number, inBreak: () => boolean): Writer {
|
|
47
|
+
const frame = silentFrame(kbps);
|
|
48
|
+
const bytesPerSecond = (kbps * 1000) / 8;
|
|
49
|
+
let owed = 0;
|
|
50
|
+
return {
|
|
51
|
+
write: (chunk: Buffer): boolean => {
|
|
52
|
+
if (!inBreak()) {
|
|
53
|
+
owed = 0;
|
|
54
|
+
return out.write(chunk);
|
|
55
|
+
}
|
|
56
|
+
owed += chunk.length / bytesPerSecond;
|
|
57
|
+
const frames = Math.floor(owed / FRAME_SECONDS);
|
|
58
|
+
if (frames === 0) return true;
|
|
59
|
+
owed -= frames * FRAME_SECONDS;
|
|
60
|
+
return out.write(Buffer.concat(Array.from({ length: frames }, () => frame)));
|
|
61
|
+
},
|
|
62
|
+
end: () => out.end(),
|
|
63
|
+
...(out.pending ? { pending: out.pending } : {}),
|
|
64
|
+
};
|
|
65
|
+
}
|
package/src/channels.ts
CHANGED
|
@@ -196,6 +196,12 @@ export const BACKLOG_AUDIO = 64 * 1024;
|
|
|
196
196
|
* until the channel ended, however long that was.
|
|
197
197
|
*/
|
|
198
198
|
export const LISTENER_QUEUE = 16 * 1024 * 1024;
|
|
199
|
+
/**
|
|
200
|
+
* How much break-free radio a listener who skips breaks is handed on arrival:
|
|
201
|
+
* two minutes at 192k. Their player holds it, and each break they skip spends
|
|
202
|
+
* the length of the spot from it, so they never hear a gap.
|
|
203
|
+
*/
|
|
204
|
+
export const MUSIC_BACKLOG = 3 * 1024 * 1024;
|
|
199
205
|
|
|
200
206
|
/** Media-time window for complete MP4 fragments. Byte limits are a separate
|
|
201
207
|
* memory ceiling; the measured byte rate is only a fallback for inputs with
|
|
@@ -346,6 +352,11 @@ export class Channel {
|
|
|
346
352
|
* can begin at; for MP3 any point will do, a frame announces itself.
|
|
347
353
|
*/
|
|
348
354
|
private recent: Buffer[] = [];
|
|
355
|
+
/** Whether what the encoder is writing now is a break (a radio list's spot). */
|
|
356
|
+
private breakOn = false;
|
|
357
|
+
/** The last couple of minutes of a radio list without its breaks, for listenWithoutBreaks. */
|
|
358
|
+
private music: Buffer[] = [];
|
|
359
|
+
private musicBytes = 0;
|
|
349
360
|
private fragmentClock = new FragmentClock();
|
|
350
361
|
private fragmentTimes = new WeakMap<Buffer, number>();
|
|
351
362
|
private recentBytes = 0;
|
|
@@ -582,6 +593,13 @@ export class Channel {
|
|
|
582
593
|
}
|
|
583
594
|
});
|
|
584
595
|
(child.stdio[3] as Readable | null)?.on("error", () => undefined);
|
|
596
|
+
// A radio list's output is constant-bitrate MP3, so how many bytes it
|
|
597
|
+
// has written is exactly how far it has played: whether this chunk is
|
|
598
|
+
// a break, to the frame, rather than to progress's once a second.
|
|
599
|
+
const kbps = playlistInput && this.info.kind !== "video"
|
|
600
|
+
? Number(/^(\d+)k$/.exec((playlistEncode ?? [])[playlistEncode!.indexOf("-b:a") + 1] ?? "")?.[1] ?? 0)
|
|
601
|
+
: 0;
|
|
602
|
+
let written = 0;
|
|
585
603
|
child.stdout?.on("data", (chunk: Buffer) => {
|
|
586
604
|
// An ffmpeg that was replaced can still have a chunk in the pipe.
|
|
587
605
|
if (this.child !== child) return;
|
|
@@ -589,6 +607,10 @@ export class Channel {
|
|
|
589
607
|
sent = true;
|
|
590
608
|
this.info.bytes += chunk.byteLength;
|
|
591
609
|
this.rearm(child);
|
|
610
|
+
if (kbps > 0 && playlistInput) {
|
|
611
|
+
this.breakOn = playlistInput.place((written * 8) / (kbps * 1000)).at === -1;
|
|
612
|
+
written += chunk.byteLength;
|
|
613
|
+
} else this.breakOn = this.info.playlistAt === -1;
|
|
592
614
|
this.emit(chunk);
|
|
593
615
|
});
|
|
594
616
|
child.stdout?.on("error", () => undefined);
|
|
@@ -823,6 +845,13 @@ export class Channel {
|
|
|
823
845
|
this.measure(chunk.byteLength);
|
|
824
846
|
if (!this.fragments) {
|
|
825
847
|
this.remember(chunk, BACKLOG_AUDIO, false);
|
|
848
|
+
if (this.info.playlist && !this.breakOn) {
|
|
849
|
+
this.music.push(chunk);
|
|
850
|
+
this.musicBytes += chunk.byteLength;
|
|
851
|
+
while (this.music.length > 1 && this.musicBytes - this.music[0]!.byteLength > MUSIC_BACKLOG) {
|
|
852
|
+
this.musicBytes -= this.music.shift()!.byteLength;
|
|
853
|
+
}
|
|
854
|
+
}
|
|
826
855
|
this.send(chunk);
|
|
827
856
|
return;
|
|
828
857
|
}
|
|
@@ -1075,6 +1104,49 @@ export class Channel {
|
|
|
1075
1104
|
};
|
|
1076
1105
|
}
|
|
1077
1106
|
|
|
1107
|
+
/**
|
|
1108
|
+
* A radio list's listener who hears no breaks: handed the last couple of
|
|
1109
|
+
* minutes of music at once, which their player holds, then everything but
|
|
1110
|
+
* the breaks. Each skipped break spends its length of that head start, so
|
|
1111
|
+
* there is no gap; only once it is all spent does a break become silence of
|
|
1112
|
+
* the same length (`silence`), never the spot. Joining again refills it.
|
|
1113
|
+
*/
|
|
1114
|
+
listenWithoutBreaks(listener: Listener, kbps: number, silence: (out: Listener) => Listener): () => void {
|
|
1115
|
+
const bytesPerSecond = (kbps * 1000) / 8;
|
|
1116
|
+
let ahead = 0;
|
|
1117
|
+
for (const piece of this.music) {
|
|
1118
|
+
try {
|
|
1119
|
+
listener.write(piece);
|
|
1120
|
+
} catch {
|
|
1121
|
+
break;
|
|
1122
|
+
}
|
|
1123
|
+
ahead += piece.byteLength / bytesPerSecond;
|
|
1124
|
+
}
|
|
1125
|
+
const quiet = silence(listener);
|
|
1126
|
+
const skipping: Listener = {
|
|
1127
|
+
write: (chunk) => {
|
|
1128
|
+
if (!this.breakOn) return listener.write(chunk);
|
|
1129
|
+
const seconds = chunk.byteLength / bytesPerSecond;
|
|
1130
|
+
if (ahead >= seconds) {
|
|
1131
|
+
ahead -= seconds;
|
|
1132
|
+
return true;
|
|
1133
|
+
}
|
|
1134
|
+
return quiet.write(chunk);
|
|
1135
|
+
},
|
|
1136
|
+
end: () => listener.end(),
|
|
1137
|
+
...(listener.pending ? { pending: () => listener.pending!() } : {}),
|
|
1138
|
+
};
|
|
1139
|
+
this.listeners.add(skipping);
|
|
1140
|
+
this.info.listeners = this.listeners.size;
|
|
1141
|
+
if (this.idle) clearTimeout(this.idle);
|
|
1142
|
+
this.idle = null;
|
|
1143
|
+
return () => {
|
|
1144
|
+
this.listeners.delete(skipping);
|
|
1145
|
+
this.info.listeners = this.listeners.size;
|
|
1146
|
+
if (this.ephemeral && this.listeners.size === 0) this.idleOut();
|
|
1147
|
+
};
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1078
1150
|
/** Stay up with nobody watching: no longer on demand. */
|
|
1079
1151
|
keep(): void {
|
|
1080
1152
|
this.ephemeral = false;
|
|
@@ -1300,6 +1372,12 @@ export class Channels {
|
|
|
1300
1372
|
return channel ? channel.listen(listener) : null;
|
|
1301
1373
|
}
|
|
1302
1374
|
|
|
1375
|
+
/** Attach a listener who skips a radio list's breaks (Channel.listenWithoutBreaks). */
|
|
1376
|
+
listenWithoutBreaks(id: string, listener: Listener, kbps: number, silence: (out: Listener) => Listener): (() => void) | null {
|
|
1377
|
+
const channel = this.open.get(id);
|
|
1378
|
+
return channel ? channel.listenWithoutBreaks(listener, kbps, silence) : null;
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1303
1381
|
/** Feed a channel that already exists, for a publisher sending chunks. */
|
|
1304
1382
|
writeTo(id: string, chunk: Buffer): boolean {
|
|
1305
1383
|
return this.open.get(id)?.write(chunk) ?? false;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The listen pass: what a signed-in nixamp.com listener carries to a station
|
|
3
|
+
* on another server, so its breaks go quiet for them.
|
|
4
|
+
*
|
|
5
|
+
* Breaks are in the stream (playlist-input.ts), one stream for every
|
|
6
|
+
* listener, so a station cannot leave a spot out for one person: it can only
|
|
7
|
+
* send that person silence while everybody else hears it. To do even that it
|
|
8
|
+
* has to know who is signed in, and a station on server1 holds no accounts.
|
|
9
|
+
* nixamp.com does, so nixamp.com signs a short pass for a signed-in account
|
|
10
|
+
* (GET /api/v1/me/pass, credentialed from any *.nixamp.com page) and the
|
|
11
|
+
* station asks nixamp.com whether a pass is good (GET
|
|
12
|
+
* /api/v1/listen-pass/check), remembering the answer.
|
|
13
|
+
*
|
|
14
|
+
* A pass is `v1.<expiry seconds>.<signature>` and nothing else: no account
|
|
15
|
+
* id, because a station has no use for one and a link gets pasted around.
|
|
16
|
+
* Anybody holding a fresh pass hears no breaks until it expires, which is the
|
|
17
|
+
* same thing a signed-in listener sharing their screen would give away.
|
|
18
|
+
*/
|
|
19
|
+
import { createHash, createHmac, timingSafeEqual } from "node:crypto";
|
|
20
|
+
|
|
21
|
+
/** How long a pass is good for. The page asks again on every load. */
|
|
22
|
+
export const PASS_TTL_SECONDS = 24 * 60 * 60;
|
|
23
|
+
|
|
24
|
+
/** Where a pass rides on a stream link (an audio element sends no headers). */
|
|
25
|
+
export const PASS_PARAM = "pass";
|
|
26
|
+
|
|
27
|
+
/** The signing secret, or "" where passes cannot be signed (every server but nixamp.com). */
|
|
28
|
+
export function listenPassSecret(env: NodeJS.ProcessEnv = process.env): string {
|
|
29
|
+
if (env["NIXAMP_LISTEN_PASS_SECRET"]) return env["NIXAMP_LISTEN_PASS_SECRET"];
|
|
30
|
+
// Derived, so nixamp.com needs no new variable: a pass is not a session.
|
|
31
|
+
const jwt = env["NIXAMP_JWT_SECRET"] ?? "";
|
|
32
|
+
return jwt ? createHash("sha256").update(`listen-pass:${jwt}`).digest("hex") : "";
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function sign(secret: string, body: string): string {
|
|
36
|
+
return createHmac("sha256", secret).update(body).digest("base64url").slice(0, 32);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function mintListenPass(secret: string, nowMs = Date.now(), ttlSeconds = PASS_TTL_SECONDS): { pass: string; expires: number } {
|
|
40
|
+
const expires = Math.floor(nowMs / 1000) + ttlSeconds;
|
|
41
|
+
const body = `v1.${expires}`;
|
|
42
|
+
return { pass: `${body}.${sign(secret, body)}`, expires };
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** The expiry of a good pass in seconds, or 0. */
|
|
46
|
+
export function checkListenPass(secret: string, pass: string, nowMs = Date.now()): number {
|
|
47
|
+
const match = /^v1\.(\d{1,12})\.([A-Za-z0-9_-]{32})$/.exec(pass);
|
|
48
|
+
if (!secret || !match) return 0;
|
|
49
|
+
const expires = Number(match[1]);
|
|
50
|
+
if (expires * 1000 <= nowMs) return 0;
|
|
51
|
+
const want = Buffer.from(sign(secret, `v1.${expires}`));
|
|
52
|
+
const got = Buffer.from(match[2]!);
|
|
53
|
+
return want.length === got.length && timingSafeEqual(want, got) ? expires : 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface VerifierOptions {
|
|
57
|
+
/** nixamp.com, which signed the pass. */
|
|
58
|
+
site: string;
|
|
59
|
+
/** Set on nixamp.com itself, which checks its own passes without asking. */
|
|
60
|
+
secret?: string;
|
|
61
|
+
fetcher?: typeof fetch;
|
|
62
|
+
now?: () => number;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/** How long a refused pass is remembered, so a bad one cannot make us ask nixamp.com per request. */
|
|
66
|
+
const REFUSED_MS = 5 * 60 * 1000;
|
|
67
|
+
const MAX_REMEMBERED = 5_000;
|
|
68
|
+
|
|
69
|
+
/** Whether a pass is good, asked of nixamp.com once and then remembered until it expires. */
|
|
70
|
+
export class ListenPassVerifier {
|
|
71
|
+
/** pass -> whether it is good, and until when that answer stands. */
|
|
72
|
+
private readonly known = new Map<string, { good: boolean; until: number }>();
|
|
73
|
+
|
|
74
|
+
constructor(private readonly options: VerifierOptions) {}
|
|
75
|
+
|
|
76
|
+
private now(): number {
|
|
77
|
+
return this.options.now?.() ?? Date.now();
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
async good(pass: string): Promise<boolean> {
|
|
81
|
+
if (!/^v1\.\d{1,12}\.[A-Za-z0-9_-]{32}$/.test(pass)) return false;
|
|
82
|
+
if (this.options.secret) return checkListenPass(this.options.secret, pass, this.now()) > 0;
|
|
83
|
+
const seen = this.known.get(pass);
|
|
84
|
+
if (seen && seen.until > this.now()) return seen.good;
|
|
85
|
+
let expires = 0;
|
|
86
|
+
try {
|
|
87
|
+
const answer = await (this.options.fetcher ?? fetch)(
|
|
88
|
+
`${this.options.site.replace(/\/+$/, "")}/api/v1/listen-pass/check?${PASS_PARAM}=${encodeURIComponent(pass)}`,
|
|
89
|
+
{ signal: AbortSignal.timeout(2_000) },
|
|
90
|
+
);
|
|
91
|
+
// nixamp.com down is not a refusal: nothing is remembered, and this
|
|
92
|
+
// listener hears the break this time.
|
|
93
|
+
if (answer.status >= 500) return false;
|
|
94
|
+
const body = (await answer.json().catch(() => ({}))) as { ok?: unknown; expires?: unknown };
|
|
95
|
+
expires = body.ok === true && typeof body.expires === "number" ? body.expires : 0;
|
|
96
|
+
} catch {
|
|
97
|
+
return false;
|
|
98
|
+
}
|
|
99
|
+
if (this.known.size >= MAX_REMEMBERED) this.known.clear();
|
|
100
|
+
const good = expires * 1000 > this.now();
|
|
101
|
+
this.known.set(pass, { good, until: good ? expires * 1000 : this.now() + REFUSED_MS });
|
|
102
|
+
return good;
|
|
103
|
+
}
|
|
104
|
+
}
|
package/src/server.ts
CHANGED
|
@@ -122,6 +122,7 @@ import { EventWriter } from "./event-writer.ts";
|
|
|
122
122
|
import { handleLiveApi } from "./live-api.ts";
|
|
123
123
|
import { LiveEvents, eventStructuredData, isTicketed, type LiveEvent } from "./live-events.ts";
|
|
124
124
|
import { Tickets, needsTicket, ticketFrom, ticketsFromEnv } from "./tickets.ts";
|
|
125
|
+
import { ListenPassVerifier, PASS_PARAM, checkListenPass, listenPassSecret, mintListenPass } from "./listen-pass.ts";
|
|
125
126
|
import { Layouts } from "./layouts.ts";
|
|
126
127
|
import { Rooms } from "./rooms.ts";
|
|
127
128
|
import { Trollbox, TrollboxError, fallbackHandle, roomFor } from "./trollbox.ts";
|
|
@@ -1496,6 +1497,9 @@ export function isSignInPath(path: string): boolean {
|
|
|
1496
1497
|
path === "/api/v1/servers" ||
|
|
1497
1498
|
path.startsWith("/api/v1/servers/") ||
|
|
1498
1499
|
path === "/api/v1/me/handle" ||
|
|
1500
|
+
// A listen pass is the session's to ask for and anybody's to check.
|
|
1501
|
+
path === "/api/v1/me/pass" ||
|
|
1502
|
+
path === "/api/v1/listen-pass/check" ||
|
|
1499
1503
|
path === "/api/v1/me/profile" ||
|
|
1500
1504
|
path.startsWith("/api/v1/me/profile/") ||
|
|
1501
1505
|
// A stored photo is public: it is on every class the host runs.
|
|
@@ -2023,6 +2027,13 @@ export function createHandler(engine: Engine, options: HandlerOptions) {
|
|
|
2023
2027
|
response.once("close", () => tracker.close(id));
|
|
2024
2028
|
};
|
|
2025
2029
|
|
|
2030
|
+
// Signs listen passes where accounts live (nixamp.com); "" everywhere else.
|
|
2031
|
+
const listenPassKey = listenPassSecret();
|
|
2032
|
+
const listenPasses = new ListenPassVerifier({
|
|
2033
|
+
site: process.env["NIXAMP_SITE"] || "https://nixamp.com",
|
|
2034
|
+
...(listenPassKey ? { secret: listenPassKey } : {}),
|
|
2035
|
+
});
|
|
2036
|
+
|
|
2026
2037
|
return async function handle(request: IncomingMessage, response: ServerResponse): Promise<void> {
|
|
2027
2038
|
const url = new URL(request.url ?? "/", "http://localhost");
|
|
2028
2039
|
const path = url.pathname;
|
|
@@ -3059,6 +3070,7 @@ export function createHandler(engine: Engine, options: HandlerOptions) {
|
|
|
3059
3070
|
...(options.stations.cover ? { cover: options.stations.cover } : {}),
|
|
3060
3071
|
...(options.stations.lyrics ? { lyrics: options.stations.lyrics } : {}),
|
|
3061
3072
|
...(options.stations.lyricsPublisher ? { lyricsPublisher: options.stations.lyricsPublisher } : {}),
|
|
3073
|
+
passes: listenPasses,
|
|
3062
3074
|
...(options.stations.peers ? { peers: () => options.stations!.peers!.entries() } : {}),
|
|
3063
3075
|
...(options.stations.rooms ? {
|
|
3064
3076
|
rooms: () => roomEntries(options.stations!.rooms!.store, options.stations!.rooms!.probe, watchBase(options.stations!.publicBase?.() || `${scheme}://${request.headers.host ?? "localhost"}`)),
|
|
@@ -4191,6 +4203,27 @@ export function createHandler(engine: Engine, options: HandlerOptions) {
|
|
|
4191
4203
|
return;
|
|
4192
4204
|
}
|
|
4193
4205
|
|
|
4206
|
+
// A listen pass (listen-pass.ts): a station page on any *.nixamp.com server
|
|
4207
|
+
// asks for one with this site's cookie, which is same-site there, so a
|
|
4208
|
+
// signed-in listener hears no breaks. Credentialed, so never "*".
|
|
4209
|
+
if (path === "/api/v1/me/pass" && request.method === "GET" && options.accounts && listenPassKey) {
|
|
4210
|
+
const origin = String(request.headers.origin ?? "");
|
|
4211
|
+
const cors: Record<string, string> = /^https:\/\/([a-z0-9-]+\.)*nixamp\.com(:\d+)?$/.test(origin)
|
|
4212
|
+
? { "access-control-allow-origin": origin, "access-control-allow-credentials": "true", vary: "origin" }
|
|
4213
|
+
: {};
|
|
4214
|
+
const who = await options.accounts.whoIs(tokenFrom(request.headers));
|
|
4215
|
+
const body = who === null ? { error: "not signed in" } : mintListenPass(listenPassKey);
|
|
4216
|
+
response.writeHead(who === null ? 401 : 200, { ...cors, "content-type": "application/json; charset=utf-8", "cache-control": "no-store" });
|
|
4217
|
+
response.end(JSON.stringify(body));
|
|
4218
|
+
return;
|
|
4219
|
+
}
|
|
4220
|
+
// Asked by a station on another server about a pass it was handed.
|
|
4221
|
+
if (path === "/api/v1/listen-pass/check" && request.method === "GET" && listenPassKey) {
|
|
4222
|
+
const expires = checkListenPass(listenPassKey, url.searchParams.get(PASS_PARAM) ?? "");
|
|
4223
|
+
json(response, 200, expires > 0 ? { ok: true, expires } : { ok: false });
|
|
4224
|
+
return;
|
|
4225
|
+
}
|
|
4226
|
+
|
|
4194
4227
|
if (path === "/api/v1/me/handle" && options.handles && options.accounts) {
|
|
4195
4228
|
const handles = options.handles;
|
|
4196
4229
|
const who = await options.accounts.whoIs(tokenFrom(request.headers));
|
package/src/station-page.ts
CHANGED
|
@@ -197,7 +197,8 @@ export const STATION_APP_CSP = [
|
|
|
197
197
|
"media-src 'self' blob:",
|
|
198
198
|
"worker-src 'self' blob:",
|
|
199
199
|
"img-src 'self' data: blob:",
|
|
200
|
-
|
|
200
|
+
// nixamp.com for a listen pass, so a signed-in listener's breaks go quiet.
|
|
201
|
+
"connect-src 'self' https://nixamp.com",
|
|
201
202
|
"base-uri 'none'",
|
|
202
203
|
"form-action 'none'",
|
|
203
204
|
"frame-ancestors 'none'",
|
package/src/station-routes.ts
CHANGED
|
@@ -19,6 +19,8 @@ import { alertsFor, type Limits, type StationUsage } from "./station-metering.ts
|
|
|
19
19
|
import { aiFromTags, type TrackFacts } from "./track-facts.ts";
|
|
20
20
|
import type { Lyrics } from "./lyrics.ts";
|
|
21
21
|
import type { PublishReport } from "./lyrics-publish.ts";
|
|
22
|
+
import { quietDuringBreaks } from "./break-silence.ts";
|
|
23
|
+
import { PASS_PARAM } from "./listen-pass.ts";
|
|
22
24
|
import {
|
|
23
25
|
StationError, channelOf, tokensMatch, type OwnerStation, type PublicStation, type Station, type StationStore,
|
|
24
26
|
} from "./stations.ts";
|
|
@@ -70,6 +72,8 @@ export interface StationContext {
|
|
|
70
72
|
lyrics?: (station: Station, file: string) => Promise<Lyrics | null>;
|
|
71
73
|
/** Our own songs' words, published back to nichedb (lyrics-publish.ts). */
|
|
72
74
|
lyricsPublisher?: { status: () => unknown; publish: (station: Station) => Promise<PublishReport> };
|
|
75
|
+
/** Whether a listen pass is good: its holder hears silence in place of a radio station's breaks. */
|
|
76
|
+
passes?: { good: (pass: string) => Promise<boolean> };
|
|
73
77
|
/** Auto stations: run a sync with these settings (and keep them), or read them. */
|
|
74
78
|
auto?: { sync: (input: Record<string, unknown>) => Promise<unknown>; setting: () => unknown };
|
|
75
79
|
/** The public stations other servers list (guide peers); absent when there are none. */
|
|
@@ -325,6 +329,10 @@ export async function handleStations(
|
|
|
325
329
|
response.end(JSON.stringify({ error: refused.error, code: refused.code, retryAfter: refused.retryAfter }));
|
|
326
330
|
return true;
|
|
327
331
|
}
|
|
332
|
+
// Signed in at nixamp.com: no breaks, starting a little behind live so
|
|
333
|
+
// they can be left out without a gap. Radio only (Channel.listenWithoutBreaks).
|
|
334
|
+
const pass = url.searchParams.get(PASS_PARAM) ?? "";
|
|
335
|
+
const spared = method === "GET" && !station.video && pass !== "" && ctx.passes ? await ctx.passes.good(pass).catch(() => false) : false;
|
|
328
336
|
response.writeHead(200, { ...ctx.headers, "content-type": ctx.channels.contentType(channelId), "cache-control": "no-store" });
|
|
329
337
|
if (method === "HEAD") {
|
|
330
338
|
response.end();
|
|
@@ -332,7 +340,7 @@ export async function handleStations(
|
|
|
332
340
|
}
|
|
333
341
|
// Every byte that goes out through the link is counted against the station.
|
|
334
342
|
const usage = ctx.usage;
|
|
335
|
-
const
|
|
343
|
+
const metered = usage
|
|
336
344
|
? {
|
|
337
345
|
write: (chunk: Buffer): boolean => {
|
|
338
346
|
usage.delivered(station.id, chunk.length);
|
|
@@ -342,7 +350,9 @@ export async function handleStations(
|
|
|
342
350
|
pending: (): number => response.writableLength,
|
|
343
351
|
}
|
|
344
352
|
: response;
|
|
345
|
-
const detach =
|
|
353
|
+
const detach = spared
|
|
354
|
+
? ctx.channels.listenWithoutBreaks(channelId, metered, station.bitrate, (out) => quietDuringBreaks(out, station.bitrate, () => true))
|
|
355
|
+
: ctx.channels.listen(channelId, metered);
|
|
346
356
|
if (detach === null) {
|
|
347
357
|
response.end();
|
|
348
358
|
return true;
|
package/src/station-usage.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export const USAGE = `nixamp station — make a collection into a station
|
|
3
3
|
|
|
4
4
|
nixamp station list
|
|
5
|
-
nixamp station create --name NAME (--folder PATH | --playlist ID | --items 0,1,2) [--shuffle] [--no-repeat] [--bitrate 128] [--breaks 600]
|
|
5
|
+
nixamp station create --name NAME (--folder PATH | --playlist ID | --items 0,1,2) [--shuffle] [--no-repeat] [--bitrate 128] [--breaks 600 (the default; 0 for none)]
|
|
6
6
|
nixamp station show ID
|
|
7
7
|
nixamp station status ID
|
|
8
8
|
nixamp station start ID
|
package/src/stations.ts
CHANGED
|
@@ -74,6 +74,8 @@ export interface Station {
|
|
|
74
74
|
/** Times an item may fail in a row before rotation leaves it out. */
|
|
75
75
|
export const EXCLUDE_AFTER = 3;
|
|
76
76
|
export const DEFAULT_BITRATE = 128;
|
|
77
|
+
/** Seconds between breaks on a new station that did not say. */
|
|
78
|
+
export const DEFAULT_BREAKS_EVERY = 600;
|
|
77
79
|
export const BITRATES = [64, 96, 128, 160, 192, 256, 320];
|
|
78
80
|
const MAX_ITEMS = 20_000;
|
|
79
81
|
const MAX_NAME = 120;
|
|
@@ -233,7 +235,9 @@ export class StationStore {
|
|
|
233
235
|
listenToken: newToken(),
|
|
234
236
|
bitrate: this.bitrateFrom(input.bitrate),
|
|
235
237
|
video: input.video === true,
|
|
236
|
-
|
|
238
|
+
// On unless asked for none: a station is free to listen to, and the
|
|
239
|
+
// spot is what pays for it. Signed-in listeners hear silence instead.
|
|
240
|
+
breaksEvery: input.breaksEvery === undefined ? DEFAULT_BREAKS_EVERY : this.breaksFrom(input.breaksEvery),
|
|
237
241
|
auto: "",
|
|
238
242
|
rights: null,
|
|
239
243
|
owner,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./main-
|
|
1
|
+
import{t as e}from"./main-BGqOUW4j.js";var t={...e,"No parties live right now.":`لا توجد جلسات مباشرة الآن.`,"Could not refresh parties.":`تعذر تحديث الجلسات.`,"Pick a server in the directory, or paste its link here.":`اختر خادمًا من الدليل أو الصق رابطه هنا.`,"Interface language":`لغة الواجهة`,Language:`اللغة`,"Translation language":`لغة الترجمة`,"Original (auto-detect)":`الأصل (اكتشاف تلقائي)`,Play:`تشغيل`,Pause:`إيقاف مؤقت`,Stop:`إيقاف`,Next:`التالي`,Previous:`السابق`,Select:`اختيار`,"Next/Prev":`التالي/السابق`,Quit:`خروج`,"Now Playing":`قيد التشغيل`,"Spectrum Analyser":`محلل الطيف`,Playlist:`قائمة التشغيل`,Files:`الملفات`,"Open files":`فتح ملفات`,"Open folder":`فتح مجلد`,"Add to library":`إضافة إلى المكتبة`,"Replace playlist":`استبدال قائمة التشغيل`,Filter:`تصفية`,Search:`بحث`,"Nothing loaded.":`لم يُحمّل أي محتوى.`,"Empty.":`فارغ.`,"Loading…":`جارٍ التحميل…`,"Connecting…":`جارٍ الاتصال…`,Connected:`متصل`,"Not connected":`غير متصل`,"No source":`لا يوجد مصدر`,Playing:`يعمل`,Stopped:`متوقف`,Volume:`مستوى الصوت`,Seek:`موضع التشغيل`,"Full screen":`ملء الشاشة`,Download:`تنزيل`,Share:`مشاركة`,Copy:`نسخ`,"Copy link":`نسخ الرابط`,Copied:`تم النسخ`,Save:`حفظ`,Cancel:`إلغاء`,Close:`إغلاق`,Remove:`إزالة`,Delete:`حذف`,Edit:`تعديل`,Add:`إضافة`,Send:`إرسال`,Retry:`إعادة المحاولة`,Back:`رجوع`,"Next page":`الصفحة التالية`,"Previous page":`الصفحة السابقة`,"Show more":`عرض المزيد`,Panels:`اللوحات`,"Reset layout":`إعادة ضبط التخطيط`,Show:`إظهار`,Hide:`إخفاء`,Collapse:`طي`,Expand:`توسيع`,"Move up":`نقل لأعلى`,"Move down":`نقل لأسفل`,Install:`تثبيت`,"TV mode":`وضع التلفاز`,On:`مفعّل`,Off:`معطّل`,Account:`الحساب`,"Sign in":`تسجيل الدخول`,"Sign out":`تسجيل الخروج`,"Create account":`إنشاء حساب`,Email:`البريد الإلكتروني`,Password:`كلمة المرور`,"Forgot password?":`نسيت كلمة المرور؟`,"Welcome back":`مرحبًا بعودتك`,Profile:`الملف الشخصي`,Handle:`اسم المستخدم`,"Your servers":`خوادمك`,Server:`الخادم`,Connect:`اتصال`,Disconnect:`قطع الاتصال`,Directory:`الدليل`,Favourites:`المفضلة`,Follow:`متابعة`,Unfollow:`إلغاء المتابعة`,Notifications:`الإشعارات`,"Phone number":`رقم الهاتف`,"Save number":`حفظ الرقم`,Transcript:`النص المفرغ`,Captions:`الترجمة النصية`,"Translate audio":`ترجمة الصوت`,"Audio language":`لغة الصوت`,"Audio options":`خيارات الصوت`,"Keep background sound":`الاحتفاظ بأصوات الخلفية`,"Background level":`مستوى صوت الخلفية`,"Speaker voices":`أصوات المتحدثين`,"Any voice":`أي صوت`,"Male voice":`صوت رجالي`,"Female voice":`صوت نسائي`,"Original audio.":`الصوت الأصلي.`,"Buy translated audio":`شراء الصوت المترجم`,"Audio credit":`رصيد الصوت`,"Buy pass":`شراء تصريح`,Pass:`تصريح`,"Pay with":`الدفع باستخدام`,"Check payment":`التحقق من الدفع`,"Open checkout":`الانتقال للدفع`,"Free sessions":`جلسات مجانية`,"Usage rates and expiry":`الأسعار ومدة الصلاحية`,Catalogs:`الكتالوجات`,"Add catalog":`إضافة كتالوج`,"Catalog name":`اسم الكتالوج`,Link:`الرابط`,"Play link":`تشغيل الرابط`,"Go live":`بدء بث مباشر`,Publish:`نشر`,Listen:`استماع`,"Live now":`مباشر الآن`,Upcoming:`قريبًا`,Parties:`حفلات المشاهدة`,"Join party":`الانضمام للحفلة`,"Invite code":`رمز الدعوة`,Invite:`دعوة`,Chat:`الدردشة`,"Chat message":`رسالة دردشة`,People:`الأشخاص`,Speaker:`متحدث`,Speakers:`المتحدثون`,Listener:`مستمع`,Moderator:`مشرف`,"Raise hand":`رفع اليد`,"Hand raises":`الأيدي المرفوعة`,Questions:`الأسئلة`,Resources:`الموارد`,Replay:`إعادة العرض`,Schedule:`الجدول`,Event:`الفعالية`,Host:`المضيف`,About:`حول`,Stage:`المنصة`,Title:`العنوان`,Description:`الوصف`,Topic:`الموضوع`,Public:`عام`,"Anyone with the link":`أي شخص لديه الرابط`,"Invited people":`الأشخاص المدعوون`,"Who can join":`من يمكنه الانضمام`,"Date and time":`التاريخ والوقت`,"Expected length":`المدة المتوقعة`,Repeat:`تكرار`,"Does not repeat":`لا يتكرر`,"Every day":`كل يوم`,"Every week":`كل أسبوع`,Homepage:`الموقع الإلكتروني`,"Host name":`اسم المضيف`,"Profile photo URL":`رابط صورة الملف الشخصي`,"Broadcast link":`رابط البث`,"Edit event":`تعديل الفعالية`,"Save changes":`حفظ التغييرات`,"Create live":`إنشاء بث مباشر`,"Schedule class":`جدولة درس`,"Start class":`بدء الدرس`,"End event":`إنهاء الفعالية`,"End session":`إنهاء الجلسة`,"Session ended":`انتهت الجلسة`,"Event ended":`انتهت الفعالية`,Cancelled:`ملغاة`,"Replay available":`إعادة العرض متاحة`,Join:`انضمام`,"Create invite":`إنشاء دعوة`,"Invite as":`الدعوة بصفة`,"Watch now":`شاهد الآن`,"Start a room":`إنشاء غرفة`,"Recent replays":`إعادات العرض الأخيرة`,"Your account":`حسابك`,"Write with AI":`الكتابة بالذكاء الاصطناعي`,"Suggested title":`العنوان المقترح`,"Suggested description":`الوصف المقترح`,"Suggested topic":`الموضوع المقترح`,"Use these details":`استخدام هذه التفاصيل`,"Learn something live.":`تعلّم شيئًا مباشرة.`,"Screen share":`مشاركة الشاشة`,"Upload and broadcast":`رفع وبث`,Help:`مساعدة`,"Reload Player":`إعادة تحميل المشغل`,"Copy Bundled CLI Path":`نسخ مسار أداة سطر الأوامر المضمنة`,"Developer tools":`أدوات المطور`,Undo:`تراجع`,Redo:`إعادة`,Cut:`قص`,Paste:`لصق`,"Select all":`تحديد الكل`,Status:`الحالة`,"Activity log":`سجل النشاط`,Admin:`الإدارة`,"Playback controls":`عناصر التحكم بالتشغيل`,"Tracks and folders":`المقاطع والمجلدات`,"Original-language captions.":`ترجمة نصية باللغة الأصلية.`,"Skip to playback controls":`الانتقال إلى عناصر التحكم بالتشغيل`,"Skip to playlist":`الانتقال إلى قائمة التشغيل`,"Skip to transcript and translated audio":`الانتقال إلى النص المفرغ والصوت المترجم`};export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./main-
|
|
1
|
+
import{t as e}from"./main-BGqOUW4j.js";var t={...e,"No parties live right now.":`Právě neprobíhají žádné párty.`,"Could not refresh parties.":`Párty se nepodařilo aktualizovat.`,"Pick a server in the directory, or paste its link here.":`Vyberte server v seznamu nebo sem vložte jeho odkaz.`,"Interface language":`Jazyk rozhraní`,Language:`Jazyk`,"Translation language":`Jazyk překladu`,"Original (auto-detect)":`Původní (automatické rozpoznání)`,Play:`Přehrát`,Pause:`Pozastavit`,Stop:`Zastavit`,Next:`Další`,Previous:`Předchozí`,Select:`Vybrat`,"Next/Prev":`Další/Předchozí`,Quit:`Ukončit`,"Now Playing":`Právě hraje`,"Spectrum Analyser":`Spektrální analyzátor`,Playlist:`Seznam skladeb`,Files:`Soubory`,"Open files":`Otevřít soubory`,"Open folder":`Otevřít složku`,"Add to library":`Přidat do knihovny`,"Replace playlist":`Nahradit seznam`,Filter:`Filtrovat`,Search:`Hledat`,"Nothing loaded.":`Nic není načteno.`,"Empty.":`Prázdné.`,"Loading…":`Načítání…`,"Connecting…":`Připojování…`,Connected:`Připojeno`,"Not connected":`Nepřipojeno`,"No source":`Žádný zdroj`,Playing:`Přehrávání`,Stopped:`Zastaveno`,Volume:`Hlasitost`,Seek:`Pozice přehrávání`,"Full screen":`Celá obrazovka`,Download:`Stáhnout`,Share:`Sdílet`,Copy:`Kopírovat`,"Copy link":`Kopírovat odkaz`,Copied:`Zkopírováno`,Save:`Uložit`,Cancel:`Zrušit`,Close:`Zavřít`,Remove:`Odebrat`,Delete:`Smazat`,Edit:`Upravit`,Add:`Přidat`,Send:`Odeslat`,Retry:`Zkusit znovu`,Back:`Zpět`,"Next page":`Další stránka`,"Previous page":`Předchozí stránka`,"Show more":`Zobrazit více`,Panels:`Panely`,"Reset layout":`Obnovit rozložení`,Show:`Zobrazit`,Hide:`Skrýt`,Collapse:`Sbalit`,Expand:`Rozbalit`,"Move up":`Nahoru`,"Move down":`Dolů`,Install:`Nainstalovat`,"TV mode":`Režim TV`,On:`Zapnuto`,Off:`Vypnuto`,Account:`Účet`,"Sign in":`Přihlásit se`,"Sign out":`Odhlásit se`,"Create account":`Vytvořit účet`,Email:`E-mail`,Password:`Heslo`,"Forgot password?":`Zapomenuté heslo?`,"Welcome back":`Vítejte zpět`,Profile:`Profil`,Handle:`Uživatelské jméno`,"Your servers":`Vaše servery`,Server:`Server`,Connect:`Připojit`,Disconnect:`Odpojit`,Directory:`Adresář`,Favourites:`Oblíbené`,Follow:`Sledovat`,Unfollow:`Přestat sledovat`,Notifications:`Oznámení`,"Phone number":`Telefonní číslo`,"Save number":`Uložit číslo`,Transcript:`Přepis`,Captions:`Titulky`,"Translate audio":`Překládat zvuk`,"Audio language":`Jazyk zvuku`,"Audio options":`Možnosti zvuku`,"Keep background sound":`Zachovat zvuk na pozadí`,"Background level":`Hlasitost pozadí`,"Speaker voices":`Hlasy mluvčích`,"Any voice":`Libovolný hlas`,"Male voice":`Mužský hlas`,"Female voice":`Ženský hlas`,"Original audio.":`Původní zvuk.`,"Buy translated audio":`Koupit překlad zvuku`,"Audio credit":`Zvukový kredit`,"Buy pass":`Koupit přístup`,Pass:`Přístup`,"Pay with":`Zaplatit pomocí`,"Check payment":`Ověřit platbu`,"Open checkout":`Přejít k platbě`,"Free sessions":`Bezplatné relace`,"Usage rates and expiry":`Ceny a platnost`,Catalogs:`Katalogy`,"Add catalog":`Přidat katalog`,"Catalog name":`Název katalogu`,Link:`Odkaz`,"Play link":`Přehrát odkaz`,"Go live":`Vysílat živě`,Publish:`Zveřejnit`,Listen:`Poslouchat`,"Live now":`Právě živě`,Upcoming:`Připravované`,Parties:`Společná sledování`,"Join party":`Připojit se ke sledování`,"Invite code":`Kód pozvánky`,Invite:`Pozvat`,Chat:`Chat`,"Chat message":`Zpráva chatu`,People:`Lidé`,Speaker:`Mluvčí`,Speakers:`Mluvčí`,Listener:`Posluchač`,Moderator:`Moderátor`,"Raise hand":`Zvednout ruku`,"Hand raises":`Zvednuté ruce`,Questions:`Otázky`,Resources:`Materiály`,Replay:`Záznam`,Schedule:`Rozvrh`,Event:`Událost`,Host:`Pořadatel`,About:`O události`,Stage:`Pódium`,Title:`Název`,Description:`Popis`,Topic:`Téma`,Public:`Veřejné`,"Anyone with the link":`Kdokoli s odkazem`,"Invited people":`Pozvané osoby`,"Who can join":`Kdo se může připojit`,"Date and time":`Datum a čas`,"Expected length":`Očekávaná délka`,Repeat:`Opakovat`,"Does not repeat":`Neopakuje se`,"Every day":`Každý den`,"Every week":`Každý týden`,Homepage:`Webové stránky`,"Host name":`Jméno pořadatele`,"Profile photo URL":`URL profilové fotky`,"Broadcast link":`Odkaz na vysílání`,"Edit event":`Upravit událost`,"Save changes":`Uložit změny`,"Create live":`Vytvořit vysílání`,"Schedule class":`Naplánovat lekci`,"Start class":`Zahájit lekci`,"End event":`Ukončit událost`,"End session":`Ukončit relaci`,"Session ended":`Relace ukončena`,"Event ended":`Událost ukončena`,Cancelled:`Zrušeno`,"Replay available":`Záznam je k dispozici`,Join:`Připojit se`,"Create invite":`Vytvořit pozvánku`,"Invite as":`Pozvat jako`,"Watch now":`Sledovat nyní`,"Start a room":`Vytvořit místnost`,"Recent replays":`Nedávné záznamy`,"Your account":`Váš účet`,"Write with AI":`Psát pomocí AI`,"Suggested title":`Navrhovaný název`,"Suggested description":`Navrhovaný popis`,"Suggested topic":`Navrhované téma`,"Use these details":`Použít tyto údaje`,"Learn something live.":`Učte se naživo.`,"Screen share":`Sdílet obrazovku`,"Upload and broadcast":`Nahrát a vysílat`,Help:`Nápověda`,"Reload Player":`Znovu načíst přehrávač`,"Copy Bundled CLI Path":`Kopírovat cestu k přibalenému CLI`,"Developer tools":`Vývojářské nástroje`,Undo:`Zpět`,Redo:`Znovu`,Cut:`Vyjmout`,Paste:`Vložit`,"Select all":`Vybrat vše`,Status:`Stav`,"Activity log":`Protokol aktivit`,Admin:`Správa`,"Playback controls":`Ovládání přehrávání`,"Tracks and folders":`Skladby a složky`,"Original-language captions.":`Titulky v původním jazyce.`,"Skip to playback controls":`Přejít k ovládání přehrávání`,"Skip to playlist":`Přejít k seznamu skladeb`,"Skip to transcript and translated audio":`Přejít k přepisu a přeloženému zvuku`};export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./main-
|
|
1
|
+
import{t as e}from"./main-BGqOUW4j.js";var t={...e,"No parties live right now.":`Ingen fester er live lige nu.`,"Could not refresh parties.":`Kunne ikke opdatere festerne.`,"Pick a server in the directory, or paste its link here.":`Vælg en server i oversigten, eller indsæt dens link her.`,"Interface language":`Grænsefladesprog`,Language:`Sprog`,"Translation language":`Oversættelsessprog`,"Original (auto-detect)":`Original (automatisk registrering)`,Play:`Afspil`,Pause:`Pause`,Stop:`Stop`,Next:`Næste`,Previous:`Forrige`,Select:`Vælg`,"Next/Prev":`Næste/Forrige`,Quit:`Afslut`,"Now Playing":`Afspilles nu`,"Spectrum Analyser":`Spektrumanalysator`,Playlist:`Afspilningsliste`,Files:`Filer`,"Open files":`Åbn filer`,"Open folder":`Åbn mappe`,"Add to library":`Føj til bibliotek`,"Replace playlist":`Erstat afspilningsliste`,Filter:`Filtrer`,Search:`Søg`,"Nothing loaded.":`Intet indlæst.`,"Empty.":`Tomt.`,"Loading…":`Indlæser…`,"Connecting…":`Forbinder…`,Connected:`Forbundet`,"Not connected":`Ikke forbundet`,"No source":`Ingen kilde`,Playing:`Afspiller`,Stopped:`Stoppet`,Volume:`Lydstyrke`,Seek:`Afspilningsposition`,"Full screen":`Fuld skærm`,Download:`Download`,Share:`Del`,Copy:`Kopiér`,"Copy link":`Kopiér link`,Copied:`Kopieret`,Save:`Gem`,Cancel:`Annuller`,Close:`Luk`,Remove:`Fjern`,Delete:`Slet`,Edit:`Rediger`,Add:`Tilføj`,Send:`Send`,Retry:`Prøv igen`,Back:`Tilbage`,"Next page":`Næste side`,"Previous page":`Forrige side`,"Show more":`Vis flere`,Panels:`Paneler`,"Reset layout":`Nulstil layout`,Show:`Vis`,Hide:`Skjul`,Collapse:`Fold sammen`,Expand:`Fold ud`,"Move up":`Flyt op`,"Move down":`Flyt ned`,Install:`Installer`,"TV mode":`TV-tilstand`,On:`Til`,Off:`Fra`,Account:`Konto`,"Sign in":`Log ind`,"Sign out":`Log ud`,"Create account":`Opret konto`,Email:`E-mail`,Password:`Adgangskode`,"Forgot password?":`Glemt adgangskode?`,"Welcome back":`Velkommen tilbage`,Profile:`Profil`,Handle:`Brugernavn`,"Your servers":`Dine servere`,Server:`Server`,Connect:`Forbind`,Disconnect:`Afbryd`,Directory:`Oversigt`,Favourites:`Favoritter`,Follow:`Følg`,Unfollow:`Følg ikke længere`,Notifications:`Notifikationer`,"Phone number":`Telefonnummer`,"Save number":`Gem nummer`,Transcript:`Transskription`,Captions:`Undertekster`,"Translate audio":`Oversæt lyd`,"Audio language":`Lydsprog`,"Audio options":`Lydindstillinger`,"Keep background sound":`Bevar baggrundslyd`,"Background level":`Baggrundslydstyrke`,"Speaker voices":`Talernes stemmer`,"Any voice":`Vilkårlig stemme`,"Male voice":`Mandlig stemme`,"Female voice":`Kvindelig stemme`,"Original audio.":`Original lyd.`,"Buy translated audio":`Køb oversat lyd`,"Audio credit":`Lydsaldo`,"Buy pass":`Køb adgang`,Pass:`Adgang`,"Pay with":`Betal med`,"Check payment":`Kontrollér betaling`,"Open checkout":`Gå til betaling`,"Free sessions":`Gratis sessioner`,"Usage rates and expiry":`Priser og udløb`,Catalogs:`Kataloger`,"Add catalog":`Tilføj katalog`,"Catalog name":`Katalognavn`,Link:`Link`,"Play link":`Afspil link`,"Go live":`Gå live`,Publish:`Udgiv`,Listen:`Lyt`,"Live now":`Live nu`,Upcoming:`Kommende`,Parties:`Seerfester`,"Join party":`Deltag i festen`,"Invite code":`Invitationskode`,Invite:`Inviter`,Chat:`Chat`,"Chat message":`Chatbesked`,People:`Personer`,Speaker:`Taler`,Speakers:`Talere`,Listener:`Lytter`,Moderator:`Moderator`,"Raise hand":`Ræk hånden op`,"Hand raises":`Oprakte hænder`,Questions:`Spørgsmål`,Resources:`Materialer`,Replay:`Genudsendelse`,Schedule:`Program`,Event:`Begivenhed`,Host:`Vært`,About:`Om`,Stage:`Scene`,Title:`Titel`,Description:`Beskrivelse`,Topic:`Emne`,Public:`Offentlig`,"Anyone with the link":`Alle med linket`,"Invited people":`Inviterede personer`,"Who can join":`Hvem kan deltage`,"Date and time":`Dato og klokkeslæt`,"Expected length":`Forventet varighed`,Repeat:`Gentag`,"Does not repeat":`Gentages ikke`,"Every day":`Hver dag`,"Every week":`Hver uge`,Homepage:`Hjemmeside`,"Host name":`Værtens navn`,"Profile photo URL":`URL til profilbillede`,"Broadcast link":`Udsendelseslink`,"Edit event":`Rediger begivenhed`,"Save changes":`Gem ændringer`,"Create live":`Opret livesending`,"Schedule class":`Planlæg undervisning`,"Start class":`Start undervisning`,"End event":`Afslut begivenhed`,"End session":`Afslut session`,"Session ended":`Session afsluttet`,"Event ended":`Begivenhed afsluttet`,Cancelled:`Annulleret`,"Replay available":`Genudsendelse tilgængelig`,Join:`Deltag`,"Create invite":`Opret invitation`,"Invite as":`Inviter som`,"Watch now":`Se nu`,"Start a room":`Opret et rum`,"Recent replays":`Seneste genudsendelser`,"Your account":`Din konto`,"Write with AI":`Skriv med AI`,"Suggested title":`Foreslået titel`,"Suggested description":`Foreslået beskrivelse`,"Suggested topic":`Foreslået emne`,"Use these details":`Brug disse oplysninger`,"Learn something live.":`Lær noget live.`,"Screen share":`Del skærm`,"Upload and broadcast":`Upload og udsend`,Help:`Hjælp`,"Reload Player":`Genindlæs afspiller`,"Copy Bundled CLI Path":`Kopiér stien til medfølgende CLI`,"Developer tools":`Udviklerværktøjer`,Undo:`Fortryd`,Redo:`Gentag`,Cut:`Klip`,Paste:`Indsæt`,"Select all":`Vælg alle`,Status:`Status`,"Activity log":`Aktivitetslog`,Admin:`Administration`,"Playback controls":`Afspilningskontroller`,"Tracks and folders":`Numre og mapper`,"Original-language captions.":`Undertekster på originalsproget.`,"Skip to playback controls":`Spring til afspilningskontroller`,"Skip to playlist":`Spring til afspilningslisten`,"Skip to transcript and translated audio":`Spring til transskription og oversat lyd`};export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./main-
|
|
1
|
+
import{t as e}from"./main-BGqOUW4j.js";var t={...e,"No parties live right now.":`Gerade sind keine Partys live.`,"Could not refresh parties.":`Partys konnten nicht aktualisiert werden.`,"Pick a server in the directory, or paste its link here.":`Wähle einen Server im Verzeichnis oder füge seinen Link hier ein.`,"Interface language":`Sprache der Oberfläche`,Language:`Sprache`,"Translation language":`Übersetzungssprache`,"Original (auto-detect)":`Original (automatisch erkennen)`,Play:`Abspielen`,Pause:`Pause`,Stop:`Stopp`,Next:`Weiter`,Previous:`Zurück`,Select:`Auswählen`,"Next/Prev":`Weiter/Zurück`,Quit:`Beenden`,"Now Playing":`Aktuelle Wiedergabe`,"Spectrum Analyser":`Spektrumanalysator`,Playlist:`Wiedergabeliste`,Files:`Dateien`,"Open files":`Dateien öffnen`,"Open folder":`Ordner öffnen`,"Add to library":`Zur Mediathek hinzufügen`,"Replace playlist":`Wiedergabeliste ersetzen`,Filter:`Filtern`,Search:`Suchen`,"Nothing loaded.":`Nichts geladen.`,"Empty.":`Leer.`,"Loading…":`Wird geladen…`,"Connecting…":`Verbindung wird hergestellt…`,Connected:`Verbunden`,"Not connected":`Nicht verbunden`,"No source":`Keine Quelle`,Playing:`Wiedergabe`,Stopped:`Gestoppt`,Volume:`Lautstärke`,Seek:`Wiedergabeposition`,"Full screen":`Vollbild`,Download:`Herunterladen`,Share:`Teilen`,Copy:`Kopieren`,"Copy link":`Link kopieren`,Copied:`Kopiert`,Save:`Speichern`,Cancel:`Abbrechen`,Close:`Schließen`,Remove:`Entfernen`,Delete:`Löschen`,Edit:`Bearbeiten`,Add:`Hinzufügen`,Send:`Senden`,Retry:`Erneut versuchen`,Back:`Zurück`,"Next page":`Nächste Seite`,"Previous page":`Vorherige Seite`,"Show more":`Mehr anzeigen`,Panels:`Bereiche`,"Reset layout":`Anordnung zurücksetzen`,Show:`Anzeigen`,Hide:`Ausblenden`,Collapse:`Einklappen`,Expand:`Ausklappen`,"Move up":`Nach oben`,"Move down":`Nach unten`,Install:`Installieren`,"TV mode":`TV-Modus`,On:`Ein`,Off:`Aus`,Account:`Konto`,"Sign in":`Anmelden`,"Sign out":`Abmelden`,"Create account":`Konto erstellen`,Email:`E-Mail`,Password:`Passwort`,"Forgot password?":`Passwort vergessen?`,"Welcome back":`Willkommen zurück`,Profile:`Profil`,Handle:`Benutzername`,"Your servers":`Deine Server`,Server:`Server`,Connect:`Verbinden`,Disconnect:`Trennen`,Directory:`Verzeichnis`,Favourites:`Favoriten`,Follow:`Folgen`,Unfollow:`Nicht mehr folgen`,Notifications:`Benachrichtigungen`,"Phone number":`Telefonnummer`,"Save number":`Nummer speichern`,Transcript:`Transkript`,Captions:`Untertitel`,"Translate audio":`Audio übersetzen`,"Audio language":`Audiosprache`,"Audio options":`Audiooptionen`,"Keep background sound":`Hintergrundgeräusche beibehalten`,"Background level":`Hintergrundlautstärke`,"Speaker voices":`Sprecherstimmen`,"Any voice":`Beliebige Stimme`,"Male voice":`Männliche Stimme`,"Female voice":`Weibliche Stimme`,"Original audio.":`Originalton.`,"Buy translated audio":`Übersetztes Audio kaufen`,"Audio credit":`Audioguthaben`,"Buy pass":`Pass kaufen`,Pass:`Pass`,"Pay with":`Bezahlen mit`,"Check payment":`Zahlung prüfen`,"Open checkout":`Zur Kasse`,"Free sessions":`Kostenlose Sitzungen`,"Usage rates and expiry":`Nutzungspreise und Ablauf`,Catalogs:`Kataloge`,"Add catalog":`Katalog hinzufügen`,"Catalog name":`Katalogname`,Link:`Link`,"Play link":`Link abspielen`,"Go live":`Live gehen`,Publish:`Veröffentlichen`,Listen:`Anhören`,"Live now":`Jetzt live`,Upcoming:`Demnächst`,Parties:`Watchpartys`,"Join party":`Party beitreten`,"Invite code":`Einladungscode`,Invite:`Einladen`,Chat:`Chat`,"Chat message":`Chatnachricht`,People:`Personen`,Speaker:`Sprecher`,Speakers:`Sprecher`,Listener:`Zuhörer`,Moderator:`Moderator`,"Raise hand":`Hand heben`,"Hand raises":`Wortmeldungen`,Questions:`Fragen`,Resources:`Materialien`,Replay:`Aufzeichnung`,Schedule:`Zeitplan`,Event:`Veranstaltung`,Host:`Gastgeber`,About:`Über`,Stage:`Bühne`,Title:`Titel`,Description:`Beschreibung`,Topic:`Thema`,Public:`Öffentlich`,"Anyone with the link":`Alle mit dem Link`,"Invited people":`Eingeladene Personen`,"Who can join":`Wer teilnehmen kann`,"Date and time":`Datum und Uhrzeit`,"Expected length":`Geplante Dauer`,Repeat:`Wiederholen`,"Does not repeat":`Keine Wiederholung`,"Every day":`Jeden Tag`,"Every week":`Jede Woche`,Homepage:`Webseite`,"Host name":`Name des Gastgebers`,"Profile photo URL":`URL des Profilbilds`,"Broadcast link":`Übertragungslink`,"Edit event":`Veranstaltung bearbeiten`,"Save changes":`Änderungen speichern`,"Create live":`Live-Übertragung erstellen`,"Schedule class":`Kurs planen`,"Start class":`Kurs starten`,"End event":`Veranstaltung beenden`,"End session":`Sitzung beenden`,"Session ended":`Sitzung beendet`,"Event ended":`Veranstaltung beendet`,Cancelled:`Abgesagt`,"Replay available":`Aufzeichnung verfügbar`,Join:`Beitreten`,"Create invite":`Einladung erstellen`,"Invite as":`Einladen als`,"Watch now":`Jetzt ansehen`,"Start a room":`Raum eröffnen`,"Recent replays":`Neueste Aufzeichnungen`,"Your account":`Dein Konto`,"Write with AI":`Mit KI schreiben`,"Suggested title":`Titelvorschlag`,"Suggested description":`Beschreibungsvorschlag`,"Suggested topic":`Themenvorschlag`,"Use these details":`Diese Angaben verwenden`,"Learn something live.":`Lerne etwas live.`,"Screen share":`Bildschirm teilen`,"Upload and broadcast":`Hochladen und übertragen`,Help:`Hilfe`,"Reload Player":`Player neu laden`,"Copy Bundled CLI Path":`Pfad zur gebündelten CLI kopieren`,"Developer tools":`Entwicklerwerkzeuge`,Undo:`Rückgängig`,Redo:`Wiederholen`,Cut:`Ausschneiden`,Paste:`Einfügen`,"Select all":`Alles auswählen`,Status:`Status`,"Activity log":`Aktivitätsprotokoll`,Admin:`Verwaltung`,"Playback controls":`Wiedergabesteuerung`,"Tracks and folders":`Titel und Ordner`,"Original-language captions.":`Untertitel in der Originalsprache.`,"Skip to playback controls":`Zur Wiedergabesteuerung springen`,"Skip to playlist":`Zur Wiedergabeliste springen`,"Skip to transcript and translated audio":`Zum Transkript und übersetzten Audio springen`};export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./main-
|
|
1
|
+
import{t as e}from"./main-BGqOUW4j.js";var t={...e,"No parties live right now.":`No hay fiestas en directo ahora.`,"Could not refresh parties.":`No se pudieron actualizar las fiestas.`,"Pick a server in the directory, or paste its link here.":`Elige un servidor del directorio o pega su enlace aquí.`,"Interface language":`Idioma de la interfaz`,Language:`Idioma`,"Translation language":`Idioma de traducción`,"Original (auto-detect)":`Original (detección automática)`,Play:`Reproducir`,Pause:`Pausar`,Stop:`Detener`,Next:`Siguiente`,Previous:`Anterior`,Select:`Seleccionar`,"Next/Prev":`Siguiente/Anterior`,Quit:`Salir`,"Now Playing":`Reproduciendo`,"Spectrum Analyser":`Analizador de espectro`,Playlist:`Lista de reproducción`,Files:`Archivos`,"Open files":`Abrir archivos`,"Open folder":`Abrir carpeta`,"Add to library":`Añadir a la biblioteca`,"Replace playlist":`Reemplazar lista`,Filter:`Filtrar`,Search:`Buscar`,"Nothing loaded.":`No hay nada cargado.`,"Empty.":`Vacío.`,"Loading…":`Cargando…`,"Connecting…":`Conectando…`,Connected:`Conectado`,"Not connected":`Sin conexión`,"No source":`Sin fuente`,Playing:`Reproduciendo`,Stopped:`Detenido`,Volume:`Volumen`,Seek:`Posición de reproducción`,"Full screen":`Pantalla completa`,Download:`Descargar`,Share:`Compartir`,Copy:`Copiar`,"Copy link":`Copiar enlace`,Copied:`Copiado`,Save:`Guardar`,Cancel:`Cancelar`,Close:`Cerrar`,Remove:`Quitar`,Delete:`Eliminar`,Edit:`Editar`,Add:`Añadir`,Send:`Enviar`,Retry:`Reintentar`,Back:`Volver`,"Next page":`Página siguiente`,"Previous page":`Página anterior`,"Show more":`Mostrar más`,Panels:`Paneles`,"Reset layout":`Restablecer diseño`,Show:`Mostrar`,Hide:`Ocultar`,Collapse:`Contraer`,Expand:`Expandir`,"Move up":`Subir`,"Move down":`Bajar`,Install:`Instalar`,"TV mode":`Modo TV`,On:`Activado`,Off:`Desactivado`,Account:`Cuenta`,"Sign in":`Iniciar sesión`,"Sign out":`Cerrar sesión`,"Create account":`Crear cuenta`,Email:`Correo electrónico`,Password:`Contraseña`,"Forgot password?":`¿Olvidaste tu contraseña?`,"Welcome back":`Te damos la bienvenida de nuevo`,Profile:`Perfil`,Handle:`Nombre de usuario`,"Your servers":`Tus servidores`,Server:`Servidor`,Connect:`Conectar`,Disconnect:`Desconectar`,Directory:`Directorio`,Favourites:`Favoritos`,Follow:`Seguir`,Unfollow:`Dejar de seguir`,Notifications:`Notificaciones`,"Phone number":`Número de teléfono`,"Save number":`Guardar número`,Transcript:`Transcripción`,Captions:`Subtítulos`,"Translate audio":`Traducir audio`,"Audio language":`Idioma del audio`,"Audio options":`Opciones de audio`,"Keep background sound":`Conservar sonido de fondo`,"Background level":`Volumen de fondo`,"Speaker voices":`Voces de los hablantes`,"Any voice":`Cualquier voz`,"Male voice":`Voz masculina`,"Female voice":`Voz femenina`,"Original audio.":`Audio original.`,"Buy translated audio":`Comprar audio traducido`,"Audio credit":`Saldo de audio`,"Buy pass":`Comprar pase`,Pass:`Pase`,"Pay with":`Pagar con`,"Check payment":`Comprobar pago`,"Open checkout":`Ir al pago`,"Free sessions":`Sesiones gratuitas`,"Usage rates and expiry":`Tarifas de uso y caducidad`,Catalogs:`Catálogos`,"Add catalog":`Añadir catálogo`,"Catalog name":`Nombre del catálogo`,Link:`Enlace`,"Play link":`Reproducir enlace`,"Go live":`Transmitir en directo`,Publish:`Publicar`,Listen:`Escuchar`,"Live now":`En directo`,Upcoming:`Próximamente`,Parties:`Fiestas`,"Join party":`Unirse a la fiesta`,"Invite code":`Código de invitación`,Invite:`Invitar`,Chat:`Chat`,"Chat message":`Mensaje de chat`,People:`Personas`,Speaker:`Hablante`,Speakers:`Hablantes`,Listener:`Oyente`,Moderator:`Moderador`,"Raise hand":`Levantar la mano`,"Hand raises":`Manos levantadas`,Questions:`Preguntas`,Resources:`Recursos`,Replay:`Repetición`,Schedule:`Programación`,Event:`Evento`,Host:`Anfitrión`,About:`Acerca de`,Stage:`Escenario`,Title:`Título`,Description:`Descripción`,Topic:`Tema`,Public:`Público`,"Anyone with the link":`Cualquiera con el enlace`,"Invited people":`Personas invitadas`,"Who can join":`Quién puede unirse`,"Date and time":`Fecha y hora`,"Expected length":`Duración prevista`,Repeat:`Repetir`,"Does not repeat":`No se repite`,"Every day":`Cada día`,"Every week":`Cada semana`,Homepage:`Página web`,"Host name":`Nombre del anfitrión`,"Profile photo URL":`URL de la foto de perfil`,"Broadcast link":`Enlace de transmisión`,"Edit event":`Editar evento`,"Save changes":`Guardar cambios`,"Create live":`Crear directo`,"Schedule class":`Programar clase`,"Start class":`Iniciar clase`,"End event":`Finalizar evento`,"End session":`Finalizar sesión`,"Session ended":`Sesión finalizada`,"Event ended":`Evento finalizado`,Cancelled:`Cancelado`,"Replay available":`Repetición disponible`,Join:`Unirse`,"Create invite":`Crear invitación`,"Invite as":`Invitar como`,"Watch now":`Ver ahora`,"Start a room":`Crear una sala`,"Recent replays":`Repeticiones recientes`,"Your account":`Tu cuenta`,"Write with AI":`Escribir con IA`,"Suggested title":`Título sugerido`,"Suggested description":`Descripción sugerida`,"Suggested topic":`Tema sugerido`,"Use these details":`Usar estos datos`,"Learn something live.":`Aprende algo en directo.`,"Screen share":`Compartir pantalla`,"Upload and broadcast":`Subir y transmitir`,Help:`Ayuda`,"Reload Player":`Recargar reproductor`,"Copy Bundled CLI Path":`Copiar ruta de la CLI incluida`,"Developer tools":`Herramientas de desarrollo`,Undo:`Deshacer`,Redo:`Rehacer`,Cut:`Cortar`,Paste:`Pegar`,"Select all":`Seleccionar todo`,Status:`Estado`,"Activity log":`Registro de actividad`,Admin:`Administración`,"Playback controls":`Controles de reproducción`,"Tracks and folders":`Pistas y carpetas`,"Original-language captions.":`Subtítulos en el idioma original.`,"Skip to playback controls":`Ir a los controles de reproducción`,"Skip to playlist":`Ir a la lista de reproducción`,"Skip to transcript and translated audio":`Ir a la transcripción y al audio traducido`};export{t as default};
|