@banou/media-player 0.10.34 → 0.10.36

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.
@@ -22,10 +22,44 @@ export declare const languageTag: (text: string | undefined) => string | undefin
22
22
  * the first.
23
23
  */
24
24
  export declare const preferredTrack: (preference: string, tracks: readonly LanguageTrack[]) => number;
25
+ /** The viewer's preferences, as `startingTracks` reads them. Each may be left out. */
26
+ export type TrackPreferences = {
27
+ /**
28
+ * The audio language, as `preferredTrack` reads it. A media without a full track in it, or with none given, plays its
29
+ * original: a commentary or described audio in it is no dub.
30
+ */
31
+ audio?: string;
32
+ /**
33
+ * The language the media was made in, as its source knows it (`ja` for anime): its full track is the original.
34
+ * Without it, or in a file with no track in it, the original is the file's default.
35
+ */
36
+ original?: string;
37
+ /** The subtitle language, as `preferredTrack` reads it, or null for none. A media without it shows its default. */
38
+ subtitles?: string | null;
39
+ /** False starts subtitles off when the audio plays in their language. True when left out. */
40
+ alwaysSubtitles?: boolean;
41
+ };
42
+ /** Whether `track` plays in the language `language` names, as a tag or a name, read by the track's tag, else its title. */
43
+ export declare const playsIn: (track: LanguageTrack | undefined, language: string) => boolean;
44
+ /**
45
+ * The tracks a media starts on, by index: the full audio in `preferences.audio`, else the original, else -1 for the
46
+ * file's default, its first track; and the subtitles in `preferences.subtitles`, else -1 for the file's default, or null
47
+ * for none, when they are off or when `alwaysSubtitles` is false and the audio plays in their language.
48
+ */
49
+ export declare const startingTracks: (audio: readonly LanguageTrack[], subtitles: readonly LanguageTrack[], { audio: audioLanguage, original, subtitles: subtitleLanguage, alwaysSubtitles }: TrackPreferences) => {
50
+ audio: number;
51
+ subtitles: number | null;
52
+ };
53
+ type Selection = Omit<DelegatedSelection, 'select'>;
25
54
  /**
26
- * For a media the player does not own, whose host applies the viewer's preference itself: the option of `selection`
27
- * to select for `preference` (as `onPreferredAudioLanguageChange` or `onPreferredSubtitleLanguageChange` reported
28
- * it), null for the row that turns the feature off, or undefined to leave the selection as it is: no preference,
29
- * nothing in that language, or already selected. Options are matched by their labels; disabled ones are skipped.
55
+ * For a media the player does not own, whose host applies the viewer's preferences itself: the option of
56
+ * `selections[kind]` to select as `startingTracks` starts it, null for the row that turns subtitles off, or undefined
57
+ * to leave the selection as it is: the source's own default, or already selected. The audio selected stands for the
58
+ * default, and the subtitles are chosen for it, so a host switching both asks for the subtitles once the audio has
59
+ * switched. Options are matched by their labels; disabled ones are skipped.
30
60
  */
31
- export declare const preferredSelection: (selection: Omit<DelegatedSelection, 'select'>, preference: string | null | undefined) => string | null | undefined;
61
+ export declare const preferredSelection: (kind: 'audio' | 'subtitles', selections: {
62
+ audio?: Selection;
63
+ subtitles?: Selection;
64
+ }, preferences: TrackPreferences) => string | null | undefined;
65
+ export {};
@@ -46,37 +46,72 @@ var e = "aa ab ae af ak am an ar as av ay az ba be bg bi bm bn bo br bs ca ce ch
46
46
  for (let e of t) for (let t of [...r, e]) for (let n of ["dialect", "standard"]) i(e, t, n);
47
47
  for (let t of e) for (let e of [...r, t]) i(t, e, "dialect");
48
48
  return l = n;
