@banou/media-player 0.10.39 → 0.10.41
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/README.md +13 -0
- package/dist/{ar-CS4Yzfxw.js → ar-CWVutin3.js} +1 -0
- package/dist/{cs-CxBZ1aTx.js → cs-CmwRGxyE.js} +1 -0
- package/dist/{de-DphEdq0O.js → de-DLdKEf3t.js} +1 -0
- package/dist/{el-BVTNfAWK.js → el-Ckj-z6DX.js} +1 -0
- package/dist/engine/index.js +1 -1
- package/dist/{engine-DFqSQyNb.js → engine-wP5Udzzj.js} +1 -0
- package/dist/{es-419-D6gsvnn8.js → es-419-zORhhU8D.js} +1 -0
- package/dist/{fr-BqAzAJX0.js → fr-BtPmNkri.js} +1 -0
- package/dist/{he-DbFw1CdO.js → he-Bu79qEth.js} +1 -0
- package/dist/{hi-rBroV7g8.js → hi-BsH3tSHa.js} +1 -0
- package/dist/{hu-m-QKaaxF.js → hu-BkYBW-YP.js} +1 -0
- package/dist/{id-BYpApdK9.js → id-nUaBCV4o.js} +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +263 -236
- package/dist/{it-NTcUh3Gr.js → it-CqPSHyFA.js} +1 -0
- package/dist/{ja-DSmX_bxj.js → ja-DTjvriHw.js} +1 -0
- package/dist/{ko-DyPzWasj.js → ko-dV8T7XOJ.js} +1 -0
- package/dist/labels.d.ts +1 -0
- package/dist/{ms-8pQbqM0D.js → ms-VZQ7BI0z.js} +1 -0
- package/dist/{nl-q7xvc3xW.js → nl-Q6iDxbDz.js} +1 -0
- package/dist/{pl-C6Ow4ra5.js → pl-BN7bK74l.js} +1 -0
- package/dist/{pt-BR-wudK3giz.js → pt-BR-CPFILeFW.js} +1 -0
- package/dist/react/player.d.ts +1 -0
- package/dist/react/source-feature.d.ts +9 -0
- package/dist/react/video-player.d.ts +9 -0
- package/dist/remote/index.d.ts +18 -0
- package/dist/remote/index.js +51 -34
- package/dist/remote/protocol.d.ts +11 -6
- package/dist/{ro-DBrd08Df.js → ro-Bwcm-i3k.js} +1 -0
- package/dist/{ru-D5kxBkik.js → ru-D1FMz751.js} +1 -0
- package/dist/{sv-DJC3tXfW.js → sv-ci9K0Lkk.js} +1 -0
- package/dist/{th-BNzU_FYo.js → th-DR-UBONQ.js} +1 -0
- package/dist/{tr-CW7R7N9k.js → tr-BqhdfT22.js} +1 -0
- package/dist/{uk-C66esN2W.js → uk-8pkZqdni.js} +1 -0
- package/dist/{vi-oOaDECwu.js → vi-3mKZ9G_M.js} +1 -0
- package/dist/{zh-Hans-IhL1Pl78.js → zh-Hans-CDgigWKY.js} +1 -0
- package/dist/{zh-Hant-C5YyFjEc.js → zh-Hant-3WSNI0ne.js} +1 -0
- package/package.json +2 -2
- package/src/lib/index.tsx +2 -1
- package/src/lib/labels.ts +1 -0
- package/src/lib/locales/ar.json +1 -0
- package/src/lib/locales/cs.json +1 -0
- package/src/lib/locales/de.json +1 -0
- package/src/lib/locales/el.json +1 -0
- package/src/lib/locales/es-419.json +1 -0
- package/src/lib/locales/fr.json +1 -0
- package/src/lib/locales/he.json +1 -0
- package/src/lib/locales/hi.json +1 -0
- package/src/lib/locales/hu.json +1 -0
- package/src/lib/locales/id.json +1 -0
- package/src/lib/locales/it.json +1 -0
- package/src/lib/locales/ja.json +1 -0
- package/src/lib/locales/ko.json +1 -0
- package/src/lib/locales/ms.json +1 -0
- package/src/lib/locales/nl.json +1 -0
- package/src/lib/locales/pl.json +1 -0
- package/src/lib/locales/pt-BR.json +1 -0
- package/src/lib/locales/ro.json +1 -0
- package/src/lib/locales/ru.json +1 -0
- package/src/lib/locales/sv.json +1 -0
- package/src/lib/locales/th.json +1 -0
- package/src/lib/locales/tr.json +1 -0
- package/src/lib/locales/uk.json +1 -0
- package/src/lib/locales/vi.json +1 -0
- package/src/lib/locales/zh-Hans.json +1 -0
- package/src/lib/locales/zh-Hant.json +1 -0
- package/src/lib/react/components/settings.tsx +19 -0
- package/src/lib/react/source-feature.ts +10 -0
- package/src/lib/react/video-player.tsx +40 -1
- package/src/lib/remote/index.ts +48 -3
- package/src/lib/remote/protocol.ts +18 -6
package/README.md
CHANGED
|
@@ -336,6 +336,13 @@ on the page's next click, tap or key press, and the video plays as it always did
|
|
|
336
336
|
The refusal comes when routing would, once the switch is on and the AudioContext runs: until then the switch reads as
|
|
337
337
|
available, and from then on it reads Unavailable, with the element never routed and playing as it always did.
|
|
338
338
|
|
|
339
|
+
### Autoplay next episode
|
|
340
|
+
|
|
341
|
+
An app that plays the next episode itself passes `autoplayNext` to show an "Autoplay next episode" switch as the first
|
|
342
|
+
row of the settings menu. The player plays nothing next and saves nothing: save what `onAutoplayNextChange` reports
|
|
343
|
+
and pass it back, as for the volume normalizer. Without the prop there is no switch, unless a page framing the player
|
|
344
|
+
sets one through [`<MediaPlayer expose>`](#layout).
|
|
345
|
+
|
|
339
346
|
### Preferred languages
|
|
340
347
|
|
|
341
348
|
Pass the languages to start a file in, and save what the viewer picks:
|
|
@@ -480,6 +487,12 @@ its published name so it stays an honest consumer.
|
|
|
480
487
|
take the offer of the last ending away. The read is the far player's own word, from after its render, with a
|
|
481
488
|
`chapterschange` event following each change: wait for the false before drawing over that corner, and a player that
|
|
482
489
|
cannot take it (a bare element, an older version) stays true.
|
|
490
|
+
|
|
491
|
+
A page that plays the next episode itself sets `player.autoplayNext` to a boolean to have the far player show its
|
|
492
|
+
"Autoplay next episode" switch in that state. The far document keeps the value for the player's id while a mirror of
|
|
493
|
+
it is open, so every player it serves under that id shows it, and a viewer's flip there is kept the same way. Reads
|
|
494
|
+
are the far player's own word, with an `autoplaynextchange` event after each change, so a page saves the viewer's
|
|
495
|
+
flip from there; a bare element or an older version reads null.
|
|
483
496
|
- `src/lib/react/` the player component, its chrome, and the hooks.
|
|
484
497
|
- `src/lib/labels.ts` the chrome's text in English, and `src/lib/locales/` its other languages.
|
|
485
498
|
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
var e = "الصوت", t = "تم النسخ", n = "نسخ", r = "إيقاف", i = "كتم الصوت", a = "إيقاف مؤقت", o = "تشغيل", s = "الجودة", c = "إعادة التشغيل", l = "الإعدادات", u = "الترجمة", d = "غير متاح", f = "استُؤنف التشغيل", p = {
|
|
3
3
|
"(Default)": "(عادية)",
|
|
4
4
|
Audio: e,
|
|
5
|
+
"Autoplay next episode": "تشغيل الحلقة التالية تلقائيًا",
|
|
5
6
|
Copied: t,
|
|
6
7
|
Copy: n,
|
|
7
8
|
"Copy the errors": "نسخ الأخطاء",
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
var e = "Zvuk", t = "Zkopírováno", n = "Kopírovat", r = "Vypnuto", i = "Ztlumit", a = "Pozastavit", o = "Přehrát", s = "Kvalita", c = "Přehrát znovu", l = "Nastavení", u = "Titulky", d = "Nedostupné", f = "obnoveno", p = {
|
|
3
3
|
"(Default)": "(Normální)",
|
|
4
4
|
Audio: e,
|
|
5
|
+
"Autoplay next episode": "Automaticky přehrát další díl",
|
|
5
6
|
Copied: t,
|
|
6
7
|
Copy: n,
|
|
7
8
|
"Copy the errors": "Kopírovat chyby",
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
var e = "Audio", t = "Kopiert", n = "Kopieren", r = "Aus", i = "Stummschalten", a = "Pause", o = "Wiedergabe", s = "Qualität", c = "Erneut abspielen", l = "Einstellungen", u = "Untertitel", d = "Nicht verfügbar", f = "behoben", p = {
|
|
3
3
|
"(Default)": "(Normal)",
|
|
4
4
|
Audio: e,
|
|
5
|
+
"Autoplay next episode": "Nächste Folge automatisch abspielen",
|
|
5
6
|
Copied: t,
|
|
6
7
|
Copy: n,
|
|
7
8
|
"Copy the errors": "Fehler kopieren",
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
var e = "Ήχος", t = "Αντιγράφηκε", n = "Αντιγραφή", r = "Ανενεργοί", i = "Σίγαση", a = "Παύση", o = "Αναπαραγωγή", s = "Ποιότητα", c = "Επανάληψη", l = "Ρυθμίσεις", u = "Υπότιτλοι", d = "Μη διαθέσιμο", f = "αποκαταστάθηκε", p = {
|
|
3
3
|
"(Default)": "(Κανονική)",
|
|
4
4
|
Audio: e,
|
|
5
|
+
"Autoplay next episode": "Αυτόματη αναπαραγωγή επόμενου επεισοδίου",
|
|
5
6
|
Copied: t,
|
|
6
7
|
Copy: n,
|
|
7
8
|
"Copy the errors": "Αντιγραφή σφαλμάτων",
|
package/dist/engine/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "../engine-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "../engine-wP5Udzzj.js";
|
|
2
2
|
export { i as DEFAULT_BUFFER_SIZE, e as MediaElementError, a as SUBTITLES_OFF, u as createPictureInPicture, d as createSubtitleRenderer, c as createThumbnailGenerator, n as getTimeRanges, s as isMediaElementError, o as pictureInPictureMode, l as startPlayback, t as terminateRemuxer, r as updateSourceBuffer };
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
var e = "Audio", t = "Copiado", n = "Copiar", r = "Desactivados", i = "Silenciar", a = "Pausar", o = "Reproducir", s = "Calidad", c = "Volver a ver", l = "Configuración", u = "Subtítulos", d = "No disponible", f = "recuperado", p = {
|
|
3
3
|
"(Default)": "(Normal)",
|
|
4
4
|
Audio: e,
|
|
5
|
+
"Autoplay next episode": "Reproducción automática del siguiente episodio",
|
|
5
6
|
Copied: t,
|
|
6
7
|
Copy: n,
|
|
7
8
|
"Copy the errors": "Copiar los errores",
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
var e = "Audio", t = "Copié", n = "Copier", r = "Désactivés", i = "Couper le son", a = "Pause", o = "Lecture", s = "Qualité", c = "Revoir", l = "Paramètres", u = "Sous-titres", d = "Indisponible", f = "lecture rétablie", p = {
|
|
3
3
|
"(Default)": "(Normale)",
|
|
4
4
|
Audio: e,
|
|
5
|
+
"Autoplay next episode": "Lecture automatique de l’épisode suivant",
|
|
5
6
|
Copied: t,
|
|
6
7
|
Copy: n,
|
|
7
8
|
"Copy the errors": "Copier les erreurs",
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
var e = "שמע", t = "הועתק", n = "העתקה", r = "כבוי", i = "השתקה", a = "השהיה", o = "הפעלה", s = "איכות", c = "הפעלה מחדש", l = "הגדרות", u = "כתוביות", d = "לא זמין", f = "ההפעלה התאוששה", p = {
|
|
3
3
|
"(Default)": "(רגילה)",
|
|
4
4
|
Audio: e,
|
|
5
|
+
"Autoplay next episode": "הפעלה אוטומטית של הפרק הבא",
|
|
5
6
|
Copied: t,
|
|
6
7
|
Copy: n,
|
|
7
8
|
"Copy the errors": "העתקת השגיאות",
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
var e = "ऑडियो", t = "कॉपी हो गया", n = "कॉपी करें", r = "बंद", i = "म्यूट करें", a = "रोकें", o = "चलाएं", s = "क्वालिटी", c = "फिर से चलाएं", l = "सेटिंग", u = "सबटाइटल", d = "उपलब्ध नहीं", f = "ठीक हो गया", p = {
|
|
3
3
|
"(Default)": "(सामान्य)",
|
|
4
4
|
Audio: e,
|
|
5
|
+
"Autoplay next episode": "अगला एपिसोड अपने आप चलाएं",
|
|
5
6
|
Copied: t,
|
|
6
7
|
Copy: n,
|
|
7
8
|
"Copy the errors": "गड़बड़ियां कॉपी करें",
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
var e = "Hang", t = "Másolva", n = "Másolás", r = "Ki", i = "Némítás", a = "Szünet", o = "Lejátszás", s = "Minőség", c = "Újrajátszás", l = "Beállítások", u = "Feliratok", d = "Nem érhető el", f = "helyreállt", p = {
|
|
3
3
|
"(Default)": "(Normál)",
|
|
4
4
|
Audio: e,
|
|
5
|
+
"Autoplay next episode": "Következő rész automatikus lejátszása",
|
|
5
6
|
Copied: t,
|
|
6
7
|
Copy: n,
|
|
7
8
|
"Copy the errors": "Hibák másolása",
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
var e = "Audio", t = "Disalin", n = "Salin", r = "Nonaktif", i = "Bisukan", a = "Jeda", o = "Putar", s = "Kualitas", c = "Putar ulang", l = "Pengaturan", u = "Subtitel", d = "Tidak tersedia", f = "pulih", p = {
|
|
3
3
|
"(Default)": "(Normal)",
|
|
4
4
|
Audio: e,
|
|
5
|
+
"Autoplay next episode": "Putar otomatis episode berikutnya",
|
|
5
6
|
Copied: t,
|
|
6
7
|
Copy: n,
|
|
7
8
|
"Copy the errors": "Salin kesalahan",
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export type { DelegatedSelection, DelegatedTracks, ExternalThumbnails, PassThrou
|
|
|
5
5
|
export { Player, usePlayer } from './react/player';
|
|
6
6
|
export type { PlayerStore } from './react/player';
|
|
7
7
|
export { sourceFeature } from './react/source-feature';
|
|
8
|
-
export type { DownloadedRange, PassThroughControl, PlaybackErrorEntry, SourceState, ViewportBox, VolumeNormalizerControl, } from './react/source-feature';
|
|
8
|
+
export type { AutoplayNextControl, DownloadedRange, PassThroughControl, PlaybackErrorEntry, SourceState, ViewportBox, VolumeNormalizerControl, } from './react/source-feature';
|
|
9
9
|
export { useSeekThumbnails } from './react/hooks/use-thumbnails';
|
|
10
10
|
export { usePictureInPicture } from './react/hooks/use-picture-in-picture';
|
|
11
11
|
export { inputToRemuxerInput } from './utils/source';
|