From d4d39dc66cc5dfce0cac3677af018ba7a6ae22b3 Mon Sep 17 00:00:00 2001 From: Abdelouahab Djoudi Date: Fri, 23 Feb 2018 17:24:15 +0100 Subject: [PATCH 1/4] Update ar.json --- language/ar.json | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/language/ar.json b/language/ar.json index 17ca3c2a..7cfffb7c 100644 --- a/language/ar.json +++ b/language/ar.json @@ -21,7 +21,7 @@ ] }, { - "label":"Playback", + "label":"تشغيل", "fields":[ { "label":"التشغيل التلقائي الفيديو", @@ -92,42 +92,42 @@ ] }, { - "label":"Accessibility", + "label":"إمكانية الوصول", "fields":[ { - "label":"Add video track", + "label":"إضافة مسار الفيديو", "entity":"Track", "field":{ "label":"Track", "fields":[ { - "label":"Track label" + "label":"تتبع المسار" }, { - "label":"Type kind, refer to HTML living standard", - "default":"descriptions", + "label":"اكتب النوع، ارجع إلى HTML living standard", + "default":"الوصف", "options":[ { - "label":"Subtitles" + "label":"عناوين فرعية" }, { - "label":"Captions" + "label":"التسميات التوضيحية" }, { - "label":"Descriptions" + "label":"الوصف" }, { - "label":"Chapters" + "label":"فصول" } ] }, { - "label":"Track file (WebVTT)", + "label":"تتبع الملف (WebVTT)", "default":"en", "description":"Must be a valid BCP 47 language tag. If the kind attribute is set to subtitles, then srclang must be defined." }, { - "label":"Track file (WebVTT)" + "label":"تتبع الملف (WebVTT)" } ] } @@ -135,4 +135,4 @@ ] } ] -} \ No newline at end of file +} From 42b02a83431d38775457f3d8403086c7729c8dbd Mon Sep 17 00:00:00 2001 From: Oliver Tacke Date: Mon, 5 Mar 2018 18:47:21 +0100 Subject: [PATCH 2/4] HFP-1855 Add getHandlerName() There was no way for libraries using H5P.Video to determine the handler/player that was used. --- scripts/video.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/scripts/video.js b/scripts/video.js index a1b5f8a5..796379cd 100644 --- a/scripts/video.js +++ b/scripts/video.js @@ -18,6 +18,9 @@ H5P.Video = (function ($, ContentCopyrights, MediaCopyright, handlers) { // Ref youtube.js - ipad & youtube - issue self.pressToPlay = false; + // Reference to the handler + var handlerName = ''; + // Initialize event inheritance H5P.EventDispatcher.call(self); @@ -111,6 +114,16 @@ H5P.Video = (function ($, ContentCopyrights, MediaCopyright, handlers) { return info; }; + /** + * Get name of the video handler + * + * @public + * @returns {string} + */ + self.getHandlerName = function() { + return handlerName; + }; + // Resize the video when we know its aspect ratio self.on('loaded', function () { self.trigger('resize'); @@ -132,11 +145,13 @@ H5P.Video = (function ($, ContentCopyrights, MediaCopyright, handlers) { tracks: tracks, disableRemotePlayback: (parameters.visuals.disableRemotePlayback || false) }, parameters.l10n); + handlerName = handler.name; return; } if (handler === H5P.VideoHtml5) { html5Handler = handler; + handlerName = handler.name; } } From 51fb9f173334922b66d4adf15fcc306700477da8 Mon Sep 17 00:00:00 2001 From: Paal Joergensen Date: Mon, 23 Apr 2018 11:44:57 +0200 Subject: [PATCH 3/4] Minor Bump because of interface change in H5P.Video --- library.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library.json b/library.json index c7daa6e2..cce9cb73 100644 --- a/library.json +++ b/library.json @@ -6,8 +6,8 @@ "license": "MIT", "author": "Joubel", "majorVersion": 1, - "minorVersion": 3, - "patchVersion": 10, + "minorVersion": 4, + "patchVersion": 0, "runnable": 0, "coreApi": { "majorVersion": 1, @@ -39,4 +39,4 @@ "minorVersion": 0 } ] -} +} \ No newline at end of file From 1ab41ea71a00b2e9bc6ba41d92e29cdd2bc21811 Mon Sep 17 00:00:00 2001 From: Paal Joergensen Date: Mon, 23 Apr 2018 11:48:41 +0200 Subject: [PATCH 4/4] Patch before release --- library.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library.json b/library.json index cce9cb73..75cade00 100644 --- a/library.json +++ b/library.json @@ -7,7 +7,7 @@ "author": "Joubel", "majorVersion": 1, "minorVersion": 4, - "patchVersion": 0, + "patchVersion": 1, "runnable": 0, "coreApi": { "majorVersion": 1,