nixamp 0.58.0 → 0.58.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/channels.d.ts +20 -0
- package/dist/channels.js +38 -0
- package/dist/radio-pages.js +1 -1
- package/dist/station-routes.d.ts +9 -1
- package/dist/station-routes.js +63 -3
- package/package.json +1 -1
- package/src/channels.ts +43 -0
- package/src/radio-pages.ts +1 -1
- package/src/station-routes.ts +69 -4
- package/web/dist/assets/{ar-C8G_vLmh.js → ar-CBn9fObz.js} +1 -1
- package/web/dist/assets/{cs-7bYMjFS2.js → cs-BvEScz92.js} +1 -1
- package/web/dist/assets/{da-DHY5Csp_.js → da-uKElVtgi.js} +1 -1
- package/web/dist/assets/{de-YNBoxnLa.js → de-DXEoI1GG.js} +1 -1
- package/web/dist/assets/{es-9F9kBzzh.js → es-Q-QEZFh2.js} +1 -1
- package/web/dist/assets/{fi-BqpzsfBb.js → fi-ClJkdfXs.js} +1 -1
- package/web/dist/assets/{fr-BKQXRwFk.js → fr-DWmNoP1h.js} +1 -1
- package/web/dist/assets/{hi-CGNIGyR-.js → hi-DGQOrveg.js} +1 -1
- package/web/dist/assets/{hu-anYPYX8d.js → hu-DGcKM8DB.js} +1 -1
- package/web/dist/assets/{id-BW3GasRn.js → id-D18Cz5RW.js} +1 -1
- package/web/dist/assets/{it-C7w2DZ3R.js → it-WQxuRjlI.js} +1 -1
- package/web/dist/assets/{main-YkIgU0VD.js → main-cry6C8KD.js} +2 -2
- package/web/dist/assets/{nl-BNrkTQI2.js → nl-BvOA9QBr.js} +1 -1
- package/web/dist/assets/{ru-CnKOo1uk.js → ru-Cx4tgP1k.js} +1 -1
- package/web/dist/assets/{station-CSnjPeod.css → station-6b_smJHe.css} +1 -1
- package/web/dist/assets/{station-M7G4NiE3.js → station-BzLUgyQ0.js} +2 -2
- package/web/dist/assets/{sv-BsknKdtx.js → sv-f0zj1AdU.js} +1 -1
- package/web/dist/assets/{uk-u_igTh6D.js → uk-DpGYtFFI.js} +1 -1
- package/web/dist/assets/{vi-DH0ApTua.js → vi-Cxf7VqJQ.js} +1 -1
- package/web/dist/assets/{zh-Bcnk2nIV.js → zh-DyuYbygO.js} +1 -1
- package/web/dist/index.html +1 -1
- package/web/dist/station.html +2 -2
- package/web/dist/sw.js +24 -24
- package/web/dist/vod.html +2 -2
- package/web/dist/watch.html +2 -2
- /package/web/dist/assets/{vod-Br9Ooz6-.js → vod-Bbg_gWbl.js} +0 -0
- /package/web/dist/assets/{watch-Brz-RgjN.js → watch-Bygo4bPY.js} +0 -0
package/dist/channels.d.ts
CHANGED
|
@@ -215,6 +215,8 @@ export interface ChannelOptions {
|
|
|
215
215
|
/** Whether a pulled source is read here and piped to ffmpeg. See `Channels.setThrough`. */
|
|
216
216
|
through?: ThroughProvider;
|
|
217
217
|
}
|
|
218
|
+
/** The byte count a chunk began at, for one a list channel put out; undefined for any other. */
|
|
219
|
+
export declare function chunkStart(chunk: Buffer): number | undefined;
|
|
218
220
|
/**
|
|
219
221
|
* One live source, and its audience.
|
|
220
222
|
*
|
|
@@ -257,6 +259,20 @@ export declare class Channel {
|
|
|
257
259
|
} | null;
|
|
258
260
|
/** Whether listeners would get sound (and, for a picture, its opening) if they joined now. */
|
|
259
261
|
get flowing(): boolean;
|
|
262
|
+
/**
|
|
263
|
+
* What was going out at this point of the byte count: the list's file (""
|
|
264
|
+
* in a break) and how far into it, with its tags. Null for a byte this
|
|
265
|
+
* channel no longer knows, or for a channel that is not a radio list.
|
|
266
|
+
*/
|
|
267
|
+
placeAt(bytes: number): {
|
|
268
|
+
file: string;
|
|
269
|
+
position: number;
|
|
270
|
+
tags?: {
|
|
271
|
+
title: string;
|
|
272
|
+
artist: string;
|
|
273
|
+
album: string;
|
|
274
|
+
};
|
|
275
|
+
} | null;
|
|
260
276
|
/** An entry's tags, as read when it was put on. */
|
|
261
277
|
tagsOf(file: string): {
|
|
262
278
|
title: string;
|
|
@@ -290,6 +306,8 @@ export declare class Channel {
|
|
|
290
306
|
private breakOn;
|
|
291
307
|
/** The last couple of minutes of a radio list without its breaks, for listenWithoutBreaks. */
|
|
292
308
|
private music;
|
|
309
|
+
/** The last few dials of a radio list, newest last, for placeAt(). */
|
|
310
|
+
private dials;
|
|
293
311
|
private musicBytes;
|
|
294
312
|
private fragmentClock;
|
|
295
313
|
private fragmentTimes;
|
|
@@ -543,6 +561,8 @@ export declare class Channels {
|
|
|
543
561
|
setThrough(provider: ThroughProvider | null): void;
|
|
544
562
|
/** The kind of a channel, for a relay to say what it is carrying. */
|
|
545
563
|
kindOf(id: string): "audio" | "video" | undefined;
|
|
564
|
+
/** What a radio list channel was putting out at a point of its byte count (Channel.placeAt). */
|
|
565
|
+
placeAt(id: string, bytes: number): ReturnType<Channel["placeAt"]>;
|
|
546
566
|
/** An entry's tags on a channel playing a list of files. */
|
|
547
567
|
tagsOf(id: string, file: string): {
|
|
548
568
|
title: string;
|
package/dist/channels.js
CHANGED
|
@@ -122,6 +122,16 @@ export function cleanId(value, fallback = "main") {
|
|
|
122
122
|
const id = value.trim().toLowerCase().replace(/[^a-z0-9_-]/g, "-").replace(/^-+|-+$/g, "");
|
|
123
123
|
return id.slice(0, 40) || fallback;
|
|
124
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* Where each chunk a channel put out begins in its byte count (ChannelInfo.bytes),
|
|
127
|
+
* so a listener's own bytes can be laid onto the channel's: a backlog, a
|
|
128
|
+
* skipped break and a redial all keep the chunk objects they were sent as.
|
|
129
|
+
*/
|
|
130
|
+
const chunkStarts = new WeakMap();
|
|
131
|
+
/** The byte count a chunk began at, for one a list channel put out; undefined for any other. */
|
|
132
|
+
export function chunkStart(chunk) {
|
|
133
|
+
return chunkStarts.get(chunk);
|
|
134
|
+
}
|
|
125
135
|
/**
|
|
126
136
|
* One live source, and its audience.
|
|
127
137
|
*
|
|
@@ -179,6 +189,20 @@ export class Channel {
|
|
|
179
189
|
get flowing() {
|
|
180
190
|
return this.info.bytes > 0 && (!this.fragments || this.fragments.ready);
|
|
181
191
|
}
|
|
192
|
+
/**
|
|
193
|
+
* What was going out at this point of the byte count: the list's file (""
|
|
194
|
+
* in a break) and how far into it, with its tags. Null for a byte this
|
|
195
|
+
* channel no longer knows, or for a channel that is not a radio list.
|
|
196
|
+
*/
|
|
197
|
+
placeAt(bytes) {
|
|
198
|
+
const dial = this.dials.findLast((one) => one.base <= bytes);
|
|
199
|
+
if (!dial)
|
|
200
|
+
return null;
|
|
201
|
+
const place = dial.input.place(((bytes - dial.base) * 8) / (dial.kbps * 1000));
|
|
202
|
+
const file = place.at >= 0 ? place.list[place.at] ?? "" : "";
|
|
203
|
+
const tags = file ? dial.input.tags.get(file) : undefined;
|
|
204
|
+
return { file, position: place.position, ...(tags ? { tags } : {}) };
|
|
205
|
+
}
|
|
182
206
|
/** An entry's tags, as read when it was put on. */
|
|
183
207
|
tagsOf(file) {
|
|
184
208
|
return this.playlistInput?.tags.get(file);
|
|
@@ -210,6 +234,8 @@ export class Channel {
|
|
|
210
234
|
breakOn = false;
|
|
211
235
|
/** The last couple of minutes of a radio list without its breaks, for listenWithoutBreaks. */
|
|
212
236
|
music = [];
|
|
237
|
+
/** The last few dials of a radio list, newest last, for placeAt(). */
|
|
238
|
+
dials = [];
|
|
213
239
|
musicBytes = 0;
|
|
214
240
|
fragmentClock = new FragmentClock();
|
|
215
241
|
fragmentTimes = new WeakMap();
|
|
@@ -452,9 +478,17 @@ export class Channel {
|
|
|
452
478
|
if (!sent)
|
|
453
479
|
this.info.error = undefined;
|
|
454
480
|
sent = true;
|
|
481
|
+
const at = this.info.bytes;
|
|
455
482
|
this.info.bytes += chunk.byteLength;
|
|
456
483
|
this.rearm(child);
|
|
457
484
|
if (kbps > 0 && playlistInput) {
|
|
485
|
+
// Constant-bitrate MP3: a byte of this dial is exactly a time on its list's clock.
|
|
486
|
+
if (written === 0) {
|
|
487
|
+
this.dials.push({ base: at, input: playlistInput, kbps });
|
|
488
|
+
if (this.dials.length > 8)
|
|
489
|
+
this.dials.shift();
|
|
490
|
+
}
|
|
491
|
+
chunkStarts.set(chunk, at);
|
|
458
492
|
this.breakOn = playlistInput.place((written * 8) / (kbps * 1000)).at === -1;
|
|
459
493
|
written += chunk.byteLength;
|
|
460
494
|
}
|
|
@@ -1291,6 +1325,10 @@ export class Channels {
|
|
|
1291
1325
|
kindOf(id) {
|
|
1292
1326
|
return this.open.get(id)?.info.kind;
|
|
1293
1327
|
}
|
|
1328
|
+
/** What a radio list channel was putting out at a point of its byte count (Channel.placeAt). */
|
|
1329
|
+
placeAt(id, bytes) {
|
|
1330
|
+
return this.open.get(id)?.placeAt(bytes) ?? null;
|
|
1331
|
+
}
|
|
1294
1332
|
/** An entry's tags on a channel playing a list of files. */
|
|
1295
1333
|
tagsOf(id, file) {
|
|
1296
1334
|
return this.open.get(id)?.tagsOf(file);
|
package/dist/radio-pages.js
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
import { createHash } from "node:crypto";
|
|
22
22
|
import { albumSlug, artistSlug, stationSlug } from "./radio-slug.js";
|
|
23
23
|
/** A station's own paths, as the station link opens them. */
|
|
24
|
-
export const RADIO_SUB = /^\/radio\/([a-z0-9-]{1,60})\/(stream|state|listen\.m3u|events|now|art|lyrics)$/;
|
|
24
|
+
export const RADIO_SUB = /^\/radio\/([a-z0-9-]{1,60})\/(stream|state|listen\.m3u|events|now|art|lyrics|clock)$/;
|
|
25
25
|
export const RADIO_STATION = /^\/radio\/([a-z0-9-]{1,60})\/?$/;
|
|
26
26
|
export const RADIO_ARTIST = /^\/radio\/artist\/([a-z0-9-]{1,90})\/?$/;
|
|
27
27
|
export const RADIO_ALBUM = /^\/radio\/album\/([a-z0-9-]{1,100})(\/cover\.jpg)?\/?$/;
|
package/dist/station-routes.d.ts
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* reading English.
|
|
14
14
|
*/
|
|
15
15
|
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
16
|
-
import type
|
|
16
|
+
import { type Channels } from "./channels.ts";
|
|
17
17
|
import type { StationRunner } from "./station-runner.ts";
|
|
18
18
|
import { type Limits, type StationUsage } from "./station-metering.ts";
|
|
19
19
|
import { type TrackFacts } from "./track-facts.ts";
|
|
@@ -98,6 +98,14 @@ declare function links(ctx: StationContext, station: Station, base?: string): {
|
|
|
98
98
|
m3u: string;
|
|
99
99
|
state: string;
|
|
100
100
|
};
|
|
101
|
+
/** Records a connection's bytes onto its channel's, through the listener it writes to. */
|
|
102
|
+
export declare function clockedListener<T extends {
|
|
103
|
+
write(chunk: Buffer): boolean;
|
|
104
|
+
}>(key: string, out: T): T & {
|
|
105
|
+
forget(): void;
|
|
106
|
+
};
|
|
107
|
+
/** Which byte of its channel a connection's player is on, `seconds` into what it was sent; null when unknown. */
|
|
108
|
+
export declare function heardByte(key: string, seconds: number, kbps: number): number | null;
|
|
101
109
|
export declare function publicView(ctx: StationContext, station: Station): PublicStation;
|
|
102
110
|
/** Where the guide puts a station: composed by AI, shared by listeners, or the owner's radio or TV. */
|
|
103
111
|
export type GuideGroup = "ai" | "shared" | "radio" | "tv";
|
package/dist/station-routes.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { chunkStart } from "./channels.js";
|
|
1
2
|
import { alertsFor } from "./station-metering.js";
|
|
2
3
|
import { aiFromTags } from "./track-facts.js";
|
|
3
4
|
import { quietDuringBreaks } from "./break-silence.js";
|
|
@@ -6,7 +7,7 @@ import { watchBase } from "./guide-rooms.js";
|
|
|
6
7
|
import { radioPeers, radioStations } from "./radio-pages.js";
|
|
7
8
|
import { StationError, channelOf, tokensMatch, } from "./stations.js";
|
|
8
9
|
/** The three things a station's link opens. */
|
|
9
|
-
const LISTEN = /^\/api\/v1\/stations\/([a-z0-9]{10})\/(stream|state|listen\.m3u|events|now|art|lyrics)$/;
|
|
10
|
+
const LISTEN = /^\/api\/v1\/stations\/([a-z0-9]{10})\/(stream|state|listen\.m3u|events|now|art|lyrics|clock)$/;
|
|
10
11
|
/** Whether this path is one a station's own link may open, without the server's key. */
|
|
11
12
|
export function isStationListenPath(path) {
|
|
12
13
|
return LISTEN.test(path) || path === "/api/v1/stations/guide";
|
|
@@ -28,6 +29,41 @@ function links(ctx, station, base = ctx.base) {
|
|
|
28
29
|
state: `${at}/state?${query}`,
|
|
29
30
|
};
|
|
30
31
|
}
|
|
32
|
+
const clocks = new Map();
|
|
33
|
+
const MAX_CLOCKS = 5000;
|
|
34
|
+
const MAX_RUNS = 500;
|
|
35
|
+
/** Records a connection's bytes onto its channel's, through the listener it writes to. */
|
|
36
|
+
export function clockedListener(key, out) {
|
|
37
|
+
const clock = { runs: [], local: 0, next: -1 };
|
|
38
|
+
if (clocks.size >= MAX_CLOCKS)
|
|
39
|
+
clocks.delete(clocks.keys().next().value);
|
|
40
|
+
clocks.set(key, clock);
|
|
41
|
+
return Object.assign(Object.create(out), {
|
|
42
|
+
write: (chunk) => {
|
|
43
|
+
const at = chunkStart(chunk);
|
|
44
|
+
// Silence written in a break's place carries no start: it stands for the break's bytes.
|
|
45
|
+
if (at !== undefined && at !== clock.next) {
|
|
46
|
+
clock.runs.push({ local: clock.local, global: at });
|
|
47
|
+
if (clock.runs.length > MAX_RUNS)
|
|
48
|
+
clock.runs.shift();
|
|
49
|
+
}
|
|
50
|
+
clock.local += chunk.length;
|
|
51
|
+
clock.next = (at ?? clock.next) + chunk.length;
|
|
52
|
+
return out.write(chunk);
|
|
53
|
+
},
|
|
54
|
+
forget: () => { if (clocks.get(key) === clock)
|
|
55
|
+
clocks.delete(key); },
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
/** Which byte of its channel a connection's player is on, `seconds` into what it was sent; null when unknown. */
|
|
59
|
+
export function heardByte(key, seconds, kbps) {
|
|
60
|
+
const clock = clocks.get(key);
|
|
61
|
+
if (!clock || !(seconds >= 0) || kbps <= 0)
|
|
62
|
+
return null;
|
|
63
|
+
const local = Math.min(clock.local, (seconds * kbps * 1000) / 8);
|
|
64
|
+
const run = clock.runs.findLast((one) => one.local <= local);
|
|
65
|
+
return run ? run.global + (local - run.local) : null;
|
|
66
|
+
}
|
|
31
67
|
/** The file on the air now, as the channel's own encoder last reported it. */
|
|
32
68
|
function nowPlayingFile(ctx, station) {
|
|
33
69
|
const info = ctx.channels.info(channelOf(station.id));
|
|
@@ -247,6 +283,26 @@ export async function handleStations(request, response, path, url, ctx) {
|
|
|
247
283
|
ctx.json(response, 200, { lyrics: { title: lyrics.title, artist: lyrics.artist, text: lyrics.text, source: lyrics.source, language: lyrics.language, ...(lyrics.synced ? { synced: lyrics.synced } : {}) } });
|
|
248
284
|
return true;
|
|
249
285
|
}
|
|
286
|
+
if (what === "clock") {
|
|
287
|
+
// ?n= the stream's nonce, ?ct= the player's currentTime: the song and second being heard.
|
|
288
|
+
const key = `${station.id}:${url.searchParams.get("n") ?? ""}`;
|
|
289
|
+
const byte = heardByte(key, Number(url.searchParams.get("ct")), station.bitrate);
|
|
290
|
+
const place = byte === null ? null : ctx.channels.placeAt(channelOf(station.id), byte);
|
|
291
|
+
if (!place) {
|
|
292
|
+
ctx.json(response, 404, { error: "no clock for that stream", code: "not_found" });
|
|
293
|
+
return true;
|
|
294
|
+
}
|
|
295
|
+
const track = place.file ? (place.tags ?? ctx.trackFor(place.file)) : null;
|
|
296
|
+
const duration = place.file && ctx.durationOf ? ctx.durationOf(place.file) : 0;
|
|
297
|
+
ctx.json(response, 200, {
|
|
298
|
+
station: station.id,
|
|
299
|
+
break: place.file === "",
|
|
300
|
+
position: Math.round(place.position * 1000) / 1000,
|
|
301
|
+
duration: Math.round(duration * 10) / 10,
|
|
302
|
+
nowPlaying: track && (track.title || track.artist) ? { title: track.title, artist: track.artist, album: track.album } : null,
|
|
303
|
+
});
|
|
304
|
+
return true;
|
|
305
|
+
}
|
|
250
306
|
if (what === "now") {
|
|
251
307
|
const file = ctx.runner.observed(station.id) === "live" || ctx.runner.observed(station.id) === "recovering" ? nowPlayingFile(ctx, station) : "";
|
|
252
308
|
ctx.json(response, 200, { station: station.id, facts: file && ctx.facts ? await ctx.facts(station, file).catch(() => null) : null });
|
|
@@ -315,9 +371,12 @@ export async function handleStations(request, response, path, url, ctx) {
|
|
|
315
371
|
pending: () => response.writableLength,
|
|
316
372
|
}
|
|
317
373
|
: response;
|
|
374
|
+
const nonce = /^[A-Za-z0-9_-]{1,40}$/.test(url.searchParams.get("n") ?? "") ? url.searchParams.get("n") : "";
|
|
375
|
+
const clocked = nonce && !station.video ? clockedListener(`${station.id}:${nonce}`, metered) : null;
|
|
376
|
+
const out = clocked ?? metered;
|
|
318
377
|
const detach = spared
|
|
319
|
-
? ctx.channels.listenWithoutBreaks(channelId,
|
|
320
|
-
: ctx.channels.listen(channelId,
|
|
378
|
+
? ctx.channels.listenWithoutBreaks(channelId, out, station.bitrate, (quiet) => quietDuringBreaks(quiet, station.bitrate, () => true))
|
|
379
|
+
: ctx.channels.listen(channelId, out);
|
|
321
380
|
if (detach === null) {
|
|
322
381
|
response.end();
|
|
323
382
|
return true;
|
|
@@ -332,6 +391,7 @@ export async function handleStations(request, response, path, url, ctx) {
|
|
|
332
391
|
detach();
|
|
333
392
|
untrack();
|
|
334
393
|
left?.();
|
|
394
|
+
clocked?.forget();
|
|
335
395
|
};
|
|
336
396
|
request.on("close", leave);
|
|
337
397
|
response.on("close", leave);
|
package/package.json
CHANGED
package/src/channels.ts
CHANGED
|
@@ -282,6 +282,21 @@ export interface ChannelOptions {
|
|
|
282
282
|
through?: ThroughProvider;
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
+
/**
|
|
286
|
+
* Where each chunk a channel put out begins in its byte count (ChannelInfo.bytes),
|
|
287
|
+
* so a listener's own bytes can be laid onto the channel's: a backlog, a
|
|
288
|
+
* skipped break and a redial all keep the chunk objects they were sent as.
|
|
289
|
+
*/
|
|
290
|
+
const chunkStarts = new WeakMap<Buffer, number>();
|
|
291
|
+
|
|
292
|
+
/** The byte count a chunk began at, for one a list channel put out; undefined for any other. */
|
|
293
|
+
export function chunkStart(chunk: Buffer): number | undefined {
|
|
294
|
+
return chunkStarts.get(chunk);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/** A list's dial: where in the byte count it began, and its list's clock. */
|
|
298
|
+
interface Dial { base: number; input: PlaylistInputStream; kbps: number }
|
|
299
|
+
|
|
285
300
|
/**
|
|
286
301
|
* One live source, and its audience.
|
|
287
302
|
*
|
|
@@ -338,6 +353,20 @@ export class Channel {
|
|
|
338
353
|
return this.info.bytes > 0 && (!this.fragments || this.fragments.ready);
|
|
339
354
|
}
|
|
340
355
|
|
|
356
|
+
/**
|
|
357
|
+
* What was going out at this point of the byte count: the list's file (""
|
|
358
|
+
* in a break) and how far into it, with its tags. Null for a byte this
|
|
359
|
+
* channel no longer knows, or for a channel that is not a radio list.
|
|
360
|
+
*/
|
|
361
|
+
placeAt(bytes: number): { file: string; position: number; tags?: { title: string; artist: string; album: string } } | null {
|
|
362
|
+
const dial = this.dials.findLast((one) => one.base <= bytes);
|
|
363
|
+
if (!dial) return null;
|
|
364
|
+
const place = dial.input.place(((bytes - dial.base) * 8) / (dial.kbps * 1000));
|
|
365
|
+
const file = place.at >= 0 ? place.list[place.at] ?? "" : "";
|
|
366
|
+
const tags = file ? dial.input.tags.get(file) : undefined;
|
|
367
|
+
return { file, position: place.position, ...(tags ? { tags } : {}) };
|
|
368
|
+
}
|
|
369
|
+
|
|
341
370
|
/** An entry's tags, as read when it was put on. */
|
|
342
371
|
tagsOf(file: string): { title: string; artist: string; album: string } | undefined {
|
|
343
372
|
return this.playlistInput?.tags.get(file);
|
|
@@ -369,6 +398,8 @@ export class Channel {
|
|
|
369
398
|
private breakOn = false;
|
|
370
399
|
/** The last couple of minutes of a radio list without its breaks, for listenWithoutBreaks. */
|
|
371
400
|
private music: Buffer[] = [];
|
|
401
|
+
/** The last few dials of a radio list, newest last, for placeAt(). */
|
|
402
|
+
private dials: Dial[] = [];
|
|
372
403
|
private musicBytes = 0;
|
|
373
404
|
private fragmentClock = new FragmentClock();
|
|
374
405
|
private fragmentTimes = new WeakMap<Buffer, number>();
|
|
@@ -622,9 +653,16 @@ export class Channel {
|
|
|
622
653
|
if (this.child !== child) return;
|
|
623
654
|
if (!sent) this.info.error = undefined;
|
|
624
655
|
sent = true;
|
|
656
|
+
const at = this.info.bytes;
|
|
625
657
|
this.info.bytes += chunk.byteLength;
|
|
626
658
|
this.rearm(child);
|
|
627
659
|
if (kbps > 0 && playlistInput) {
|
|
660
|
+
// Constant-bitrate MP3: a byte of this dial is exactly a time on its list's clock.
|
|
661
|
+
if (written === 0) {
|
|
662
|
+
this.dials.push({ base: at, input: playlistInput, kbps });
|
|
663
|
+
if (this.dials.length > 8) this.dials.shift();
|
|
664
|
+
}
|
|
665
|
+
chunkStarts.set(chunk, at);
|
|
628
666
|
this.breakOn = playlistInput.place((written * 8) / (kbps * 1000)).at === -1;
|
|
629
667
|
written += chunk.byteLength;
|
|
630
668
|
} else this.breakOn = this.info.playlistAt === -1;
|
|
@@ -1460,6 +1498,11 @@ export class Channels {
|
|
|
1460
1498
|
return this.open.get(id)?.info.kind;
|
|
1461
1499
|
}
|
|
1462
1500
|
|
|
1501
|
+
/** What a radio list channel was putting out at a point of its byte count (Channel.placeAt). */
|
|
1502
|
+
placeAt(id: string, bytes: number): ReturnType<Channel["placeAt"]> {
|
|
1503
|
+
return this.open.get(id)?.placeAt(bytes) ?? null;
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1463
1506
|
/** An entry's tags on a channel playing a list of files. */
|
|
1464
1507
|
tagsOf(id: string, file: string): { title: string; artist: string; album: string } | undefined {
|
|
1465
1508
|
return this.open.get(id)?.tagsOf(file);
|
package/src/radio-pages.ts
CHANGED
|
@@ -24,7 +24,7 @@ import type { Station } from "./stations.ts";
|
|
|
24
24
|
import { albumSlug, artistSlug, stationSlug } from "./radio-slug.ts";
|
|
25
25
|
|
|
26
26
|
/** A station's own paths, as the station link opens them. */
|
|
27
|
-
export const RADIO_SUB = /^\/radio\/([a-z0-9-]{1,60})\/(stream|state|listen\.m3u|events|now|art|lyrics)$/;
|
|
27
|
+
export const RADIO_SUB = /^\/radio\/([a-z0-9-]{1,60})\/(stream|state|listen\.m3u|events|now|art|lyrics|clock)$/;
|
|
28
28
|
export const RADIO_STATION = /^\/radio\/([a-z0-9-]{1,60})\/?$/;
|
|
29
29
|
export const RADIO_ARTIST = /^\/radio\/artist\/([a-z0-9-]{1,90})\/?$/;
|
|
30
30
|
export const RADIO_ALBUM = /^\/radio\/album\/([a-z0-9-]{1,100})(\/cover\.jpg)?\/?$/;
|
package/src/station-routes.ts
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* reading English.
|
|
14
14
|
*/
|
|
15
15
|
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
16
|
-
import type
|
|
16
|
+
import { chunkStart, type Channels } from "./channels.ts";
|
|
17
17
|
import type { StationRunner } from "./station-runner.ts";
|
|
18
18
|
import { alertsFor, type Limits, type StationUsage } from "./station-metering.ts";
|
|
19
19
|
import { aiFromTags, type TrackFacts } from "./track-facts.ts";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from "./stations.ts";
|
|
29
29
|
|
|
30
30
|
/** The three things a station's link opens. */
|
|
31
|
-
const LISTEN = /^\/api\/v1\/stations\/([a-z0-9]{10})\/(stream|state|listen\.m3u|events|now|art|lyrics)$/;
|
|
31
|
+
const LISTEN = /^\/api\/v1\/stations\/([a-z0-9]{10})\/(stream|state|listen\.m3u|events|now|art|lyrics|clock)$/;
|
|
32
32
|
|
|
33
33
|
/** Whether this path is one a station's own link may open, without the server's key. */
|
|
34
34
|
export function isStationListenPath(path: string): boolean {
|
|
@@ -105,6 +105,47 @@ function links(ctx: StationContext, station: Station, base = ctx.base): { page:
|
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
+
/**
|
|
109
|
+
* A listener's clock: where each run of the bytes one connection was sent
|
|
110
|
+
* sits in its channel's byte count. The page asks with its player's
|
|
111
|
+
* currentTime and is told the song and the second it is hearing, exactly,
|
|
112
|
+
* whatever the player has buffered. Keyed by the stream's ?n=.
|
|
113
|
+
*/
|
|
114
|
+
interface ListenerClock { runs: Array<{ local: number; global: number }>; local: number; next: number }
|
|
115
|
+
const clocks = new Map<string, ListenerClock>();
|
|
116
|
+
const MAX_CLOCKS = 5000;
|
|
117
|
+
const MAX_RUNS = 500;
|
|
118
|
+
|
|
119
|
+
/** Records a connection's bytes onto its channel's, through the listener it writes to. */
|
|
120
|
+
export function clockedListener<T extends { write(chunk: Buffer): boolean }>(key: string, out: T): T & { forget(): void } {
|
|
121
|
+
const clock: ListenerClock = { runs: [], local: 0, next: -1 };
|
|
122
|
+
if (clocks.size >= MAX_CLOCKS) clocks.delete(clocks.keys().next().value!);
|
|
123
|
+
clocks.set(key, clock);
|
|
124
|
+
return Object.assign(Object.create(out) as T, {
|
|
125
|
+
write: (chunk: Buffer): boolean => {
|
|
126
|
+
const at = chunkStart(chunk);
|
|
127
|
+
// Silence written in a break's place carries no start: it stands for the break's bytes.
|
|
128
|
+
if (at !== undefined && at !== clock.next) {
|
|
129
|
+
clock.runs.push({ local: clock.local, global: at });
|
|
130
|
+
if (clock.runs.length > MAX_RUNS) clock.runs.shift();
|
|
131
|
+
}
|
|
132
|
+
clock.local += chunk.length;
|
|
133
|
+
clock.next = (at ?? clock.next) + chunk.length;
|
|
134
|
+
return out.write(chunk);
|
|
135
|
+
},
|
|
136
|
+
forget: (): void => { if (clocks.get(key) === clock) clocks.delete(key); },
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/** Which byte of its channel a connection's player is on, `seconds` into what it was sent; null when unknown. */
|
|
141
|
+
export function heardByte(key: string, seconds: number, kbps: number): number | null {
|
|
142
|
+
const clock = clocks.get(key);
|
|
143
|
+
if (!clock || !(seconds >= 0) || kbps <= 0) return null;
|
|
144
|
+
const local = Math.min(clock.local, (seconds * kbps * 1000) / 8);
|
|
145
|
+
const run = clock.runs.findLast((one) => one.local <= local);
|
|
146
|
+
return run ? run.global + (local - run.local) : null;
|
|
147
|
+
}
|
|
148
|
+
|
|
108
149
|
/** The file on the air now, as the channel's own encoder last reported it. */
|
|
109
150
|
function nowPlayingFile(ctx: StationContext, station: Station): string {
|
|
110
151
|
const info = ctx.channels.info(channelOf(station.id));
|
|
@@ -331,6 +372,26 @@ export async function handleStations(
|
|
|
331
372
|
ctx.json(response, 200, { lyrics: { title: lyrics.title, artist: lyrics.artist, text: lyrics.text, source: lyrics.source, language: lyrics.language, ...(lyrics.synced ? { synced: lyrics.synced } : {}) } });
|
|
332
373
|
return true;
|
|
333
374
|
}
|
|
375
|
+
if (what === "clock") {
|
|
376
|
+
// ?n= the stream's nonce, ?ct= the player's currentTime: the song and second being heard.
|
|
377
|
+
const key = `${station.id}:${url.searchParams.get("n") ?? ""}`;
|
|
378
|
+
const byte = heardByte(key, Number(url.searchParams.get("ct")), station.bitrate);
|
|
379
|
+
const place = byte === null ? null : ctx.channels.placeAt(channelOf(station.id), byte);
|
|
380
|
+
if (!place) {
|
|
381
|
+
ctx.json(response, 404, { error: "no clock for that stream", code: "not_found" });
|
|
382
|
+
return true;
|
|
383
|
+
}
|
|
384
|
+
const track = place.file ? (place.tags ?? ctx.trackFor(place.file)) : null;
|
|
385
|
+
const duration = place.file && ctx.durationOf ? ctx.durationOf(place.file) : 0;
|
|
386
|
+
ctx.json(response, 200, {
|
|
387
|
+
station: station.id,
|
|
388
|
+
break: place.file === "",
|
|
389
|
+
position: Math.round(place.position * 1000) / 1000,
|
|
390
|
+
duration: Math.round(duration * 10) / 10,
|
|
391
|
+
nowPlaying: track && (track.title || track.artist) ? { title: track.title, artist: track.artist, album: track.album } : null,
|
|
392
|
+
});
|
|
393
|
+
return true;
|
|
394
|
+
}
|
|
334
395
|
if (what === "now") {
|
|
335
396
|
const file = ctx.runner.observed(station.id) === "live" || ctx.runner.observed(station.id) === "recovering" ? nowPlayingFile(ctx, station) : "";
|
|
336
397
|
ctx.json(response, 200, { station: station.id, facts: file && ctx.facts ? await ctx.facts(station, file).catch(() => null) : null });
|
|
@@ -398,9 +459,12 @@ export async function handleStations(
|
|
|
398
459
|
pending: (): number => response.writableLength,
|
|
399
460
|
}
|
|
400
461
|
: response;
|
|
462
|
+
const nonce = /^[A-Za-z0-9_-]{1,40}$/.test(url.searchParams.get("n") ?? "") ? url.searchParams.get("n")! : "";
|
|
463
|
+
const clocked = nonce && !station.video ? clockedListener(`${station.id}:${nonce}`, metered) : null;
|
|
464
|
+
const out = clocked ?? metered;
|
|
401
465
|
const detach = spared
|
|
402
|
-
? ctx.channels.listenWithoutBreaks(channelId,
|
|
403
|
-
: ctx.channels.listen(channelId,
|
|
466
|
+
? ctx.channels.listenWithoutBreaks(channelId, out, station.bitrate, (quiet) => quietDuringBreaks(quiet, station.bitrate, () => true))
|
|
467
|
+
: ctx.channels.listen(channelId, out);
|
|
404
468
|
if (detach === null) {
|
|
405
469
|
response.end();
|
|
406
470
|
return true;
|
|
@@ -414,6 +478,7 @@ export async function handleStations(
|
|
|
414
478
|
detach();
|
|
415
479
|
untrack();
|
|
416
480
|
left?.();
|
|
481
|
+
clocked?.forget();
|
|
417
482
|
};
|
|
418
483
|
request.on("close", leave);
|
|
419
484
|
response.on("close", leave);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./main-
|
|
1
|
+
import{t as e}from"./main-cry6C8KD.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-cry6C8KD.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-cry6C8KD.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-cry6C8KD.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};
|