49
- }, d = (e) => {
49
+ }, d, f = () => {
50
+ if (d) return d;
51
+ let e = /* @__PURE__ */ new Map(), n = [
52
+ "en",
53
+ globalThis.navigator?.language,
54
+ ...t
55
+ ].filter((e) => !!e);
56
+ for (let r of new Set(t.map((e) => new Intl.Locale(e).region).filter((e) => !!e))) for (let t of n) try {
57
+ let n = new Intl.DisplayNames([t], {
58
+ type: "region",
59
+ fallback: "none"
60
+ }).of(r);
61
+ n && e.set(o(n), r);
62
+ } catch {}
63
+ return d = e;
64
+ }, p = (e) => {
50
65
  let t = e?.trim();
51
66
  if (!t) return;
52
67
  let n = u(), r = n.get(o(t));
53
68
  if (r) return c(r);
54
69
  let [, i, s] = /^([^([]+)(?:\(([^)]*)\))?/.exec(t.normalize("NFKC")) ?? [], l = i ? n.get(o(i)) : void 0;
55
70
  if (!l) return;
56
- let d = s?.trim();
57
- return (d && /^(?:[A-Z]{2}|\d{3})$/.test(d) && !a.has(d) ? c(`${l}-${d}`) : void 0) ?? c(l);
58
- }, f = (e) => {
71
+ let d = s?.trim(), p = !d || a.has(d) ? void 0 : /^(?:[A-Z]{2}|\d{3})$/.test(d) ? d : f().get(o(d));
72
+ return (p ? c(`${l}-${p}`) : void 0) ?? c(l);
73
+ }, m = (e) => {
59
74
  let t = e?.trim();
60
- return t ? c(t) ?? d(t) : void 0;
61
- }, p = (e) => f(e?.language) ? e.language.trim() : d(e?.title) ? e.title.trim() : void 0, m = (e) => {
62
- let t = f(e);
75
+ return t ? c(t) ?? p(t) : void 0;
76
+ }, h = (e) => m(e?.language) ? e.language.trim() : p(e?.title) ? e.title.trim() : void 0, g = (e) => {
77
+ let t = m(e);
63
78
  return t && (t.variant ? `${t.language}-${t.variant}` : t.language);
64
- }, h = ({ language: e = "", title: t = "" }) => {
79
+ }, _ = ({ language: e = "", title: t = "" }) => {
65
80
  let n = `${e} ${t}`;
66
81
  return r.test(n) && !i.test(n);
67
- }, g = (e, t) => {
68
- let n = f(e), r = -1, i = 0;
82
+ }, v = ({ language: e, title: t }) => {
83
+ let n = m(e), r = p(t);
84
+ return n && !n.variant && r?.variant && r.language === n.language ? r : n ?? r;
85
+ }, y = (e, t) => {
86
+ let n = m(e), r = -1, i = 0;
69
87
  return n && t.forEach((t, a) => {
70
- let s = f(t.language) ?? d(t.title);
88
+ let s = v(t);
71
89
  if (s?.language !== n.language) return;
72
- let c = p(t), l = 1 + +(s.variant === n.variant) + (c && o(c) === o(e) ? 2 : 0) + (h(t) ? 0 : 4);
90
+ let c = h(t), l = 1 + +(s.variant === n.variant) + (c && o(c) === o(e) ? 2 : 0) + (_(t) ? 0 : 4);
73
91
  l > i && (r = a, i = l);
74
92
  }), r === -1 ? t.findIndex(({ title: t }) => !!t?.trim() && o(t) === o(e)) : r;
75
- }, _ = (e, t) => {
76
- if (t === void 0) return;
77
- if (t === null) return e.offLabel && e.selectedId !== null ? null : void 0;
78
- let n = e.options.filter((e) => !e.disabled), r = n[g(t, n.map(({ label: e }) => ({ title: e })))]?.id;
79
- return r !== void 0 && r !== e.selectedId ? r : void 0;
93
+ }, b = (e, t) => {
94
+ let n = e && (m(e.language) ?? p(e.title));
95
+ return !!n && m(t)?.language === n.language;
96
+ }, x = (e, t, { audio: n, original: r, subtitles: i, alwaysSubtitles: a = !0 }) => {
97
+ let o = n === void 0 ? -1 : y(n, e), s = o !== -1 && !_(e[o]) ? o : -1, c = s !== -1 || r === void 0 ? s : y(r, e);
98
+ return i === null ? {
99
+ audio: c,
100
+ subtitles: null
101
+ } : i === void 0 ? {
102
+ audio: c,
103
+ subtitles: -1
104
+ } : {
105
+ audio: c,
106
+ subtitles: !a && b(e[Math.max(c, 0)], i) ? null : y(i, t)
107
+ };
108
+ }, S = (e, t, n) => {
109
+ let r = t[e];
110
+ if (!r) return;
111
+ let i = r.options.filter((e) => !e.disabled), a = i.map(({ label: e }) => ({ title: e })), o = t.audio?.options.find(({ id: e }) => e === t.audio.selectedId), s = e === "audio" ? x(a, [], n).audio : x(o ? [{ title: o.label }] : [], a, n).subtitles;
112
+ if (s === null) return r.offLabel && r.selectedId !== null ? null : void 0;
113
+ let c = i[s]?.id;
114
+ return c !== void 0 && c !== r.selectedId ? c : void 0;
80
115
  };
81
116
  //#endregion
82
- export { p as languageOf, m as languageTag, _ as preferredSelection, g as preferredTrack };
117
+ export { h as languageOf, g as languageTag, b as playsIn, S as preferredSelection, y as preferredTrack, x as startingTracks };
@@ -0,0 +1,52 @@
1
+ //#region src/lib/locales/ms.json
2
+ var e = "Audio", t = "Disalin", n = "Salin", r = "Mati", i = "Redam", a = "Jeda", o = "Main", s = "Kualiti", c = "Main semula", l = "Tetapan", u = "Sari kata", d = "Tidak tersedia", f = "dipulihkan", p = {
3
+ "(Default)": "(Biasa)",
4
+ Audio: e,
5
+ Copied: t,
6
+ Copy: n,
7
+ "Copy the errors": "Salin ralat",
8
+ "Could not switch. Try again.": "Tidak dapat bertukar. Cuba lagi.",
9
+ Disable: r,
10
+ "Exit full screen (f)": "Keluar skrin penuh (f)",
11
+ "Exit picture in picture": "Keluar gambar dalam gambar",
12
+ "Full screen": "Skrin penuh",
13
+ "Full screen (f)": "Skrin penuh (f)",
14
+ Mute: i,
15
+ "Mute (m)": "Redam (m)",
16
+ "Normalize volume": "Seimbangkan kelantangan",
17
+ "Now click your browser's pop out button": "Sekarang klik butang gambar dalam gambar pada pelayar anda",
18
+ Pause: a,
19
+ "Pause (k)": "Jeda (k)",
20
+ "Picture in picture": "Gambar dalam gambar",
21
+ Play: o,
22
+ "Play (k)": "Main (k)",
23
+ "Playback errors ({count})": "Ralat main balik ({count})",
24
+ "Playback failed": "Main balik gagal",
25
+ "Playback speed": "Kelajuan main balik",
26
+ "Put the subtitles in the picture": "Benamkan sari kata dalam gambar",
27
+ "Put the subtitles in the video": "Benamkan sari kata dalam video",
28
+ Quality: s,
29
+ "Reading the video file failed": "Fail video tidak dapat dibaca",
30
+ Replay: c,
31
+ "Replay (k)": "Main semula (k)",
32
+ Settings: l,
33
+ "Skip Ending": "Langkau penutup",
34
+ "Skip Opening": "Langkau intro",
35
+ Subtitles: u,
36
+ "Subtitles are in the picture": "Sari kata sudah ada dalam gambar",
37
+ "The MediaSource closed before a SourceBuffer could be created": "MediaSource ditutup sebelum SourceBuffer dapat dibuat",
38
+ "The MediaSource never opened": "MediaSource tidak pernah dibuka",
39
+ "The browser rejected a media segment": "Pelayar menolak satu segmen media",
40
+ "The video codec in this file could not be identified": "Codec video dalam fail ini tidak dapat dikenal pasti",
41
+ "This browser cannot play the codecs in this file: {codecs}": "Pelayar ini tidak dapat memainkan codec dalam fail ini: {codecs}",
42
+ "This file has no subtitles": "Fail ini tiada sari kata",
43
+ "Track {number}": "Trek {number}",
44
+ Unavailable: d,
45
+ "Unmute (m)": "Nyahredam (m)",
46
+ "at {time}": "pada {time}",
47
+ recovered: f,
48
+ "{rate}x": "{rate}x",
49
+ "{start} to {end}": "{start} hingga {end}"
50
+ };
51
+ //#endregion
52
+ export { e as Audio, t as Copied, n as Copy, r as Disable, i as Mute, a as Pause, o as Play, s as Quality, c as Replay, l as Settings, u as Subtitles, d as Unavailable, p as default, f as recovered };
@@ -0,0 +1,52 @@
1
+ //#region src/lib/locales/nl.json
2
+ var e = "Audio", t = "Gekopieerd", n = "Kopiëren", r = "Uit", i = "Dempen", a = "Pauzeren", o = "Afspelen", s = "Kwaliteit", c = "Opnieuw afspelen", l = "Instellingen", u = "Ondertitels", d = "Niet beschikbaar", f = "hersteld", p = {
3
+ "(Default)": "(Normaal)",
4
+ Audio: e,
5
+ Copied: t,
6
+ Copy: n,
7
+ "Copy the errors": "Fouten kopiëren",
8
+ "Could not switch. Try again.": "Wisselen is mislukt. Probeer het opnieuw.",
9
+ Disable: "Uit",
10
+ "Exit full screen (f)": "Volledig scherm sluiten (f)",
11
+ "Exit picture in picture": "Beeld-in-beeld sluiten",
12
+ "Full screen": "Volledig scherm",
13
+ "Full screen (f)": "Volledig scherm (f)",
14
+ Mute: i,
15
+ "Mute (m)": "Dempen (m)",
16
+ "Normalize volume": "Volume gelijktrekken",
17
+ "Now click your browser's pop out button": "Klik nu op de beeld-in-beeldknop van je browser",
18
+ Pause: a,
19
+ "Pause (k)": "Pauzeren (k)",
20
+ "Picture in picture": "Beeld-in-beeld",
21
+ Play: o,
22
+ "Play (k)": "Afspelen (k)",
23
+ "Playback errors ({count})": "Afspeelfouten ({count})",
24
+ "Playback failed": "Afspelen mislukt",
25
+ "Playback speed": "Afspeelsnelheid",
26
+ "Put the subtitles in the picture": "Ondertitels in het beeld branden",
27
+ "Put the subtitles in the video": "Ondertitels in de video branden",
28
+ Quality: s,
29
+ "Reading the video file failed": "Het videobestand kon niet worden gelezen",
30
+ Replay: c,
31
+ "Replay (k)": "Opnieuw afspelen (k)",
32
+ Settings: l,
33
+ "Skip Ending": "Aftiteling overslaan",
34
+ "Skip Opening": "Intro overslaan",
35
+ Subtitles: u,
36
+ "Subtitles are in the picture": "De ondertitels staan in het beeld",
37
+ "The MediaSource closed before a SourceBuffer could be created": "De MediaSource sloot voordat er een SourceBuffer kon worden gemaakt",
38
+ "The MediaSource never opened": "De MediaSource is nooit geopend",
39
+ "The browser rejected a media segment": "De browser heeft een mediasegment geweigerd",
40
+ "The video codec in this file could not be identified": "De videocodec van dit bestand kon niet worden herkend",
41
+ "This browser cannot play the codecs in this file: {codecs}": "Deze browser kan de codecs van dit bestand niet afspelen: {codecs}",
42
+ "This file has no subtitles": "Dit bestand heeft geen ondertitels",
43
+ "Track {number}": "Track {number}",
44
+ Unavailable: d,
45
+ "Unmute (m)": "Dempen opheffen (m)",
46
+ "at {time}": "bij {time}",
47
+ recovered: f,
48
+ "{rate}x": "{rate}x",
49
+ "{start} to {end}": "{start} tot {end}"
50
+ };
51
+ //#endregion
52
+ export { e as Audio, t as Copied, n as Copy, r as Disable, i as Mute, a as Pause, o as Play, s as Quality, c as Replay, l as Settings, u as Subtitles, d as Unavailable, p as default, f as recovered };
@@ -147,6 +147,11 @@ type CommonOptions = {
147
147
  * with them on too.
148
148
  */
149
149
  onPreferredSubtitleLanguageChange?: (language: string | null) => void;
150
+ /**
151
+ * True when the viewer picked subtitles in the language the audio plays in: what an app saves to pass back as
152
+ * `alwaysShowSubtitles`, so the next media in it starts with them on too.
153
+ */
154
+ onAlwaysShowSubtitlesChange?: (always: boolean) => void;
150
155
  };
151
156
  /**
152
157
  * Bytes in: the player owns the `<video>`, and libav feeds it a fragment at a time.
@@ -224,8 +229,8 @@ export type MediaPlayerLocalOptions = CommonOptions & MediaPlayerSource & {
224
229
  onNormalizeVolumeChange?: (normalizeVolume: boolean) => void;
225
230
  /**
226
231
  * The language a file starts its audio in, as `onPreferredAudioLanguageChange` reported it or as any tag or name
227
- * (`ja`, `jpn`, `Japanese`). Its full track wins over a commentary, and a file with none plays its default. A
228
- * track the viewer picks wins for that file. Read when a file starts, so a change applies from the next one.
232
+ * (`ja`, `jpn`, `Japanese`). Only a full track counts, never a commentary or an audio description, and a file with
233
+ * none plays its original. A track the viewer picks wins for that file. Read when a file starts, so a change applies from the next one.
229
234
  */
230
235
  preferredAudioLanguage?: string;
231
236
  /**
@@ -234,6 +239,17 @@ export type MediaPlayerLocalOptions = CommonOptions & MediaPlayerSource & {
234
239
  * language starts on the track titled as it is.
235
240
  */
236
241
  preferredSubtitleLanguage?: string | null;
242
+ /**
243
+ * The language the media was made in, as its source knows it (`ja` for anime): a file with no full track in
244
+ * `preferredAudioLanguage` plays its full track in this one, else its default, its first track. Read as the
245
+ * preferences are.
246
+ */
247
+ originalLanguage?: string;
248
+ /**
249
+ * False starts a file with subtitles off when its audio plays in `preferredSubtitleLanguage`, as it does when the
250
+ * viewer's own language is both. True, the default, starts them as `preferredSubtitleLanguage` says.
251
+ */
252
+ alwaysShowSubtitles?: boolean;
237
253
  };
