@banou/media-player 0.10.54 → 0.10.55
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/{ar-CWVutin3.js → ar-CSjwFY8l.js} +2 -0
- package/dist/{cs-CmwRGxyE.js → cs-Dk6IDwX9.js} +2 -0
- package/dist/{de-DLdKEf3t.js → de-G319tpSe.js} +2 -0
- package/dist/{el-Ckj-z6DX.js → el-CtRdEeUl.js} +2 -0
- package/dist/engine/index.d.ts +2 -0
- package/dist/engine/index.js +2 -2
- package/dist/engine/playback.d.ts +2 -0
- package/dist/engine/subtitle-convert.d.ts +8 -0
- package/dist/engine/subtitles.d.ts +2 -0
- package/dist/{engine-DZ6BX5XH.js → engine-tBJeFD6J.js} +285 -147
- package/dist/{es-419-zORhhU8D.js → es-419-BzuTB161.js} +2 -0
- package/dist/{fr-BtPmNkri.js → fr-BC0Ncjsm.js} +2 -0
- package/dist/{he-Bu79qEth.js → he-UutSGaSy.js} +2 -0
- package/dist/{hi-BsH3tSHa.js → hi-kNW0VH4d.js} +2 -0
- package/dist/{hu-BkYBW-YP.js → hu-UJBXN0lB.js} +2 -0
- package/dist/{id-nUaBCV4o.js → id-DYADKCdp.js} +2 -0
- package/dist/index.d.ts +4 -3
- package/dist/index.js +1188 -953
- package/dist/{it-CqPSHyFA.js → it-GodcqBoI.js} +2 -0
- package/dist/{ja-DTjvriHw.js → ja-r3FM4zNQ.js} +2 -0
- package/dist/{ko-dV8T7XOJ.js → ko-kNn9SZJT.js} +2 -0
- package/dist/labels.d.ts +2 -0
- package/dist/{ms-VZQ7BI0z.js → ms-B_95sgk7.js} +2 -0
- package/dist/{nl-Q6iDxbDz.js → nl-DUua8lM5.js} +2 -0
- package/dist/{pl-BN7bK74l.js → pl-DYN3cCvL.js} +2 -0
- package/dist/{pt-BR-CPFILeFW.js → pt-BR-CRH5nyyj.js} +2 -0
- package/dist/react/components/chrome.d.ts +3 -2
- package/dist/react/components/control-bar.d.ts +3 -2
- package/dist/react/hooks/use-playback.d.ts +1 -5
- package/dist/react/video-player.d.ts +29 -1
- package/dist/remote/index.d.ts +25 -2
- package/dist/remote/index.js +134 -68
- package/dist/remote/protocol.d.ts +22 -6
- package/dist/{ro-Bwcm-i3k.js → ro-lXdsKpft.js} +2 -0
- package/dist/{ru-D1FMz751.js → ru-Du_uJXdo.js} +2 -0
- package/dist/{sv-ci9K0Lkk.js → sv-CpEL6oGd.js} +2 -0
- package/dist/{th-DR-UBONQ.js → th-CQac_Jcd.js} +2 -0
- package/dist/{tr-BqhdfT22.js → tr-DLRAnIOh.js} +2 -0
- package/dist/{uk-8pkZqdni.js → uk-Cra5hJzT.js} +2 -0
- package/dist/{vi-3mKZ9G_M.js → vi-L2-IGJYQ.js} +2 -0
- package/dist/{zh-Hans-CDgigWKY.js → zh-Hans-Dp0UkPYn.js} +2 -0
- package/dist/{zh-Hant-3WSNI0ne.js → zh-Hant-CS16XV8X.js} +2 -0
- package/package.json +1 -1
- package/src/lib/engine/index.ts +3 -0
- package/src/lib/engine/playback.ts +4 -0
- package/src/lib/engine/subtitle-convert.ts +186 -0
- package/src/lib/engine/subtitles.ts +46 -7
- package/src/lib/index.tsx +7 -0
- package/src/lib/labels.ts +2 -0
- package/src/lib/locales/ar.json +2 -0
- package/src/lib/locales/cs.json +2 -0
- package/src/lib/locales/de.json +2 -0
- package/src/lib/locales/el.json +2 -0
- package/src/lib/locales/es-419.json +2 -0
- package/src/lib/locales/fr.json +2 -0
- package/src/lib/locales/he.json +2 -0
- package/src/lib/locales/hi.json +2 -0
- package/src/lib/locales/hu.json +2 -0
- package/src/lib/locales/id.json +2 -0
- package/src/lib/locales/it.json +2 -0
- package/src/lib/locales/ja.json +2 -0
- package/src/lib/locales/ko.json +2 -0
- package/src/lib/locales/ms.json +2 -0
- package/src/lib/locales/nl.json +2 -0
- package/src/lib/locales/pl.json +2 -0
- package/src/lib/locales/pt-BR.json +2 -0
- package/src/lib/locales/ro.json +2 -0
- package/src/lib/locales/ru.json +2 -0
- package/src/lib/locales/sv.json +2 -0
- package/src/lib/locales/th.json +2 -0
- package/src/lib/locales/tr.json +2 -0
- package/src/lib/locales/uk.json +2 -0
- package/src/lib/locales/vi.json +2 -0
- package/src/lib/locales/zh-Hans.json +2 -0
- package/src/lib/locales/zh-Hant.json +2 -0
- package/src/lib/react/components/chrome.tsx +4 -3
- package/src/lib/react/components/control-bar.tsx +51 -6
- package/src/lib/react/hooks/use-playback.ts +207 -15
- package/src/lib/react/video-player.tsx +116 -3
- package/src/lib/remote/index.ts +149 -12
- package/src/lib/remote/protocol.ts +32 -7
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"Full screen (f)": "Pantalla completa (f)",
|
|
14
14
|
"Mute": "Silenciar",
|
|
15
15
|
"Mute (m)": "Silenciar (m)",
|
|
16
|
+
"Next episode": "Episodio siguiente",
|
|
16
17
|
"Normalize volume": "Normalizar volumen",
|
|
17
18
|
"Now click your browser's pop out button": "Ahora haz clic en el botón de imagen en imagen de tu navegador",
|
|
18
19
|
"Pause": "Pausar",
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
"Playback errors ({count})": "Errores de reproducción ({count})",
|
|
24
25
|
"Playback failed": "No se pudo reproducir",
|
|
25
26
|
"Playback speed": "Velocidad",
|
|
27
|
+
"Previous episode": "Episodio anterior",
|
|
26
28
|
"Put the subtitles in the picture": "Incrustar los subtítulos en la imagen",
|
|
27
29
|
"Put the subtitles in the video": "Incrustar los subtítulos en el video",
|
|
28
30
|
"Quality": "Calidad",
|
package/src/lib/locales/fr.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"Full screen (f)": "Plein écran (f)",
|
|
14
14
|
"Mute": "Couper le son",
|
|
15
15
|
"Mute (m)": "Couper le son (m)",
|
|
16
|
+
"Next episode": "Épisode suivant",
|
|
16
17
|
"Normalize volume": "Normaliser le volume",
|
|
17
18
|
"Now click your browser's pop out button": "Cliquez maintenant sur le bouton d’incrustation vidéo de votre navigateur",
|
|
18
19
|
"Pause": "Pause",
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
"Playback errors ({count})": "Erreurs de lecture ({count})",
|
|
24
25
|
"Playback failed": "Échec de la lecture",
|
|
25
26
|
"Playback speed": "Vitesse de lecture",
|
|
27
|
+
"Previous episode": "Épisode précédent",
|
|
26
28
|
"Put the subtitles in the picture": "Incruster les sous-titres dans l’image",
|
|
27
29
|
"Put the subtitles in the video": "Incruster les sous-titres dans la vidéo",
|
|
28
30
|
"Quality": "Qualité",
|
package/src/lib/locales/he.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"Full screen (f)": "מסך מלא (f)",
|
|
14
14
|
"Mute": "השתקה",
|
|
15
15
|
"Mute (m)": "השתקה (m)",
|
|
16
|
+
"Next episode": "הפרק הבא",
|
|
16
17
|
"Normalize volume": "איזון עוצמת הקול",
|
|
17
18
|
"Now click your browser's pop out button": "עכשיו לחצו על לחצן החלון הצף בדפדפן",
|
|
18
19
|
"Pause": "השהיה",
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
"Playback errors ({count})": "שגיאות הפעלה ({count})",
|
|
24
25
|
"Playback failed": "ההפעלה נכשלה",
|
|
25
26
|
"Playback speed": "מהירות הפעלה",
|
|
27
|
+
"Previous episode": "הפרק הקודם",
|
|
26
28
|
"Put the subtitles in the picture": "הטמעת הכתוביות בתמונה",
|
|
27
29
|
"Put the subtitles in the video": "הטמעת הכתוביות בסרטון",
|
|
28
30
|
"Quality": "איכות",
|
package/src/lib/locales/hi.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"Full screen (f)": "फ़ुल स्क्रीन (f)",
|
|
14
14
|
"Mute": "म्यूट करें",
|
|
15
15
|
"Mute (m)": "म्यूट करें (m)",
|
|
16
|
+
"Next episode": "अगला एपिसोड",
|
|
16
17
|
"Normalize volume": "आवाज़ एक जैसी रखें",
|
|
17
18
|
"Now click your browser's pop out button": "अब अपने ब्राउज़र का पिक्चर में पिक्चर बटन क्लिक करें",
|
|
18
19
|
"Pause": "रोकें",
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
"Playback errors ({count})": "प्लेबैक की गड़बड़ियां ({count})",
|
|
24
25
|
"Playback failed": "प्लेबैक नहीं हो सका",
|
|
25
26
|
"Playback speed": "प्लेबैक स्पीड",
|
|
27
|
+
"Previous episode": "पिछला एपिसोड",
|
|
26
28
|
"Put the subtitles in the picture": "सबटाइटल तस्वीर में जोड़ें",
|
|
27
29
|
"Put the subtitles in the video": "सबटाइटल वीडियो में जोड़ें",
|
|
28
30
|
"Quality": "क्वालिटी",
|
package/src/lib/locales/hu.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"Full screen (f)": "Teljes képernyő (f)",
|
|
14
14
|
"Mute": "Némítás",
|
|
15
15
|
"Mute (m)": "Némítás (m)",
|
|
16
|
+
"Next episode": "Következő epizód",
|
|
16
17
|
"Normalize volume": "Hangerő kiegyenlítése",
|
|
17
18
|
"Now click your browser's pop out button": "Most kattints a böngésző kép a képben gombjára",
|
|
18
19
|
"Pause": "Szünet",
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
"Playback errors ({count})": "Lejátszási hibák ({count})",
|
|
24
25
|
"Playback failed": "A lejátszás nem sikerült",
|
|
25
26
|
"Playback speed": "Sebesség",
|
|
27
|
+
"Previous episode": "Előző epizód",
|
|
26
28
|
"Put the subtitles in the picture": "Feliratok beégetése a képbe",
|
|
27
29
|
"Put the subtitles in the video": "Feliratok beégetése a videóba",
|
|
28
30
|
"Quality": "Minőség",
|
package/src/lib/locales/id.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"Full screen (f)": "Layar penuh (f)",
|
|
14
14
|
"Mute": "Bisukan",
|
|
15
15
|
"Mute (m)": "Bisukan (m)",
|
|
16
|
+
"Next episode": "Episode berikutnya",
|
|
16
17
|
"Normalize volume": "Samakan volume",
|
|
17
18
|
"Now click your browser's pop out button": "Sekarang klik tombol gambar dalam gambar di browser Anda",
|
|
18
19
|
"Pause": "Jeda",
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
"Playback errors ({count})": "Kesalahan pemutaran ({count})",
|
|
24
25
|
"Playback failed": "Pemutaran gagal",
|
|
25
26
|
"Playback speed": "Kecepatan putar",
|
|
27
|
+
"Previous episode": "Episode sebelumnya",
|
|
26
28
|
"Put the subtitles in the picture": "Tanamkan subtitel ke gambar",
|
|
27
29
|
"Put the subtitles in the video": "Tanamkan subtitel ke video",
|
|
28
30
|
"Quality": "Kualitas",
|
package/src/lib/locales/it.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"Full screen (f)": "Schermo intero (f)",
|
|
14
14
|
"Mute": "Disattiva audio",
|
|
15
15
|
"Mute (m)": "Disattiva audio (m)",
|
|
16
|
+
"Next episode": "Episodio successivo",
|
|
16
17
|
"Normalize volume": "Normalizza volume",
|
|
17
18
|
"Now click your browser's pop out button": "Ora fai clic sul pulsante picture in picture del browser",
|
|
18
19
|
"Pause": "Pausa",
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
"Playback errors ({count})": "Errori di riproduzione ({count})",
|
|
24
25
|
"Playback failed": "Riproduzione non riuscita",
|
|
25
26
|
"Playback speed": "Velocità",
|
|
27
|
+
"Previous episode": "Episodio precedente",
|
|
26
28
|
"Put the subtitles in the picture": "Inserisci i sottotitoli nell’immagine",
|
|
27
29
|
"Put the subtitles in the video": "Inserisci i sottotitoli nel video",
|
|
28
30
|
"Quality": "Qualità",
|
package/src/lib/locales/ja.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"Full screen (f)": "全画面 (f)",
|
|
14
14
|
"Mute": "ミュート",
|
|
15
15
|
"Mute (m)": "ミュート (m)",
|
|
16
|
+
"Next episode": "次のエピソード",
|
|
16
17
|
"Normalize volume": "音量を均一化",
|
|
17
18
|
"Now click your browser's pop out button": "ブラウザのピクチャー イン ピクチャー ボタンをクリックしてください",
|
|
18
19
|
"Pause": "一時停止",
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
"Playback errors ({count})": "再生エラー ({count})",
|
|
24
25
|
"Playback failed": "再生に失敗しました",
|
|
25
26
|
"Playback speed": "再生速度",
|
|
27
|
+
"Previous episode": "前のエピソード",
|
|
26
28
|
"Put the subtitles in the picture": "字幕を映像に焼き込む",
|
|
27
29
|
"Put the subtitles in the video": "字幕を動画に焼き込む",
|
|
28
30
|
"Quality": "画質",
|
package/src/lib/locales/ko.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"Full screen (f)": "전체 화면 (f)",
|
|
14
14
|
"Mute": "음소거",
|
|
15
15
|
"Mute (m)": "음소거 (m)",
|
|
16
|
+
"Next episode": "다음 에피소드",
|
|
16
17
|
"Normalize volume": "음량 평준화",
|
|
17
18
|
"Now click your browser's pop out button": "이제 브라우저의 PIP 버튼을 클릭하세요",
|
|
18
19
|
"Pause": "일시정지",
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
"Playback errors ({count})": "재생 오류 ({count})",
|
|
24
25
|
"Playback failed": "재생하지 못했습니다",
|
|
25
26
|
"Playback speed": "재생 속도",
|
|
27
|
+
"Previous episode": "이전 에피소드",
|
|
26
28
|
"Put the subtitles in the picture": "자막을 화면에 넣기",
|
|
27
29
|
"Put the subtitles in the video": "자막을 동영상에 넣기",
|
|
28
30
|
"Quality": "화질",
|
package/src/lib/locales/ms.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"Full screen (f)": "Skrin penuh (f)",
|
|
14
14
|
"Mute": "Redam",
|
|
15
15
|
"Mute (m)": "Redam (m)",
|
|
16
|
+
"Next episode": "Episod seterusnya",
|
|
16
17
|
"Normalize volume": "Seimbangkan kelantangan",
|
|
17
18
|
"Now click your browser's pop out button": "Sekarang klik butang gambar dalam gambar pada pelayar anda",
|
|
18
19
|
"Pause": "Jeda",
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
"Playback errors ({count})": "Ralat main balik ({count})",
|
|
24
25
|
"Playback failed": "Main balik gagal",
|
|
25
26
|
"Playback speed": "Kelajuan main balik",
|
|
27
|
+
"Previous episode": "Episod sebelumnya",
|
|
26
28
|
"Put the subtitles in the picture": "Benamkan sari kata dalam gambar",
|
|
27
29
|
"Put the subtitles in the video": "Benamkan sari kata dalam video",
|
|
28
30
|
"Quality": "Kualiti",
|
package/src/lib/locales/nl.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"Full screen (f)": "Volledig scherm (f)",
|
|
14
14
|
"Mute": "Dempen",
|
|
15
15
|
"Mute (m)": "Dempen (m)",
|
|
16
|
+
"Next episode": "Volgende aflevering",
|
|
16
17
|
"Normalize volume": "Volume gelijktrekken",
|
|
17
18
|
"Now click your browser's pop out button": "Klik nu op de beeld-in-beeldknop van je browser",
|
|
18
19
|
"Pause": "Pauzeren",
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
"Playback errors ({count})": "Afspeelfouten ({count})",
|
|
24
25
|
"Playback failed": "Afspelen mislukt",
|
|
25
26
|
"Playback speed": "Afspeelsnelheid",
|
|
27
|
+
"Previous episode": "Vorige aflevering",
|
|
26
28
|
"Put the subtitles in the picture": "Ondertitels in het beeld branden",
|
|
27
29
|
"Put the subtitles in the video": "Ondertitels in de video branden",
|
|
28
30
|
"Quality": "Kwaliteit",
|
package/src/lib/locales/pl.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"Full screen (f)": "Pełny ekran (f)",
|
|
14
14
|
"Mute": "Wycisz",
|
|
15
15
|
"Mute (m)": "Wycisz (m)",
|
|
16
|
+
"Next episode": "Następny odcinek",
|
|
16
17
|
"Normalize volume": "Wyrównaj głośność",
|
|
17
18
|
"Now click your browser's pop out button": "Teraz kliknij przycisk obrazu w obrazie w przeglądarce",
|
|
18
19
|
"Pause": "Wstrzymaj",
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
"Playback errors ({count})": "Błędy odtwarzania ({count})",
|
|
24
25
|
"Playback failed": "Nie udało się odtworzyć",
|
|
25
26
|
"Playback speed": "Szybkość",
|
|
27
|
+
"Previous episode": "Poprzedni odcinek",
|
|
26
28
|
"Put the subtitles in the picture": "Wtop napisy w obraz",
|
|
27
29
|
"Put the subtitles in the video": "Wtop napisy w wideo",
|
|
28
30
|
"Quality": "Jakość",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"Full screen (f)": "Tela cheia (f)",
|
|
14
14
|
"Mute": "Desativar som",
|
|
15
15
|
"Mute (m)": "Desativar som (m)",
|
|
16
|
+
"Next episode": "Próximo episódio",
|
|
16
17
|
"Normalize volume": "Normalizar volume",
|
|
17
18
|
"Now click your browser's pop out button": "Agora clique no botão de picture-in-picture do seu navegador",
|
|
18
19
|
"Pause": "Pausar",
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
"Playback errors ({count})": "Erros de reprodução ({count})",
|
|
24
25
|
"Playback failed": "Falha na reprodução",
|
|
25
26
|
"Playback speed": "Velocidade",
|
|
27
|
+
"Previous episode": "Episódio anterior",
|
|
26
28
|
"Put the subtitles in the picture": "Colocar as legendas na imagem",
|
|
27
29
|
"Put the subtitles in the video": "Colocar as legendas no vídeo",
|
|
28
30
|
"Quality": "Qualidade",
|
package/src/lib/locales/ro.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"Full screen (f)": "Ecran complet (f)",
|
|
14
14
|
"Mute": "Dezactivați sunetul",
|
|
15
15
|
"Mute (m)": "Dezactivați sunetul (m)",
|
|
16
|
+
"Next episode": "Episodul următor",
|
|
16
17
|
"Normalize volume": "Uniformizați volumul",
|
|
17
18
|
"Now click your browser's pop out button": "Acum faceți clic pe butonul imagine în imagine al browserului",
|
|
18
19
|
"Pause": "Întrerupeți",
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
"Playback errors ({count})": "Erori de redare ({count})",
|
|
24
25
|
"Playback failed": "Redarea a eșuat",
|
|
25
26
|
"Playback speed": "Viteza de redare",
|
|
27
|
+
"Previous episode": "Episodul anterior",
|
|
26
28
|
"Put the subtitles in the picture": "Integrați subtitrările în imagine",
|
|
27
29
|
"Put the subtitles in the video": "Integrați subtitrările în videoclip",
|
|
28
30
|
"Quality": "Calitate",
|
package/src/lib/locales/ru.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"Full screen (f)": "Во весь экран (f)",
|
|
14
14
|
"Mute": "Выключить звук",
|
|
15
15
|
"Mute (m)": "Выключить звук (m)",
|
|
16
|
+
"Next episode": "Следующая серия",
|
|
16
17
|
"Normalize volume": "Выравнивать громкость",
|
|
17
18
|
"Now click your browser's pop out button": "Теперь нажмите кнопку «картинка в картинке» в браузере",
|
|
18
19
|
"Pause": "Пауза",
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
"Playback errors ({count})": "Ошибки воспроизведения ({count})",
|
|
24
25
|
"Playback failed": "Не удалось воспроизвести",
|
|
25
26
|
"Playback speed": "Скорость",
|
|
27
|
+
"Previous episode": "Предыдущая серия",
|
|
26
28
|
"Put the subtitles in the picture": "Встроить субтитры в изображение",
|
|
27
29
|
"Put the subtitles in the video": "Встроить субтитры в видео",
|
|
28
30
|
"Quality": "Качество",
|
package/src/lib/locales/sv.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"Full screen (f)": "Helskärm (f)",
|
|
14
14
|
"Mute": "Stäng av ljudet",
|
|
15
15
|
"Mute (m)": "Stäng av ljudet (m)",
|
|
16
|
+
"Next episode": "Nästa avsnitt",
|
|
16
17
|
"Normalize volume": "Jämna ut volymen",
|
|
17
18
|
"Now click your browser's pop out button": "Klicka nu på webbläsarens bild-i-bild-knapp",
|
|
18
19
|
"Pause": "Pausa",
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
"Playback errors ({count})": "Uppspelningsfel ({count})",
|
|
24
25
|
"Playback failed": "Uppspelningen misslyckades",
|
|
25
26
|
"Playback speed": "Hastighet",
|
|
27
|
+
"Previous episode": "Föregående avsnitt",
|
|
26
28
|
"Put the subtitles in the picture": "Bränn in undertexterna i bilden",
|
|
27
29
|
"Put the subtitles in the video": "Bränn in undertexterna i videon",
|
|
28
30
|
"Quality": "Kvalitet",
|
package/src/lib/locales/th.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"Full screen (f)": "เต็มหน้าจอ (f)",
|
|
14
14
|
"Mute": "ปิดเสียง",
|
|
15
15
|
"Mute (m)": "ปิดเสียง (m)",
|
|
16
|
+
"Next episode": "ตอนถัดไป",
|
|
16
17
|
"Normalize volume": "ปรับระดับเสียงให้เท่ากัน",
|
|
17
18
|
"Now click your browser's pop out button": "ตอนนี้ให้คลิกปุ่มภาพซ้อนภาพของเบราว์เซอร์",
|
|
18
19
|
"Pause": "หยุดชั่วคราว",
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
"Playback errors ({count})": "ข้อผิดพลาดในการเล่น ({count})",
|
|
24
25
|
"Playback failed": "เล่นไม่สำเร็จ",
|
|
25
26
|
"Playback speed": "ความเร็วในการเล่น",
|
|
27
|
+
"Previous episode": "ตอนก่อนหน้า",
|
|
26
28
|
"Put the subtitles in the picture": "ฝังคำบรรยายลงในภาพ",
|
|
27
29
|
"Put the subtitles in the video": "ฝังคำบรรยายลงในวิดีโอ",
|
|
28
30
|
"Quality": "คุณภาพ",
|
package/src/lib/locales/tr.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"Full screen (f)": "Tam ekran (f)",
|
|
14
14
|
"Mute": "Sesi kapat",
|
|
15
15
|
"Mute (m)": "Sesi kapat (m)",
|
|
16
|
+
"Next episode": "Sonraki bölüm",
|
|
16
17
|
"Normalize volume": "Sesi dengele",
|
|
17
18
|
"Now click your browser's pop out button": "Şimdi tarayıcınızın pencere içinde pencere düğmesine tıklayın",
|
|
18
19
|
"Pause": "Duraklat",
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
"Playback errors ({count})": "Oynatma hataları ({count})",
|
|
24
25
|
"Playback failed": "Oynatılamadı",
|
|
25
26
|
"Playback speed": "Oynatma hızı",
|
|
27
|
+
"Previous episode": "Önceki bölüm",
|
|
26
28
|
"Put the subtitles in the picture": "Altyazıları görüntüye göm",
|
|
27
29
|
"Put the subtitles in the video": "Altyazıları videoya göm",
|
|
28
30
|
"Quality": "Kalite",
|
package/src/lib/locales/uk.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"Full screen (f)": "На весь екран (f)",
|
|
14
14
|
"Mute": "Вимкнути звук",
|
|
15
15
|
"Mute (m)": "Вимкнути звук (m)",
|
|
16
|
+
"Next episode": "Наступна серія",
|
|
16
17
|
"Normalize volume": "Вирівнювати гучність",
|
|
17
18
|
"Now click your browser's pop out button": "Тепер натисніть кнопку «картинка в картинці» у браузері",
|
|
18
19
|
"Pause": "Пауза",
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
"Playback errors ({count})": "Помилки відтворення ({count})",
|
|
24
25
|
"Playback failed": "Не вдалося відтворити",
|
|
25
26
|
"Playback speed": "Швидкість",
|
|
27
|
+
"Previous episode": "Попередня серія",
|
|
26
28
|
"Put the subtitles in the picture": "Вбудувати субтитри в зображення",
|
|
27
29
|
"Put the subtitles in the video": "Вбудувати субтитри у відео",
|
|
28
30
|
"Quality": "Якість",
|
package/src/lib/locales/vi.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"Full screen (f)": "Toàn màn hình (f)",
|
|
14
14
|
"Mute": "Tắt tiếng",
|
|
15
15
|
"Mute (m)": "Tắt tiếng (m)",
|
|
16
|
+
"Next episode": "Tập tiếp theo",
|
|
16
17
|
"Normalize volume": "Cân bằng âm lượng",
|
|
17
18
|
"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
19
|
"Pause": "Tạm dừng",
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
"Playback errors ({count})": "Lỗi phát ({count})",
|
|
24
25
|
"Playback failed": "Không phát được",
|
|
25
26
|
"Playback speed": "Tốc độ phát",
|
|
27
|
+
"Previous episode": "Tập trước",
|
|
26
28
|
"Put the subtitles in the picture": "Gắn phụ đề vào hình",
|
|
27
29
|
"Put the subtitles in the video": "Gắn phụ đề vào video",
|
|
28
30
|
"Quality": "Chất lượng",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"Full screen (f)": "全屏 (f)",
|
|
14
14
|
"Mute": "静音",
|
|
15
15
|
"Mute (m)": "静音 (m)",
|
|
16
|
+
"Next episode": "下一集",
|
|
16
17
|
"Normalize volume": "音量均衡",
|
|
17
18
|
"Now click your browser's pop out button": "现在点击浏览器的画中画按钮",
|
|
18
19
|
"Pause": "暂停",
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
"Playback errors ({count})": "播放错误 ({count})",
|
|
24
25
|
"Playback failed": "播放失败",
|
|
25
26
|
"Playback speed": "播放速度",
|
|
27
|
+
"Previous episode": "上一集",
|
|
26
28
|
"Put the subtitles in the picture": "将字幕嵌入画面",
|
|
27
29
|
"Put the subtitles in the video": "将字幕嵌入视频",
|
|
28
30
|
"Quality": "画质",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"Full screen (f)": "全螢幕 (f)",
|
|
14
14
|
"Mute": "靜音",
|
|
15
15
|
"Mute (m)": "靜音 (m)",
|
|
16
|
+
"Next episode": "下一集",
|
|
16
17
|
"Normalize volume": "音量平衡",
|
|
17
18
|
"Now click your browser's pop out button": "現在請點選瀏覽器的子母畫面按鈕",
|
|
18
19
|
"Pause": "暫停",
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
"Playback errors ({count})": "播放錯誤 ({count})",
|
|
24
25
|
"Playback failed": "播放失敗",
|
|
25
26
|
"Playback speed": "播放速度",
|
|
27
|
+
"Previous episode": "上一集",
|
|
26
28
|
"Put the subtitles in the picture": "將字幕嵌入畫面",
|
|
27
29
|
"Put the subtitles in the video": "將字幕嵌入影片",
|
|
28
30
|
"Quality": "畫質",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="@emotion/react/types/css-prop" />
|
|
2
2
|
import type { ReactNode, Ref } from 'react'
|
|
3
3
|
import type { ViewportBox } from '../source-feature'
|
|
4
|
-
import type { HostFullscreen } from '../video-player'
|
|
4
|
+
import type { EpisodeNavigation, HostFullscreen } from '../video-player'
|
|
5
5
|
|
|
6
6
|
import { Children, Fragment, isValidElement, useEffect, useRef } from 'react'
|
|
7
7
|
import { css } from '@emotion/react'
|
|
@@ -139,10 +139,11 @@ export type ChromeProps = {
|
|
|
139
139
|
fullscreen?: HostFullscreen
|
|
140
140
|
/** False leaves the last ending out of the skip offer. */
|
|
141
141
|
endingOffered: boolean
|
|
142
|
+
episodeNavigation?: EpisodeNavigation
|
|
142
143
|
children?: ReactNode
|
|
143
144
|
}
|
|
144
145
|
|
|
145
|
-
export const Chrome = ({ ref, onVideoRef, onSubtitleRef, overlay, controls, shortcuts, fullscreen, endingOffered, children }: ChromeProps) => {
|
|
146
|
+
export const Chrome = ({ ref, onVideoRef, onSubtitleRef, overlay, controls, shortcuts, fullscreen, endingOffered, episodeNavigation, children }: ChromeProps) => {
|
|
146
147
|
const player = usePlayer()
|
|
147
148
|
const hideUI = usePlayer((state) => state.hideUI)
|
|
148
149
|
const setHideUI = usePlayer((state) => state.setHideUI)
|
|
@@ -324,7 +325,7 @@ export const Chrome = ({ ref, onVideoRef, onSubtitleRef, overlay, controls, shor
|
|
|
324
325
|
))}
|
|
325
326
|
{controls === false ? null : (
|
|
326
327
|
<HostKeepsFullscreen value={!!fullscreen}>
|
|
327
|
-
<ControlBar shortcuts={shortcuts} root={root} fullscreen={fullscreen} />
|
|
328
|
+
<ControlBar shortcuts={shortcuts} root={root} fullscreen={fullscreen} episodeNavigation={episodeNavigation} />
|
|
328
329
|
</HostKeepsFullscreen>
|
|
329
330
|
)}
|
|
330
331
|
{/* Not tied to `hideUI`: it says what to do next, and it is on screen for nine seconds. */}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="@emotion/react/types/css-prop" />
|
|
2
2
|
import type { RefObject } from 'react'
|
|
3
3
|
import type { PlayerMedia } from '../media'
|
|
4
|
-
import type { HostFullscreen } from '../video-player'
|
|
4
|
+
import type { EpisodeNavigation, HostFullscreen } from '../video-player'
|
|
5
5
|
|
|
6
6
|
import { useCallback, useEffect, useRef, useState } from 'react'
|
|
7
7
|
import { css } from '@emotion/react'
|
|
8
|
-
import { Maximize, Minimize, Pause, Play, RotateCcw } from 'lucide-react'
|
|
8
|
+
import { Maximize, Minimize, Pause, Play, RotateCcw, SkipBack, SkipForward } from 'lucide-react'
|
|
9
9
|
|
|
10
10
|
import { linearToLogVolume, logToLinearVolume } from '../../utils/volume-utils'
|
|
11
11
|
import { formatMediaTime } from '../../utils/time'
|
|
@@ -89,7 +89,7 @@ const style = css`
|
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
.play, .sound, .time, .errors, .subtitles, .settings, .picture-in-picture, .full-screen {
|
|
92
|
+
.play, .previous, .next, .sound, .time, .errors, .subtitles, .settings, .picture-in-picture, .full-screen {
|
|
93
93
|
display: flex;
|
|
94
94
|
align-items: center;
|
|
95
95
|
|
|
@@ -107,7 +107,7 @@ const style = css`
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
.play, .sound, .errors, .subtitles, .settings, .picture-in-picture, .full-screen {
|
|
110
|
+
.play, .previous, .next, .sound, .errors, .subtitles, .settings, .picture-in-picture, .full-screen {
|
|
111
111
|
border-radius: 4px;
|
|
112
112
|
|
|
113
113
|
padding: 8px;
|
|
@@ -122,7 +122,7 @@ const style = css`
|
|
|
122
122
|
|
|
123
123
|
/* .armed is the hover of a control letting its click through, which takes no pointer events
|
|
124
124
|
of its own and so is never :hover */
|
|
125
|
-
:hover, &.armed {
|
|
125
|
+
:hover, &:focus-visible, &.armed {
|
|
126
126
|
background-color: ${colors.hover};
|
|
127
127
|
}
|
|
128
128
|
|
|
@@ -164,10 +164,11 @@ const style = css`
|
|
|
164
164
|
`
|
|
165
165
|
|
|
166
166
|
export const ControlBar = (
|
|
167
|
-
{ shortcuts = 'window', root, fullscreen: host }: {
|
|
167
|
+
{ shortcuts = 'window', root, fullscreen: host, episodeNavigation }: {
|
|
168
168
|
shortcuts?: 'window' | 'player'
|
|
169
169
|
root: RefObject<HTMLDivElement | null>
|
|
170
170
|
fullscreen?: HostFullscreen
|
|
171
|
+
episodeNavigation?: EpisodeNavigation
|
|
171
172
|
},
|
|
172
173
|
) => {
|
|
173
174
|
const player = usePlayer()
|
|
@@ -369,6 +370,50 @@ export const ControlBar = (
|
|
|
369
370
|
<span>{format(ended ? LABELS.replayKey : paused ? LABELS.playKey : LABELS.pauseKey)}</span>
|
|
370
371
|
}
|
|
371
372
|
/>
|
|
373
|
+
{episodeNavigation?.previous
|
|
374
|
+
? (() => {
|
|
375
|
+
const previousLabel = episodeNavigation.previous.title?.trim() || format(LABELS.previousEpisode)
|
|
376
|
+
return (
|
|
377
|
+
<TooltipDisplay
|
|
378
|
+
id='previous-episode'
|
|
379
|
+
tooltipPlace='top-start'
|
|
380
|
+
text={
|
|
381
|
+
<button
|
|
382
|
+
className='previous'
|
|
383
|
+
type='button'
|
|
384
|
+
onClick={() => episodeNavigation.previous?.request()}
|
|
385
|
+
aria-label={previousLabel}
|
|
386
|
+
>
|
|
387
|
+
<SkipBack />
|
|
388
|
+
</button>
|
|
389
|
+
}
|
|
390
|
+
toolTipText={<span>{previousLabel}</span>}
|
|
391
|
+
/>
|
|
392
|
+
)
|
|
393
|
+
})()
|
|
394
|
+
: null}
|
|
395
|
+
{episodeNavigation?.next
|
|
396
|
+
? (() => {
|
|
397
|
+
const nextLabel = episodeNavigation.next.title?.trim() || format(LABELS.nextEpisode)
|
|
398
|
+
return (
|
|
399
|
+
<TooltipDisplay
|
|
400
|
+
id='next-episode'
|
|
401
|
+
tooltipPlace='top-start'
|
|
402
|
+
text={
|
|
403
|
+
<button
|
|
404
|
+
className='next'
|
|
405
|
+
type='button'
|
|
406
|
+
onClick={() => episodeNavigation.next?.request()}
|
|
407
|
+
aria-label={nextLabel}
|
|
408
|
+
>
|
|
409
|
+
<SkipForward />
|
|
410
|
+
</button>
|
|
411
|
+
}
|
|
412
|
+
toolTipText={<span>{nextLabel}</span>}
|
|
413
|
+
/>
|
|
414
|
+
)
|
|
415
|
+
})()
|
|
416
|
+
: null}
|
|
372
417
|
<Sound ref={setVolumeElement}/>
|
|
373
418
|
<div className='time'>
|
|
374
419
|
{formatMediaTime(seekingTo ?? currentTime, duration)}
|