@banou/media-player 0.10.32 → 0.10.34

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 CHANGED
@@ -364,10 +364,12 @@ host page shows, for another:
364
364
 
365
365
  They are shown in the closest language the player has: Latin American Spanish (`es-419`, for every `es-*`), Brazilian
366
366
  Portuguese (`pt-BR`, for every `pt-*`), French, German, Italian, Russian, Japanese, Korean, Simplified and Traditional
367
- Chinese (`zh-Hans`, `zh-Hant`), Turkish and Polish, else English. The numbers in them are written as the tag writes them
367
+ Chinese (`zh-Hans`, `zh-Hant`), Turkish, Polish, Arabic and Hebrew, else English. The numbers in them are written as the tag writes them
368
368
  (`es-AR` gives `0,5x`, `es-419` itself `0.5x`), and track languages are named in it, even when the labels are English
369
369
  (`en-DE` gives `0,5x`). A language's text is fetched the first time a player shows it, with FormatJS (`@formatjs/intl`),
370
370
  and the labels are English until it has arrived. A player given no `language`, or one it does not have, fetches neither.
371
+ The bar and the seek bar stay left to right in every language: a host page written right to left puts `dir="ltr"` on the
372
+ player's parent.
371
373
 
372
374
  Each language is `src/lib/locales/<tag>.json`, keyed by the English of `src/lib/labels.ts`; a unit test holds every
373
375
  file to FormatJS's `verify` against that English.
@@ -451,6 +453,11 @@ its published name so it stays an honest consumer.
451
453
  document.addEventListener('fullscreenchange', () => { player.fullscreen = !!document.fullscreenElement })
452
454
  player.addEventListener('chapterschange', () => console.log(player.chapters))
453
455
  ```
456
+
457
+ A page with something of its own in the corner of the far player's skip offer sets `player.endingOffered = false` to
458
+ take the offer of the last ending away. The read is the far player's own word, from after its render, with a
459
+ `chapterschange` event following each change: wait for the false before drawing over that corner, and a player that
460
+ cannot take it (a bare element, an older version) stays true.
454
461
  - `src/lib/react/` the player component, its chrome, and the hooks.
455
462
  - `src/lib/labels.ts` the chrome's text in English, and `src/lib/locales/` its other languages.
456
463
 
@@ -0,0 +1,52 @@
1
+ //#region src/lib/locales/ar.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/he.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 };