238
254
  /**
239
255
  * A media the caller owns and the player only drives.
@@ -0,0 +1,52 @@
1
+ //#region src/lib/locales/ro.json
2
+ var e = "Audio", t = "S-a copiat", n = "Copiați", r = "Dezactivate", i = "Dezactivați sunetul", a = "Întrerupeți", o = "Redați", s = "Calitate", c = "Redați din nou", l = "Setări", u = "Subtitrări", d = "Indisponibil", f = "restabilit", p = {
3
+ "(Default)": "(Normală)",
4
+ Audio: e,
5
+ Copied: t,
6
+ Copy: n,
7
+ "Copy the errors": "Copiați erorile",
8
+ "Could not switch. Try again.": "Nu s-a putut comuta. Încercați din nou.",
9
+ Disable: r,
10
+ "Exit full screen (f)": "Ieșiți din ecranul complet (f)",
11
+ "Exit picture in picture": "Ieșiți din imagine în imagine",
12
+ "Full screen": "Ecran complet",
13
+ "Full screen (f)": "Ecran complet (f)",
14
+ Mute: i,
15
+ "Mute (m)": "Dezactivați sunetul (m)",
16
+ "Normalize volume": "Uniformizați volumul",
17
+ "Now click your browser's pop out button": "Acum faceți clic pe butonul imagine în imagine al browserului",
18
+ Pause: a,
19
+ "Pause (k)": "Întrerupeți (k)",
20
+ "Picture in picture": "Imagine în imagine",
21
+ Play: o,
22
+ "Play (k)": "Redați (k)",
23
+ "Playback errors ({count})": "Erori de redare ({count})",
24
+ "Playback failed": "Redarea a eșuat",
25
+ "Playback speed": "Viteza de redare",
26
+ "Put the subtitles in the picture": "Integrați subtitrările în imagine",
27
+ "Put the subtitles in the video": "Integrați subtitrările în videoclip",
28
+ Quality: s,
29
+ "Reading the video file failed": "Fișierul video nu a putut fi citit",
30
+ Replay: c,
31
+ "Replay (k)": "Redați din nou (k)",
32
+ Settings: l,
33
+ "Skip Ending": "Omiteți genericul",
34
+ "Skip Opening": "Omiteți introducerea",
35
+ Subtitles: u,
36
+ "Subtitles are in the picture": "Subtitrările sunt în imagine",
37
+ "The MediaSource closed before a SourceBuffer could be created": "MediaSource s-a închis înainte să poată fi creat un SourceBuffer",
38
+ "The MediaSource never opened": "MediaSource nu s-a deschis niciodată",
39
+ "The browser rejected a media segment": "Browserul a respins un segment media",
40
+ "The video codec in this file could not be identified": "Codecul video din acest fișier nu a putut fi identificat",
41
+ "This browser cannot play the codecs in this file: {codecs}": "Acest browser nu poate reda codecurile din acest fișier: {codecs}",
42
+ "This file has no subtitles": "Acest fișier nu are subtitrări",
43
+ "Track {number}": "Pista {number}",
44
+ Unavailable: d,
45
+ "Unmute (m)": "Activați sunetul (m)",
46
+ "at {time}": "la {time}",
47
+ recovered: f,
48
+ "{rate}x": "{rate}x",
49
+ "{start} to {end}": "{start} până la {end}"
50
+ };
51
+ //#endregion
52
+ export { e as Audio, t as Copied, n as Copy, r as Disable, i as Mute, a as Pause, o as Play, s as Quality, c as Replay, l as Settings, u as Subtitles, d as Unavailable, p as default, f as recovered };
@@ -0,0 +1,52 @@
1
+ //#region src/lib/locales/sv.json
2
+ var e = "Ljud", t = "Kopierat", n = "Kopiera", r = "Av", i = "Stäng av ljudet", a = "Pausa", o = "Spela upp", s = "Kvalitet", c = "Spela igen", l = "Inställningar", u = "Undertexter", d = "Inte tillgängligt", f = "återställt", p = {
3
+ "(Default)": "(Normal)",
4
+ Audio: e,
5
+ Copied: t,
6
+ Copy: n,
7
+ "Copy the errors": "Kopiera felen",
8
+ "Could not switch. Try again.": "Det gick inte att byta. Försök igen.",
9
+ Disable: "Av",
10
+ "Exit full screen (f)": "Avsluta helskärm (f)",
11
+ "Exit picture in picture": "Avsluta bild-i-bild",
12
+ "Full screen": "Helskärm",
13
+ "Full screen (f)": "Helskärm (f)",
14
+ Mute: i,
15
+ "Mute (m)": "Stäng av ljudet (m)",
16
+ "Normalize volume": "Jämna ut volymen",
17
+ "Now click your browser's pop out button": "Klicka nu på webbläsarens bild-i-bild-knapp",
18
+ Pause: a,
19
+ "Pause (k)": "Pausa (k)",
20
+ "Picture in picture": "Bild-i-bild",
21
+ Play: o,
22
+ "Play (k)": "Spela upp (k)",
23
+ "Playback errors ({count})": "Uppspelningsfel ({count})",
24
+ "Playback failed": "Uppspelningen misslyckades",
25
+ "Playback speed": "Hastighet",
26
+ "Put the subtitles in the picture": "Bränn in undertexterna i bilden",
27
+ "Put the subtitles in the video": "Bränn in undertexterna i videon",
28
+ Quality: s,
29
+ "Reading the video file failed": "Det gick inte att läsa videofilen",
30
+ Replay: c,
31
+ "Replay (k)": "Spela igen (k)",
32
+ Settings: l,
33
+ "Skip Ending": "Hoppa över eftertexter",
34
+ "Skip Opening": "Hoppa över intro",
35
+ Subtitles: u,
36
+ "Subtitles are in the picture": "Undertexterna finns i bilden",
37
+ "The MediaSource closed before a SourceBuffer could be created": "MediaSource stängdes innan en SourceBuffer kunde skapas",
38
+ "The MediaSource never opened": "MediaSource öppnades aldrig",
39
+ "The browser rejected a media segment": "Webbläsaren avvisade ett mediesegment",
40
+ "The video codec in this file could not be identified": "Det gick inte att identifiera videokodeken i den här filen",
41
+ "This browser cannot play the codecs in this file: {codecs}": "Den här webbläsaren kan inte spela upp kodekarna i den här filen: {codecs}",
42
+ "This file has no subtitles": "Den här filen har inga undertexter",
43
+ "Track {number}": "Spår {number}",
44
+ Unavailable: d,
45
+ "Unmute (m)": "Slå på ljudet (m)",
46
+ "at {time}": "vid {time}",
47
+ recovered: f,
48
+ "{rate}x": "{rate}x",
49
+ "{start} to {end}": "{start} till {end}"
50
+ };
51
+ //#endregion
52
+ export { e as Audio, t as Copied, n as Copy, r as Disable, i as Mute, a as Pause, o as Play, s as Quality, c as Replay, l as Settings, u as Subtitles, d as Unavailable, p as default, f as recovered };
@@ -0,0 +1,52 @@
1
+ //#region src/lib/locales/th.json
2
+ var e = "เสียง", t = "คัดลอกแล้ว", n = "คัดลอก", r = "ปิด", i = "ปิดเสียง", a = "หยุดชั่วคราว", o = "เล่น", s = "คุณภาพ", c = "เล่นอีกครั้ง", l = "การตั้งค่า", u = "คำบรรยาย", d = "ไม่พร้อมใช้งาน", f = "กู้คืนแล้ว", p = {
3
+ "(Default)": "(ปกติ)",
4
+ Audio: e,
5
+ Copied: t,
6
+ Copy: n,
7
+ "Copy the errors": "คัดลอกข้อผิดพลาด",
8
+ "Could not switch. Try again.": "สลับไม่สำเร็จ ลองอีกครั้ง",
9
+ Disable: r,
10
+ "Exit full screen (f)": "ออกจากโหมดเต็มหน้าจอ (f)",
11
+ "Exit picture in picture": "ออกจากภาพซ้อนภาพ",
12
+ "Full screen": "เต็มหน้าจอ",
13
+ "Full screen (f)": "เต็มหน้าจอ (f)",
14
+ Mute: i,
15
+ "Mute (m)": "ปิดเสียง (m)",
16
+ "Normalize volume": "ปรับระดับเสียงให้เท่ากัน",
17
+ "Now click your browser's pop out button": "ตอนนี้ให้คลิกปุ่มภาพซ้อนภาพของเบราว์เซอร์",
18
+ Pause: a,
19
+ "Pause (k)": "หยุดชั่วคราว (k)",
20
+ "Picture in picture": "ภาพซ้อนภาพ",
21
+ Play: o,
22
+ "Play (k)": "เล่น (k)",
23
+ "Playback errors ({count})": "ข้อผิดพลาดในการเล่น ({count})",
24
+ "Playback failed": "เล่นไม่สำเร็จ",
25
+ "Playback speed": "ความเร็วในการเล่น",
26
+ "Put the subtitles in the picture": "ฝังคำบรรยายลงในภาพ",
27
+ "Put the subtitles in the video": "ฝังคำบรรยายลงในวิดีโอ",
28
+ Quality: s,
29
+ "Reading the video file failed": "อ่านไฟล์วิดีโอไม่สำเร็จ",
30
+ Replay: c,
31
+ "Replay (k)": "เล่นอีกครั้ง (k)",
32
+ Settings: l,
33
+ "Skip Ending": "ข้ามเพลงปิด",
34
+ "Skip Opening": "ข้ามเพลงเปิด",
35
+ Subtitles: u,
36
+ "Subtitles are in the picture": "คำบรรยายอยู่ในภาพแล้ว",
37
+ "The MediaSource closed before a SourceBuffer could be created": "MediaSource ปิดไปก่อนที่จะสร้าง SourceBuffer ได้",
38
+ "The MediaSource never opened": "MediaSource ไม่เคยเปิด",
39
+ "The browser rejected a media segment": "เบราว์เซอร์ปฏิเสธส่วนหนึ่งของสื่อ",
40
+ "The video codec in this file could not be identified": "ระบุตัวแปลงสัญญาณวิดีโอของไฟล์นี้ไม่ได้",
41
+ "This browser cannot play the codecs in this file: {codecs}": "เบราว์เซอร์นี้เล่นตัวแปลงสัญญาณของไฟล์นี้ไม่ได้: {codecs}",
42
+ "This file has no subtitles": "ไฟล์นี้ไม่มีคำบรรยาย",
43
+ "Track {number}": "แทร็ก {number}",
44
+ Unavailable: d,
45
+ "Unmute (m)": "เปิดเสียง (m)",
46
+ "at {time}": "ที่ {time}",
47
+ recovered: f,
48
+ "{rate}x": "{rate}x",
49
+ "{start} to {end}": "{start} ถึง {end}"
50
+ };
51
+ //#endregion
52
+ export { e as Audio, t as Copied, n as Copy, r as Disable, i as Mute, a as Pause, o as Play, s as Quality, c as Replay, l as Settings, u as Subtitles, d as Unavailable, p as default, f as recovered };
@@ -0,0 +1,52 @@
1
+ //#region src/lib/locales/uk.json
2
+ var e = "Аудіо", t = "Скопійовано", n = "Копіювати", r = "Вимкнено", i = "Вимкнути звук", a = "Пауза", o = "Відтворити", s = "Якість", c = "Дивитися знову", l = "Налаштування", u = "Субтитри", d = "Недоступно", f = "відновлено", p = {
3
+ "(Default)": "(Звичайна)",
4
+ Audio: e,
5
+ Copied: t,
6
+ Copy: n,
7
+ "Copy the errors": "Копіювати помилки",
8
+ "Could not switch. Try again.": "Не вдалося перемкнути. Спробуйте ще раз.",
9
+ Disable: r,
10
+ "Exit full screen (f)": "Вийти з повноекранного режиму (f)",
11
+ "Exit picture in picture": "Вийти з режиму «картинка в картинці»",
12
+ "Full screen": "На весь екран",
13
+ "Full screen (f)": "На весь екран (f)",
14
+ Mute: i,
15
+ "Mute (m)": "Вимкнути звук (m)",
16
+ "Normalize volume": "Вирівнювати гучність",
17
+ "Now click your browser's pop out button": "Тепер натисніть кнопку «картинка в картинці» у браузері",
18
+ Pause: a,
19
+ "Pause (k)": "Пауза (k)",
20
+ "Picture in picture": "Картинка в картинці",
21
+ Play: o,
22
+ "Play (k)": "Відтворити (k)",
23
+ "Playback errors ({count})": "Помилки відтворення ({count})",
24
+ "Playback failed": "Не вдалося відтворити",
25
+ "Playback speed": "Швидкість",
26
+ "Put the subtitles in the picture": "Вбудувати субтитри в зображення",
27
+ "Put the subtitles in the video": "Вбудувати субтитри у відео",
28
+ Quality: s,
29
+ "Reading the video file failed": "Не вдалося прочитати відеофайл",
30
+ Replay: c,
31
+ "Replay (k)": "Дивитися знову (k)",
32
+ Settings: l,
33
+ "Skip Ending": "Пропустити титри",
34
+ "Skip Opening": "Пропустити заставку",
35
+ Subtitles: u,
36
+ "Subtitles are in the picture": "Субтитри вбудовано в зображення",
37
+ "The MediaSource closed before a SourceBuffer could be created": "MediaSource закрився до того, як вдалося створити SourceBuffer",
38
+ "The MediaSource never opened": "MediaSource так і не відкрився",
39
+ "The browser rejected a media segment": "Браузер відхилив медіасегмент",
40
+ "The video codec in this file could not be identified": "Не вдалося визначити відеокодек цього файлу",
41
+ "This browser cannot play the codecs in this file: {codecs}": "Цей браузер не може відтворити кодеки цього файлу: {codecs}",
42
+ "This file has no subtitles": "У цьому файлі немає субтитрів",
43
+ "Track {number}": "Доріжка {number}",
44
+ Unavailable: d,
45
+ "Unmute (m)": "Увімкнути звук (m)",
46
+ "at {time}": "на {time}",
47
+ recovered: f,
48
+ "{rate}x": "{rate}x",
49
+ "{start} to {end}": "з {start} до {end}"
50
+ };
51
+ //#endregion
52
+ export { e as Audio, t as Copied, n as Copy, r as Disable, i as Mute, a as Pause, o as Play, s as Quality, c as Replay, l as Settings, u as Subtitles, d as Unavailable, p as default, f as recovered };
@@ -0,0 +1,52 @@
1
+ //#region src/lib/locales/vi.json
2
+ var e = "Âm thanh", t = "Đã sao chép", n = "Sao chép", r = "Tắt", i = "Tắt tiếng", a = "Tạm dừng", o = "Phát", s = "Chất lượng", c = "Phát lại", l = "Cài đặt", u = "Phụ đề", d = "Không khả dụng", f = "đã khôi phục", p = {
3
+ "(Default)": "(Mặc định)",
4
+ Audio: e,
5
+ Copied: t,
6
+ Copy: n,
7
+ "Copy the errors": "Sao chép lỗi",
8
+ "Could not switch. Try again.": "Không chuyển được. Hãy thử lại.",
9
+ Disable: r,
10
+ "Exit full screen (f)": "Thoát toàn màn hình (f)",
11
+ "Exit picture in picture": "Thoát hình trong hình",
12
+ "Full screen": "Toàn màn hình",
13
+ "Full screen (f)": "Toàn màn hình (f)",
14
+ Mute: i,
15
+ "Mute (m)": "Tắt tiếng (m)",
16
+ "Normalize volume": "Cân bằng âm lượng",
17
+ "Now click your browser's pop out button": "Bây giờ hãy nhấp vào nút hình trong hình của trình duyệt",
18
+ Pause: a,
19
+ "Pause (k)": "Tạm dừng (k)",
20
+ "Picture in picture": "Hình trong hình",
21
+ Play: o,
22
+ "Play (k)": "Phát (k)",
23
+ "Playback errors ({count})": "Lỗi phát ({count})",
24
+ "Playback failed": "Không phát được",
25
+ "Playback speed": "Tốc độ phát",
26
+ "Put the subtitles in the picture": "Gắn phụ đề vào hình",
27
+ "Put the subtitles in the video": "Gắn phụ đề vào video",
28
+ Quality: s,
29
+ "Reading the video file failed": "Không đọc được tệp video",
30
+ Replay: c,
31
+ "Replay (k)": "Phát lại (k)",
32
+ Settings: l,
33
+ "Skip Ending": "Bỏ qua đoạn kết",
34
+ "Skip Opening": "Bỏ qua đoạn mở đầu",
35
+ Subtitles: u,
36
+ "Subtitles are in the picture": "Phụ đề đã nằm trong hình",
37
+ "The MediaSource closed before a SourceBuffer could be created": "MediaSource đã đóng trước khi tạo được SourceBuffer",
38
+ "The MediaSource never opened": "MediaSource chưa bao giờ mở",
39
+ "The browser rejected a media segment": "Trình duyệt đã từ chối một đoạn phương tiện",
40
+ "The video codec in this file could not be identified": "Không xác định được codec video của tệp này",
41
+ "This browser cannot play the codecs in this file: {codecs}": "Trình duyệt này không phát được codec của tệp này: {codecs}",
42
+ "This file has no subtitles": "Tệp này không có phụ đề",
43
+ "Track {number}": "Rãnh {number}",
44
+ Unavailable: d,
45
+ "Unmute (m)": "Bật tiếng (m)",
46
+ "at {time}": "tại {time}",
47
+ recovered: f,
48
+ "{rate}x": "{rate}x",
49
+ "{start} to {end}": "{start} đến {end}"
50
+ };
51
+ //#endregion
52
+ export { e as Audio, t as Copied, n as Copy, r as Disable, i as Mute, a as Pause, o as Play, s as Quality, c as Replay, l as Settings, u as Subtitles, d as Unavailable, p as default, f as recovered };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@banou/media-player",
3
- "version": "0.10.34",
3
+ "version": "0.10.36",
4
4
  "description": "A video player for containers and codecs the browser cannot play natively, remuxed on the fly",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",