This commit is contained in:
Xes
2025-08-14 22:39:38 +02:00
parent 3641e93527
commit 5403f346e3
3370 changed files with 327179 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Source files"
},
{
"label": "Player mode",
"description": "Select the layout of the player.",
"options": [
{
"label": "Minimalistic"
},
{
"label": "Full"
},
{
"label": "Transparent"
}
]
},
{
"label": "Fit to wrapper"
},
{
"label": "Enable controls",
"description": "Controls allow the user to for instance pause the audio"
},
{
"label": "Enable autoplay",
"description": "With autoplay the audio starts to play immediately. If autoplay is disabled the user presses a play button to start the audio."
},
{
"label": "Play audio (Readspeaker)",
"default": "Play audio"
},
{
"label": "Pause audio (Readspeaker)",
"default": "Pause audio"
},
{
"label": "Audio content name",
"default": "Audio"
},
{
"label": "Audio not supported message",
"default": "Your browser does not support this audio"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "الملفات المبدئية"
},
{
"label": "وضع مشغل الصوت",
"description": "اختيار نوع مشغل الصوت",
"options": [
{
"label": "مصغر"
},
{
"label": "مكبر"
},
{
"label": "Transparent"
}
]
},
{
"label": "ملء الحاوية"
},
{
"label": "تفعيل ادوات التحكم",
"description": "ادوات التحكم تسمح للمستخدم على سبيل المثال وقف الصوت"
},
{
"label": "تفعيل التشغيل التلقائي",
"description": "مع التشغيل التلقائي يبدأ الصوت للعب على الفور. إذا تم تعطيل التشغيل التلقائي يقوم المستخدم بالضغط على زر التشغيل لبدء الصوت"
},
{
"label": "Play audio (Readspeaker)",
"default": "Play audio"
},
{
"label": "Pause audio (Readspeaker)",
"default": "Pause audio"
},
{
"label": "اسم ملف الصوت",
"default": "Audio"
},
{
"label": "Audio not supported message",
"default": "Your browser does not support this audio"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Изходни файлове"
},
{
"label": "Режим на плейъра",
"description": "Изберете оформлението на плейъра.",
"options": [
{
"label": "Минималистичен"
},
{
"label": "Пълен"
},
{
"label": "Прозрачен"
}
]
},
{
"label": "Напаснат към рамката"
},
{
"label": "Активиране на контролите",
"description": "Контролите позволяват на потребителя например да постави на пауза на звука"
},
{
"label": "Активиране на автоматичното възпроизвеждане",
"description": "С автоматичното пускане аудиото започва да се възпроизвежда веднага. Ако функцията за автоматично пускане е забранена, потребителят натиска бутон за възпроизвеждане, за да стартира аудиото."
},
{
"label": "Play audio (Readspeaker)",
"default": "Play audio"
},
{
"label": "Pause audio (Readspeaker)",
"default": "Pause audio"
},
{
"label": "Заглавие на аудио съдържанието",
"default": "Аудио"
},
{
"label": "Аудиото не поддържа съобщение",
"default": "Вашият браузър не поддържа това аудио"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Izvorni fajlovi"
},
{
"label": "Izgled playera",
"description": "Odaberi izgled playera.",
"options": [
{
"label": "Minimalno"
},
{
"label": "Potpuno"
},
{
"label": "Transparentno"
}
]
},
{
"label": "Fit to wrapper"
},
{
"label": "Omogući kontrolu",
"description": "Kontrole omogućavaju korisniku da pauzira audio."
},
{
"label": "Omogući autoplay",
"description": "Sa autoplay audio počinje automatski. Ako je autoplay onemogućen korisnik pritiskom na play pusta audio."
},
{
"label": "Play audio (Readspeaker)",
"default": "Pusti audio"
},
{
"label": "Pause audio (Readspeaker)",
"default": "Pauziraj audio"
},
{
"label": "Naziv audio sadržaja",
"default": "Audio"
},
{
"label": "Poruka za audio koji nije podržan.",
"default": "Vaš pretraživač ne podržava ovaj audio"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Source files"
},
{
"label": "Player mode",
"description": "Select the layout of the player.",
"options": [
{
"label": "Minimalistic"
},
{
"label": "Full"
},
{
"label": "Transparent"
}
]
},
{
"label": "Fit to wrapper"
},
{
"label": "Enable controls",
"description": "Controls allow the user to for instance pause the audio"
},
{
"label": "Enable autoplay",
"description": "With autoplay the audio starts to play immediately. If autoplay is disabled the user presses a play button to start the audio."
},
{
"label": "Play audio (Readspeaker)",
"default": "Play audio"
},
{
"label": "Pause audio (Readspeaker)",
"default": "Pause audio"
},
{
"label": "Audio content name",
"default": "Audio"
},
{
"label": "Audio not supported message",
"default": "Your browser does not support this audio"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Zdrojové soubory"
},
{
"label": "Režim přehrávače",
"description": "Vyberte rozložení přehrávače.",
"options": [
{
"label": "Minimalistický"
},
{
"label": "Úplný"
},
{
"label": "Transparentní"
}
]
},
{
"label": "Přizpůsobit obalu"
},
{
"label": "Povolit ovládací prvky",
"description": "Ovládací prvky umožňují uživateli například pozastavit zvuk"
},
{
"label": "Povolit automatické přehrávání",
"description": "Při automatickém přehrávání se zvuk začne okamžitě přehrávat. Pokud je automatické přehrávání zakázáno, uživatel spustí zvuk stiskem tlačítka přehrávání."
},
{
"label": "Přehrát zvuk (Čtecí zařízení)",
"default": "Přehrát zvuk"
},
{
"label": "Pozastavit zvuk (Čtecí zařízení)",
"default": "Pozastavit zvuk"
},
{
"label": "Název zvukového obsahu",
"default": "Audio"
},
{
"label": "Zvuk není podporován",
"default": "Váš prohlížeč nepodporuje tento zvuk"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Vælg fil"
},
{
"label": "Indstillinger for afspilning",
"description": "Vælg layout for afspiller.",
"options": [
{
"label": "Minimalistisk"
},
{
"label": "Fuld"
},
{
"label": "Gennemsigtig"
}
]
},
{
"label": "Tilpas til område"
},
{
"label": "Aktiver kontrolpanel",
"description": "Kontrolpanel giver mulighed for at pause afspilningen."
},
{
"label": "Aktiver automatisk afspilning",
"description": "Vælges automatisk afspilning startes afspilningen med det samme. Hvis antomatisk afspilning er fravalgt skal brugeren starte afspilning ved at klikke på playknappen."
},
{
"label": "Play audio (Readspeaker)",
"default": "Play audio"
},
{
"label": "Pause audio (Readspeaker)",
"default": "Pause audio"
},
{
"label": "Audio fil-navn",
"default": "Audio"
},
{
"label": "Audio not supported message",
"default": "Your browser does not support this audio"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Audioquellen"
},
{
"label": "Audioplayermodus",
"description": "Wähle den gewünschten Audioplayer-Modus.",
"options": [
{
"label": "Minimaler Funktionsumfang"
},
{
"label": "Voller Funktionsumfang"
},
{
"label": "Transparent"
}
]
},
{
"label": "Verfügbaren Platz nutzen"
},
{
"label": "Steuerelemente aktivieren",
"description": "Dies gibt dem Nutzer z. B. die Möglichkeit, das Abspielen zu pausieren."
},
{
"label": "Automatische Wiedergabe aktivieren",
"description": "Bei aktivierter, automatischer Wiedergabe wird die Tondatei sofort abgespielt. Ansonsten wird die Tondatei erst abgespielt, wenn der Nutzer den Play-Button gedrückt hat."
},
{
"label": "Audio abspielen (Screenreader)",
"default": "Audio abspielen"
},
{
"label": "Audio pausieren (Screenreader)",
"default": "Audio pausieren"
},
{
"label": "Name des Audioinhalts",
"default": "Audio"
},
{
"label": "Hinweis, dass keine Tonaufnahmen abgespielt werden können",
"default": "Dein Browser unterstützt diese Tondatei nicht."
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Αρχεία προέλευσης"
},
{
"label": "Μορφή προγράμματος αναπαραγωγής",
"description": "Επιλέξτε την εμφάνιση του προγράμματος αναπαραγωγής.",
"options": [
{
"label": "Απλή"
},
{
"label": "Πλήρης"
},
{
"label": "Διάφανη"
}
]
},
{
"label": "Προσαρμογή στην περιοχή ενσωμάτωσης"
},
{
"label": "Ενεργοποίηση κουμπιών ελέγχου προγράμματος αναπαραγωγής",
"description": "Τα κουμπιά ελέγχου του προγράμματος αναπαραγωγής επιτρέπουν στον χρήστη π.χ. να κάνει παύση (pause) του ήχου"
},
{
"label": "Ενεργοποίηση αυτόματης αναπαραγωγής",
"description": "Με την αυτόματη αναπαραγωγή ο ήχος ξεκινά να παίζει αυτόματα. Εάν η αυτόματη αναπαραγωγή είναι απενεργοποιημένη, ο χρήστης χρειάζεται να πατήσει το κουμπί αναπαραγωγής (play) του ήχου για να ξεκινήσει ο ήχος να παίζει."
},
{
"label": "Αναπαραγωγή ήχου (Ακουστική υποβοήθηση)",
"default": "Αναπαραγωγή ήχου"
},
{
"label": "Παύση ήχου (Ακουστική υποβοήθηση)",
"default": "Παύση ήχου"
},
{
"label": "Όνομα περιεχομένου ήχου",
"default": "Ήχος"
},
{
"label": "Μήνυμα μη υποστηριζόμενου αρχείου ήχου",
"default": "Ο φυλλομετρητής δεν υποστηρίζει το συγκεκριμένο αρχείο ήχου"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Archivo de origen"
},
{
"label": "Modo reproductor",
"description": "Seleccione el diseño del reproductor.",
"options": [
{
"label": "Minimalista"
},
{
"label": "Completo"
},
{
"label": "Transparente"
}
]
},
{
"label": "Ajustar al marco"
},
{
"label": "Habilitar controles",
"description": "Los controles permiten al usuario por ejemplo pausar el audio"
},
{
"label": "Habilitar reproduccion automatica",
"description": "Con la reproducción automática el audio empieza a reproducirse inmediatamente. Si la reproducción automática está deshabilitada, el usuario presiona un botón de reproducción para iniciar el audio."
},
{
"label": "Reproducir audio (Readspeaker)",
"default": "Reproducir audio"
},
{
"label": "Pausar audio (Readspeaker)",
"default": "Pausar audio"
},
{
"label": "Nombre contenido de audio",
"default": "Audio"
},
{
"label": "Mensaje de audio no permitido",
"default": "Su navegador no es compatible con este audio"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Archivo de origen"
},
{
"label": "Modo reproductor",
"description": "Seleccione el diseño del reproductor.",
"options": [
{
"label": "Minimalista"
},
{
"label": "Completo"
},
{
"label": "Transparente"
}
]
},
{
"label": "Ajustar al marco"
},
{
"label": "Habilitar controles",
"description": "Los controles permiten al usuario por ejemplo pausar el audio"
},
{
"label": "Habilitar reproduccion automatica",
"description": "Con la reproducción automática el audio empieza a reproducirse inmediatamente. Si la reproducción automática está deshabilitada, el usuario presiona un botón de reproducción para iniciar el audio."
},
{
"label": "Reproducir audio (Herramienta de lectura)",
"default": "Reproducir audio"
},
{
"label": "Pausar audio (Herramienta de lectura)",
"default": "Pausar audio"
},
{
"label": "Nombre contenido de audio",
"default": "Audio"
},
{
"label": "Mensaje de audio no permitido",
"default": "Su navegador no es compatible con este audio"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Lähtefailid"
},
{
"label": "Pleieri teema",
"description": "Vali pleieri teema.",
"options": [
{
"label": "Minimalistlik"
},
{
"label": "Täielik"
},
{
"label": "Läbipaistev"
}
]
},
{
"label": "Täida ümbrisraam"
},
{
"label": "Luba juhised",
"description": "Juhised võimaldavad kasutajal näiteks heli mängimist peatada."
},
{
"label": "Luba automaatne esitus",
"description": "Automaatse esituse korral hakkab heli koheselt mängima. Kui automaatne esitus on keelatud, tuleb kasutajal ise nupuvajutusega heli mängimine käivitada."
},
{
"label": "Play audio (Readspeaker)",
"default": "Play audio"
},
{
"label": "Pause audio (Readspeaker)",
"default": "Pause audio"
},
{
"label": "Helisisu nimi",
"default": "Heli"
},
{
"label": "Heli ei ole toetatud sõnum",
"default": "Su brauser ei toeta heli esitamist"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Iturri-fitxategiak"
},
{
"label": "Erreprodukzio modua",
"description": "Hautatu erreproduktorearen itxura.",
"options": [
{
"label": "Minimalista"
},
{
"label": "Osoa"
},
{
"label": "Gardena"
}
]
},
{
"label": "Markora egokitu"
},
{
"label": "Gaitu kontrolak",
"description": "Kontrolek aukera ematen diote erabiltzaileari, adibidez, audioa gelditzeko"
},
{
"label": "Gaitu erreprodukzio automatikoa",
"description": "Erreprodukzio automatikoarekin audioa instantean hasiko da. Erreprodukzio automatikoa ez ba dago aktibatua erabiltzaileak erreproduzitzeko botoia sakatu behar du audio hasteko."
},
{
"label": "Erreproduzitu audioa (irakugailuetarako)",
"default": "Erreproduzitu audioa"
},
{
"label": "Pausatu audioa (irakugailuetarako)",
"default": "Pausatu audioa"
},
{
"label": "Audio edukiaren izena",
"default": "Audioa"
},
{
"label": "Audioa ez da onartzen mezua",
"default": "Zure nabigatzaileak ez du onartzen audio hau."
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Lähdetiedostot"
},
{
"label": "Soittimen teema",
"description": "Valitse soittimelle ulkoasu.",
"options": [
{
"label": "Minimalistinen"
},
{
"label": "Täysi"
},
{
"label": "Läpinäkyvä"
}
]
},
{
"label": "Sovita kehykseen"
},
{
"label": "Salli säätimet",
"description": "Säätimillä käyttäjä voi esimerkiksi pysäyttää äänen toiston."
},
{
"label": "Salli automaattinen toisto",
"description": "Toisto alkaa välittömästi. Muussa tapauksessa käyttäjä aloittaa toiston."
},
{
"label": "Toista audio (Readspeakerilla)",
"default": "Toista audio"
},
{
"label": "Keskeytä audio (Readspeakerilla)",
"default": "Keskeytä audio"
},
{
"label": "Äänisisällön nimi",
"default": "Ääni"
},
{
"label": "Ääntä ei tueta -viesti",
"default": "Selaimesi ei tue tätä ääntä."
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Fichiers sources"
},
{
"label": "Mode d'affichage du lecteur",
"description": "Selectionnez le mode d'affichage du lecteur.",
"options": [
{
"label": "Minimaliste"
},
{
"label": "Complet"
},
{
"label": "Transparent"
}
]
},
{
"label": "Remplir le contenant"
},
{
"label": "Activer les contrôles",
"description": "Les contrôles permettent, par exemple, à l'utilisateur de mettre le son sur pause"
},
{
"label": "Activer le démarrage automatique",
"description": "Le son démarre directement sans appuyer sur un bouton. Si cette option est désactivée, l'utilisateur doit appuyer sur le bouton PLAY pour lancer la lecture."
},
{
"label": "Play audio (Readspeaker)",
"default": "Play audio"
},
{
"label": "Pause audio (Readspeaker)",
"default": "Pause audio"
},
{
"label": "Nom du contenu audio",
"default": "Audio"
},
{
"label": "Message L'audio n'est pas supporté",
"default": "Votre navigateur ne supporte pas l'audio"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Source files"
},
{
"label": "Player mode",
"description": "Select the layout of the player.",
"options": [
{
"label": "Minimalistic"
},
{
"label": "Full"
},
{
"label": "Transparent"
}
]
},
{
"label": "Fit to wrapper"
},
{
"label": "Enable controls",
"description": "Controls allow the user to for instance pause the audio"
},
{
"label": "Enable autoplay",
"description": "With autoplay the audio starts to play immediately. If autoplay is disabled the user presses a play button to start the audio."
},
{
"label": "Play audio (Readspeaker)",
"default": "Play audio"
},
{
"label": "Pause audio (Readspeaker)",
"default": "Pause audio"
},
{
"label": "Audio content name",
"default": "Audio"
},
{
"label": "Audio not supported message",
"default": "Your browser does not support this audio"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Source files"
},
{
"label": "Player mode",
"description": "Select the layout of the player.",
"options": [
{
"label": "Minimalistic"
},
{
"label": "Full"
},
{
"label": "Transparent"
}
]
},
{
"label": "Fit to wrapper"
},
{
"label": "Enable controls",
"description": "Controls allow the user to for instance pause the audio"
},
{
"label": "Enable autoplay",
"description": "With autoplay the audio starts to play immediately. If autoplay is disabled the user presses a play button to start the audio."
},
{
"label": "Play audio (Readspeaker)",
"default": "Play audio"
},
{
"label": "Pause audio (Readspeaker)",
"default": "Pause audio"
},
{
"label": "Audio content name",
"default": "Audio"
},
{
"label": "Audio not supported message",
"default": "Your browser does not support this audio"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "File sorgenti"
},
{
"label": "Modalità player",
"description": "Seleziona il layout del player.",
"options": [
{
"label": "Minimalista"
},
{
"label": "Intero"
},
{
"label": "Trasparente"
}
]
},
{
"label": "Adatta al contenitore"
},
{
"label": "Attiva controlli",
"description": "I controlli consentono all'utente di mettere, per esempio, in pausa l'audio"
},
{
"label": "Attiva autoplay",
"description": "Con l'autoplay l'audio si avvia immediatamente. Se l'autoplay è disattivato l'utente premerà il pulsante play per avviarlo."
},
{
"label": "Avvia l'audio (lettore vocale)",
"default": "Avvia l'audio"
},
{
"label": "Metti in pausa l'audio (lettore vocale)",
"default": "Metti in pausa l'audio"
},
{
"label": "Nome del contenuto dell'audio",
"default": "Audio"
},
{
"label": "Messaggio per audio non supportato",
"default": "Il tuo browser non supporta questo file audio"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "ソースファイル"
},
{
"label": "プレーヤーモード",
"description": "プレーヤーのレイアウトを選択してください。",
"options": [
{
"label": "最小限"
},
{
"label": "最大"
},
{
"label": "透明"
}
]
},
{
"label": "ラッパーに合わせる"
},
{
"label": "コントロールを有効にします",
"description": "コントロールを使用すると、たとえば、オーディオを一時停止することができます"
},
{
"label": "自動再生を有効にします",
"description": "自動再生では、オーディオはすぐに再生を開始します。 自動再生が無効になっている場合、ユーザーは再生ボタンを押して音声を開始します。"
},
{
"label": "Play audio (Readspeaker)",
"default": "Play audio"
},
{
"label": "Pause audio (Readspeaker)",
"default": "Pause audio"
},
{
"label": "オーディオコンテンツ名",
"default": "オーディオ"
},
{
"label": "Audio not supported message",
"default": "Your browser does not support this audio"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Source files"
},
{
"label": "Player mode",
"description": "Select the layout of the player.",
"options": [
{
"label": "Minimalistic"
},
{
"label": "Full"
},
{
"label": "Transparent"
}
]
},
{
"label": "Fit to wrapper"
},
{
"label": "Enable controls",
"description": "Controls allow the user to for instance pause the audio"
},
{
"label": "Enable autoplay",
"description": "With autoplay the audio starts to play immediately. If autoplay is disabled the user presses a play button to start the audio."
},
{
"label": "Play audio (Readspeaker)",
"default": "Play audio"
},
{
"label": "Pause audio (Readspeaker)",
"default": "Pause audio"
},
{
"label": "Audio content name",
"default": "Audio"
},
{
"label": "Audio not supported message",
"default": "Your browser does not support this audio"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Lydfiler"
},
{
"label": "Avspiller modus",
"description": "Velg avspiller modus.",
"options": [
{
"label": "Minimal"
},
{
"label": "Full"
},
{
"label": "Gjennomsiktig"
}
]
},
{
"label": "Tilpass størrelse"
},
{
"label": "Slå på kontroller",
"description": "Kontrollene lar bl.a. brukeren sette lydavspillingen på pause"
},
{
"label": "Slå på automatisk avspilling",
"description": "Med automatisk avspilling begynner lyden å spille av seg selv med en gang. Hvis automatisk avspilling er avslått må brukeren trykke for å starte avspillingen."
},
{
"label": "Spill lyd (Readspeaker)",
"default": "Spill lyd"
},
{
"label": "Pause lyd (Readspeaker)",
"default": "Pause lyd"
},
{
"label": "Innholdsnavn for lyd",
"default": "Lyd"
},
{
"label": "Melding vist når lydkilde ikke er støttet",
"default": "Nettleseren din støtter ikke denne lydkilden"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Bronbestanden"
},
{
"label": "Spelermodus",
"description": "Selecteer de spelermodus.",
"options": [
{
"label": "Minimalistisch"
},
{
"label": "Volledig"
},
{
"label": "Onzichtbaar"
}
]
},
{
"label": "Past in de wrapper"
},
{
"label": "Activeer audiobediening",
"description": "De audiobediening stelt je in staat om bijvoorbeeld de audio te pauzeren."
},
{
"label": "Activeer automatisch afspelen",
"description": "Met autoplay begint de audio direct met afspelen. Als autoplay is uitgeschakeld, dan dient de gebruiker de audio te starten met de playknop ."
},
{
"label": "Play audio (Readspeaker)",
"default": "Play audio"
},
{
"label": "Pause audio (Readspeaker)",
"default": "Pause audio"
},
{
"label": "Audionaam",
"default": "Audio"
},
{
"label": "Statusbericht niet ondersteunde audio",
"default": "Je browser ondersteunt deze audio-opname niet"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Lydfiler"
},
{
"label": "Avspiller modus",
"description": "Velg avspiller modus.",
"options": [
{
"label": "Minimal"
},
{
"label": "Full"
},
{
"label": "Gjennomsiktig"
}
]
},
{
"label": "Tilpass størrelse"
},
{
"label": "Slå på kontrollar",
"description": "Kontrollane lar mellom anna brukaren setje lydavspelinga på pause"
},
{
"label": "Slå på automatisk avspeling",
"description": "Med automatisk avspeling begynner lyden å spele av seg sjølv med ein gang. Viss automatisk avspeling er slått av må brukaren trykkje for å starte avspelinga."
},
{
"label": "Play audio (Readspeaker)",
"default": "Play audio"
},
{
"label": "Pause audio (Readspeaker)",
"default": "Pause audio"
},
{
"label": "Innhaldsnamn for lyd",
"default": "Audio"
},
{
"label": "Audio not supported message",
"default": "Your browser does not support this audio"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Source files"
},
{
"label": "Player mode",
"description": "Select the layout of the player.",
"options": [
{
"label": "Minimalistic"
},
{
"label": "Full"
},
{
"label": "Transparent"
}
]
},
{
"label": "Fit to wrapper"
},
{
"label": "Enable controls",
"description": "Controls allow the user to for instance pause the audio"
},
{
"label": "Enable autoplay",
"description": "With autoplay the audio starts to play immediately. If autoplay is disabled the user presses a play button to start the audio."
},
{
"label": "Play audio (Readspeaker)",
"default": "Play audio"
},
{
"label": "Pause audio (Readspeaker)",
"default": "Pause audio"
},
{
"label": "Audio content name",
"default": "Audio"
},
{
"label": "Audio not supported message",
"default": "Your browser does not support this audio"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Arquivos fonte"
},
{
"label": "Modo do reprodutor",
"description": "Selecione o layout do reprodutor.",
"options": [
{
"label": "Minimalista"
},
{
"label": "Completo"
},
{
"label": "Transparente"
}
]
},
{
"label": "Preencher"
},
{
"label": "Habilitar controles",
"description": "Controles permitem que o usuário por exemplo, pause o áudio"
},
{
"label": "Habilitar reprodução automática",
"description": "O áudio é reproduzido automaticamente. Se a reprodução automática estiver desabilitada, o usuário deve pressionar o botão de reprodução para iniciar o áudio."
},
{
"label": "Play audio (Readspeaker)",
"default": "Play audio"
},
{
"label": "Pause audio (Readspeaker)",
"default": "Pause audio"
},
{
"label": "Nome do conteúdo de áudio",
"default": "Áudio"
},
{
"label": "Mensagem de áudio não suportado",
"default": "Seu navegador não suporta este áudio"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Source files"
},
{
"label": "Player mode",
"description": "Select the layout of the player.",
"options": [
{
"label": "Minimalistic"
},
{
"label": "Full"
},
{
"label": "Transparent"
}
]
},
{
"label": "Fit to wrapper"
},
{
"label": "Enable controls",
"description": "Controls allow the user to for instance pause the audio"
},
{
"label": "Enable autoplay",
"description": "With autoplay the audio starts to play immediately. If autoplay is disabled the user presses a play button to start the audio."
},
{
"label": "Play audio (Readspeaker)",
"default": "Play audio"
},
{
"label": "Pause audio (Readspeaker)",
"default": "Pause audio"
},
{
"label": "Audio content name",
"default": "Audio"
},
{
"label": "Audio not supported message",
"default": "Your browser does not support this audio"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Source files"
},
{
"label": "Player mode",
"description": "Select the layout of the player.",
"options": [
{
"label": "Minimalistic"
},
{
"label": "Full"
},
{
"label": "Transparent"
}
]
},
{
"label": "Fit to wrapper"
},
{
"label": "Enable controls",
"description": "Controls allow the user to for instance pause the audio"
},
{
"label": "Enable autoplay",
"description": "With autoplay the audio starts to play immediately. If autoplay is disabled the user presses a play button to start the audio."
},
{
"label": "Play audio (Readspeaker)",
"default": "Play audio"
},
{
"label": "Pause audio (Readspeaker)",
"default": "Pause audio"
},
{
"label": "Audio content name",
"default": "Audio"
},
{
"label": "Audio not supported message",
"default": "Your browser does not support this audio"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Исходный файл"
},
{
"label": "Режим плеера",
"description": "Выберите макет плеера.",
"options": [
{
"label": "Минималистичная эмблема"
},
{
"label": "Полная звуковая дорожка"
},
{
"label": "Прозрачный"
}
]
},
{
"label": "Расположить по всей горизонтали"
},
{
"label": "Разрешить контроль",
"description": "Контроль позволит пользователю, например, поставить аудио на паузу"
},
{
"label": "Разрешить автоматическое воспроизведение",
"description": "С автоматическим воспроизведением дорожка начнёт воспроизводиться сразу. Если автовоспроизведение запрещено, пользователю необходимо нажать кнопку воспроизведения самостоятельно."
},
{
"label": "Воспроизвести аудио (ассистирующие технологии)",
"default": "Воспроизвести аудио"
},
{
"label": "Пауза (ассистирующие технологии)",
"default": "Пауза"
},
{
"label": "Название контента аудио",
"default": "Аудио"
},
{
"label": "Сообщение об ошибке аудио",
"default": "Ваш браузер не поддерживает аудио"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Izvorne datoteke"
},
{
"label": "Predvajalnik",
"description": "Nastavitev videza predvajalnika.",
"options": [
{
"label": "Minimalističen"
},
{
"label": "Celoten"
},
{
"label": "Prosojno"
}
]
},
{
"label": "Prilagodi širini okna"
},
{
"label": "Onemogoči kontrolnike v predvajalniku.",
"description": "Kontrolniki na primer uporabniku dovoljujejo začasno prekinitev predvajanja."
},
{
"label": "Omogoči samodejno predvajanje",
"description": "Nastavitev samodejnega predvajanja. Neizbežno v primeru prosojnosti predvajalnika."
},
{
"label": "Predvajaj zvok",
"default": "Predvajaj zvok"
},
{
"label": "Zaustavi predvajanje",
"default": "Zaustavi predvajanje"
},
{
"label": "Naslov vsebine posnetka",
"default": "Zvočni posnetek"
},
{
"label": "Sporočilo o nepodprtosti zvočnega posnetka",
"default": "Spletni brskalnik ne podpira tega zvočnega posnetka."
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Source files"
},
{
"label": "Player mode",
"description": "Select the layout of the player.",
"options": [
{
"label": "Minimalistic"
},
{
"label": "Full"
},
{
"label": "Transparent"
}
]
},
{
"label": "Fit to wrapper"
},
{
"label": "Enable controls",
"description": "Controls allow the user to for instance pause the audio"
},
{
"label": "Enable autoplay",
"description": "With autoplay the audio starts to play immediately. If autoplay is disabled the user presses a play button to start the audio."
},
{
"label": "Play audio (Readspeaker)",
"default": "Play audio"
},
{
"label": "Pause audio (Readspeaker)",
"default": "Pause audio"
},
{
"label": "Audio content name",
"default": "Audio"
},
{
"label": "Audio not supported message",
"default": "Your browser does not support this audio"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Source files"
},
{
"label": "Player mode",
"description": "Select the layout of the player.",
"options": [
{
"label": "Minimalistic"
},
{
"label": "Full"
},
{
"label": "Transparent"
}
]
},
{
"label": "Fit to wrapper"
},
{
"label": "Enable controls",
"description": "Controls allow the user to for instance pause the audio"
},
{
"label": "Enable autoplay",
"description": "With autoplay the audio starts to play immediately. If autoplay is disabled the user presses a play button to start the audio."
},
{
"label": "Play audio (Readspeaker)",
"default": "Play audio"
},
{
"label": "Pause audio (Readspeaker)",
"default": "Pause audio"
},
{
"label": "Audio content name",
"default": "Audio"
},
{
"label": "Audio not supported message",
"default": "Your browser does not support this audio"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Source files"
},
{
"label": "Player mode",
"description": "Select the layout of the player.",
"options": [
{
"label": "Minimalistic"
},
{
"label": "Full"
},
{
"label": "Transparent"
}
]
},
{
"label": "Fit to wrapper"
},
{
"label": "Enable controls",
"description": "Controls allow the user to for instance pause the audio"
},
{
"label": "Enable autoplay",
"description": "With autoplay the audio starts to play immediately. If autoplay is disabled the user presses a play button to start the audio."
},
{
"label": "Play audio (Readspeaker)",
"default": "Play audio"
},
{
"label": "Pause audio (Readspeaker)",
"default": "Pause audio"
},
{
"label": "Audio content name",
"default": "Audio"
},
{
"label": "Audio not supported message",
"default": "Your browser does not support this audio"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Source files"
},
{
"label": "Player mode",
"description": "Select the layout of the player.",
"options": [
{
"label": "Minimalistic"
},
{
"label": "Full"
},
{
"label": "Transparent"
}
]
},
{
"label": "Fit to wrapper"
},
{
"label": "Enable controls",
"description": "Controls allow the user to for instance pause the audio"
},
{
"label": "Enable autoplay",
"description": "With autoplay the audio starts to play immediately. If autoplay is disabled the user presses a play button to start the audio."
},
{
"label": "Play audio (Readspeaker)",
"default": "Play audio"
},
{
"label": "Pause audio (Readspeaker)",
"default": "Pause audio"
},
{
"label": "Audio content name",
"default": "Audio"
},
{
"label": "Audio not supported message",
"default": "Your browser does not support this audio"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Source files"
},
{
"label": "Player mode",
"description": "Select the layout of the player.",
"options": [
{
"label": "Minimalistic"
},
{
"label": "Full"
},
{
"label": "Transparent"
}
]
},
{
"label": "Fit to wrapper"
},
{
"label": "Enable controls",
"description": "Controls allow the user to for instance pause the audio"
},
{
"label": "Enable autoplay",
"description": "With autoplay the audio starts to play immediately. If autoplay is disabled the user presses a play button to start the audio."
},
{
"label": "Play audio (Readspeaker)",
"default": "Play audio"
},
{
"label": "Pause audio (Readspeaker)",
"default": "Pause audio"
},
{
"label": "Audio content name",
"default": "Audio"
},
{
"label": "Audio not supported message",
"default": "Your browser does not support this audio"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Source files"
},
{
"label": "Player mode",
"description": "Select the layout of the player.",
"options": [
{
"label": "Minimalistic"
},
{
"label": "Full"
},
{
"label": "Transparent"
}
]
},
{
"label": "Fit to wrapper"
},
{
"label": "Enable controls",
"description": "Controls allow the user to for instance pause the audio"
},
{
"label": "Enable autoplay",
"description": "With autoplay the audio starts to play immediately. If autoplay is disabled the user presses a play button to start the audio."
},
{
"label": "Play audio (Readspeaker)",
"default": "Play audio"
},
{
"label": "Pause audio (Readspeaker)",
"default": "Pause audio"
},
{
"label": "Audio content name",
"default": "Audio"
},
{
"label": "Audio not supported message",
"default": "Your browser does not support this audio"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "Source files"
},
{
"label": "Player mode",
"description": "Select the layout of the player.",
"options": [
{
"label": "Minimalistic"
},
{
"label": "Full"
},
{
"label": "Transparent"
}
]
},
{
"label": "Fit to wrapper"
},
{
"label": "Enable controls",
"description": "Controls allow the user to for instance pause the audio"
},
{
"label": "Enable autoplay",
"description": "With autoplay the audio starts to play immediately. If autoplay is disabled the user presses a play button to start the audio."
},
{
"label": "Play audio (Readspeaker)",
"default": "Play audio"
},
{
"label": "Pause audio (Readspeaker)",
"default": "Pause audio"
},
{
"label": "Audio content name",
"default": "Audio"
},
{
"label": "Audio not supported message",
"default": "Your browser does not support this audio"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "来源档案"
},
{
"label": "播放方式",
"description": "选择播放器面板。",
"options": [
{
"label": "简约"
},
{
"label": "完整"
},
{
"label": "透明"
}
]
},
{
"label": "自适应画面"
},
{
"label": "启用控制项",
"description": "允许用户控制音频的播放,像是暂停。"
},
{
"label": "启用自动播放",
"description": "让画面载入后就开始播放,如果停用,使用者就必须点击播放按钮才能开始。"
},
{
"label": "Play audio (Readspeaker)",
"default": "Play audio"
},
{
"label": "Pause audio (Readspeaker)",
"default": "Pause audio"
},
{
"label": "音乐名称",
"default": "Audio"
},
{
"label": "无法播放时显示讯息",
"default": "你的浏览器不支持播放这个格式的音乐档案。"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "來源檔案"
},
{
"label": "播放方式",
"description": "選擇播放器面版。",
"options": [
{
"label": "簡約"
},
{
"label": "完整"
},
{
"label": "透明"
}
]
},
{
"label": "自適應畫面"
},
{
"label": "啟用控制項",
"description": "允許用戶控制音頻的播放,像是暫停。"
},
{
"label": "啟用自動播放",
"description": "讓畫面載入後就開始播放,如果停用,使用者就必須點擊播放按鈕才能開始。"
},
{
"label": "Play audio (Readspeaker)",
"default": "Play audio"
},
{
"label": "Pause audio (Readspeaker)",
"default": "Pause audio"
},
{
"label": "音樂名稱",
"default": "Audio"
},
{
"label": "無法播放時顯示訊息",
"default": "你的瀏覽器不支援播放這個格式的音樂檔案。"
}
]
}

View File

@@ -0,0 +1,49 @@
{
"semantics": [
{
"label": "來源檔案"
},
{
"label": "播放方式",
"description": "選擇播放器面版。",
"options": [
{
"label": "簡約"
},
{
"label": "完整"
},
{
"label": "透明"
}
]
},
{
"label": "自適應畫面"
},
{
"label": "啟用控制項",
"description": "允許用戶控制音頻的播放,像是暫停。"
},
{
"label": "啟用自動播放",
"description": "讓畫面載入後就開始播放,如果停用,使用者就必須點擊播放按鈕才能開始。"
},
{
"label": "Play audio (Readspeaker)",
"default": "Play audio"
},
{
"label": "Pause audio (Readspeaker)",
"default": "Pause audio"
},
{
"label": "音樂名稱",
"default": "Audio"
},
{
"label": "無法播放時顯示訊息",
"default": "你的瀏覽器不支援播放這個格式的音樂檔案。"
}
]
}

View File

@@ -0,0 +1,40 @@
{
"title": "Audio",
"contentType": "Media",
"description": "Simple library that displays an audio player.",
"majorVersion": 1,
"minorVersion": 4,
"patchVersion": 3,
"runnable": 1,
"machineName": "H5P.Audio",
"embedTypes": [
"iframe"
],
"author": "Joubel",
"coreApi": {
"majorVersion": 1,
"minorVersion": 19
},
"preloadedJs": [
{
"path": "scripts/audio.js"
}
],
"preloadedCss": [
{
"path": "styles/audio.css"
}
],
"preloadedDependencies": [
{
"machineName": "flowplayer",
"majorVersion": 1,
"minorVersion": 0
},
{
"machineName": "FontAwesome",
"majorVersion": 4,
"minorVersion": 5
}
]
}

View File

@@ -0,0 +1,386 @@
var H5P = H5P || {};
/**
* H5P audio module
*
* @external {jQuery} $ H5P.jQuery
*/
H5P.Audio = (function ($) {
/**
* @param {Object} params Options for this library.
* @param {Number} id Content identifier.
* @param {Object} extras Extras.
* @returns {undefined}
*/
function C(params, id, extras) {
H5P.EventDispatcher.call(this);
this.contentId = id;
this.params = params;
this.extras = extras;
this.toggleButtonEnabled = true;
// Retrieve previous state
if (extras && extras.previousState !== undefined) {
this.oldTime = extras.previousState.currentTime;
}
this.params = $.extend({}, {
playerMode: 'minimalistic',
fitToWrapper: false,
controls: true,
autoplay: false,
audioNotSupported: "Your browser does not support this audio",
playAudio: "Play audio",
pauseAudio: "Pause audio"
}, params);
this.on('resize', this.resize, this);
}
C.prototype = Object.create(H5P.EventDispatcher.prototype);
C.prototype.constructor = C;
/**
* Adds a minimalistic audio player with only "play" and "pause" functionality.
*
* @param {jQuery} $container Container for the player.
* @param {boolean} transparentMode true: the player is only visible when hovering over it; false: player's UI always visible
*/
C.prototype.addMinimalAudioPlayer = function ($container, transparentMode) {
var INNER_CONTAINER = 'h5p-audio-inner';
var AUDIO_BUTTON = 'h5p-audio-minimal-button';
var PLAY_BUTTON = 'h5p-audio-minimal-play';
var PLAY_BUTTON_PAUSED = 'h5p-audio-minimal-play-paused';
var PAUSE_BUTTON = 'h5p-audio-minimal-pause';
var self = this;
this.$container = $container;
self.$inner = $('<div/>', {
'class': INNER_CONTAINER + (transparentMode ? ' h5p-audio-transparent' : '')
}).appendTo($container);
var audioButton = $('<button/>', {
'class': AUDIO_BUTTON + " " + PLAY_BUTTON,
'aria-label': this.params.playAudio
}).appendTo(self.$inner)
.click( function () {
if (!self.isEnabledToggleButton()) {
return;
}
// Prevent ARIA from playing over audio on click
this.setAttribute('aria-hidden', 'true');
if (self.audio.paused) {
self.play();
}
else {
self.pause();
}
})
.on('focusout', function () {
// Restore ARIA, required when playing longer audio and tabbing out and back in
this.setAttribute('aria-hidden', 'false');
});
//Fit to wrapper
if (this.params.fitToWrapper) {
audioButton.css({
'width': '100%',
'height': '100%'
});
}
// cpAutoplay is passed from coursepresentation
if (this.params.autoplay) {
self.play();
}
//Event listeners that change the look of the player depending on events.
self.audio.addEventListener('ended', function () {
audioButton
.attr('aria-hidden', false)
.attr('aria-label', self.params.playAudio)
.removeClass(PAUSE_BUTTON)
.removeClass(PLAY_BUTTON_PAUSED)
.addClass(PLAY_BUTTON);
});
self.audio.addEventListener('play', function () {
audioButton
.attr('aria-label', self.params.pauseAudio)
.removeClass(PLAY_BUTTON)
.removeClass(PLAY_BUTTON_PAUSED)
.addClass(PAUSE_BUTTON);
});
self.audio.addEventListener('pause', function () {
audioButton
.attr('aria-hidden', false)
.attr('aria-label', self.params.playAudio)
.removeClass(PAUSE_BUTTON)
.addClass(PLAY_BUTTON_PAUSED);
});
this.$audioButton = audioButton;
//Scale icon to container
self.resize();
};
/**
* Resizes the audio player icon when the wrapper is resized.
*/
C.prototype.resize = function () {
// Find the smallest value of height and width, and use it to choose the font size.
if (this.params.fitToWrapper && this.$container && this.$container.width()) {
var w = this.$container.width();
var h = this.$container.height();
if (w < h) {
this.$audioButton.css({'font-size': w / 2 + 'px'});
}
else {
this.$audioButton.css({'font-size': h / 2 + 'px'});
}
}
};
return C;
})(H5P.jQuery);
/**
* Wipe out the content of the wrapper and put our HTML in it.
*
* @param {jQuery} $wrapper Our poor container.
*/
H5P.Audio.prototype.attach = function ($wrapper) {
$wrapper.addClass('h5p-audio-wrapper');
// Check if browser supports audio.
var audio = document.createElement('audio');
if (audio.canPlayType === undefined) {
// Try flash
this.attachFlash($wrapper);
return;
}
// Add supported source files.
if (this.params.files !== undefined && this.params.files instanceof Object) {
for (var i = 0; i < this.params.files.length; i++) {
var file = this.params.files[i];
if (audio.canPlayType(file.mime)) {
var source = document.createElement('source');
source.src = H5P.getPath(file.path, this.contentId);
source.type = file.mime;
audio.appendChild(source);
}
}
}
if (!audio.children.length) {
// Try flash
this.attachFlash($wrapper);
return;
}
if (this.endedCallback !== undefined) {
audio.addEventListener('ended', this.endedCallback, false);
}
audio.className = 'h5p-audio';
audio.controls = this.params.controls === undefined ? true : this.params.controls;
audio.preload = 'auto';
audio.style.display = 'block';
if (this.params.fitToWrapper === undefined || this.params.fitToWrapper) {
audio.style.width = '100%';
if (!this.isRoot()) {
// Only set height if this isn't a root
audio.style.height = '100%';
}
}
this.audio = audio;
if (this.params.playerMode === 'minimalistic') {
audio.controls = false;
this.addMinimalAudioPlayer($wrapper, false);
}
else if (this.params.playerMode === 'transparent') {
audio.controls = false;
this.addMinimalAudioPlayer($wrapper, true);
}
else {
audio.autoplay = this.params.autoplay === undefined ? false : this.params.autoplay;
$wrapper.html(audio);
}
// Set time to saved time from previous run
if (this.oldTime) {
this.seekTo(this.oldTime);
}
};
/**
* Attaches a flash audio player to the wrapper.
*
* @param {jQuery} $wrapper Our dear container.
*/
H5P.Audio.prototype.attachFlash = function ($wrapper) {
if (this.params.files !== undefined && this.params.files instanceof Object) {
for (var i = 0; i < this.params.files.length; i++) {
var file = this.params.files[i];
if (file.mime === 'audio/mpeg' || file.mime === 'audio/mp3') {
var audioSource = H5P.getPath(file.path, this.contentId);
break;
}
}
}
if (audioSource === undefined) {
$wrapper.addClass('h5p-audio-not-supported');
$wrapper.html(
'<div class="h5p-audio-inner">' +
'<div class="h5p-audio-not-supported-icon"><span/></div>' +
'<span>' + this.params.audioNotSupported + '</span>' +
'</div>'
);
if (this.endedCallback !== undefined) {
this.endedCallback();
}
return;
}
var options = {
buffering: true,
clip: {
url: window.location.protocol + '//' + window.location.host + audioSource,
autoPlay: this.params.autoplay === undefined ? false : this.params.autoplay,
scaling: 'fit'
},
plugins: {
controls: null
}
};
if (this.params.controls === undefined || this.params.controls) {
options.plugins.controls = {
fullscreen: false,
autoHide: false
};
}
if (this.endedCallback !== undefined) {
options.clip.onFinish = this.endedCallback;
options.clip.onError = this.endedCallback;
}
this.flowplayer = flowplayer($wrapper[0], {
src: "http://releases.flowplayer.org/swf/flowplayer-3.2.16.swf",
wmode: "opaque"
}, options);
};
/**
* Stop the audio. TODO: Rename to pause?
*
* @returns {undefined}
*/
H5P.Audio.prototype.stop = function () {
if (this.flowplayer !== undefined) {
this.flowplayer.stop().close().unload();
}
if (this.audio !== undefined) {
this.audio.pause();
}
};
/**
* Play
*/
H5P.Audio.prototype.play = function () {
if (this.flowplayer !== undefined) {
this.flowplayer.play();
}
if (this.audio !== undefined) {
this.audio.play();
}
};
/**
* @public
* Pauses the audio.
*/
H5P.Audio.prototype.pause = function () {
if (this.audio !== undefined) {
this.audio.pause();
}
};
/**
* @public
* Seek to audio position.
*
* @param {number} seekTo Time to seek to in seconds.
*/
H5P.Audio.prototype.seekTo = function (seekTo) {
if (this.audio !== undefined) {
this.audio.currentTime = seekTo;
}
};
/**
* @public
* Get current state for resetting it later.
*
* @returns {object} Current state.
*/
H5P.Audio.prototype.getCurrentState = function () {
if (this.audio !== undefined) {
const currentTime = this.audio.ended ? 0 : this.audio.currentTime;
return {
currentTime: currentTime
};
}
};
/**
* @public
* Disable button.
* Not using disabled attribute to block button activation, because it will
* implicitly set tabindex = -1 and confuse ChromeVox navigation. Clicks handled
* using "pointer-events: none" in CSS.
*/
H5P.Audio.prototype.disableToggleButton = function () {
this.toggleButtonEnabled = false;
if (this.$audioButton) {
this.$audioButton.addClass(H5P.Audio.BUTTON_DISABLED);
}
};
/**
* @public
* Enable button.
*/
H5P.Audio.prototype.enableToggleButton = function () {
this.toggleButtonEnabled = true;
if (this.$audioButton) {
this.$audioButton.removeClass(H5P.Audio.BUTTON_DISABLED);
}
};
/**
* @public
* Check if button is enabled.
* @return {boolean} True, if button is enabled. Else false.
*/
H5P.Audio.prototype.isEnabledToggleButton = function () {
return this.toggleButtonEnabled;
};
/** @constant {string} */
H5P.Audio.BUTTON_DISABLED = 'h5p-audio-disabled';

View File

@@ -0,0 +1,86 @@
[
{
"name": "files",
"type": "audio",
"importance": "high",
"label": "Source files",
"disableCopyright": true
},
{
"name": "playerMode",
"type": "select",
"importance": "low",
"label": "Player mode",
"description": "Select the layout of the player.",
"options": [
{
"value": "minimalistic",
"label": "Minimalistic"
},
{
"value": "full",
"label": "Full"
},
{
"value": "transparent",
"label": "Transparent"
}
],
"default": "minimalistic"
},
{
"name": "fitToWrapper",
"type": "boolean",
"importance": "low",
"label": "Fit to wrapper",
"default": false,
"descriptions": "Adjust audioplayer size to use available space"
},
{
"name": "controls",
"type": "boolean",
"importance": "low",
"label": "Enable controls",
"default": true,
"description": "Controls allow the user to for instance pause the audio"
},
{
"name": "autoplay",
"type": "boolean",
"importance": "low",
"label": "Enable autoplay",
"description": "With autoplay the audio starts to play immediately. If autoplay is disabled the user presses a play button to start the audio."
},
{
"name": "playAudio",
"type": "text",
"importance": "low",
"label": "Play audio (Readspeaker)",
"common": true,
"default": "Play audio"
},
{
"name": "pauseAudio",
"type": "text",
"importance": "low",
"label": "Pause audio (Readspeaker)",
"common": true,
"default": "Pause audio"
},
{
"name": "contentName",
"type": "text",
"importance": "low",
"label": "Audio content name",
"common": true,
"default": "Audio"
},
{
"name": "audioNotSupported",
"type": "text",
"label": "Audio not supported message",
"importance": "low",
"common": true,
"default": "Your browser does not support this audio"
}
]

View File

@@ -0,0 +1,112 @@
.h5p-audio-inner {
height: 100%;
width: 100%;
}
.h5p-course-presentation .h5p-element.h5p-audio-wrapper {
overflow: visible !important;
}
.h5p-audio-inner .h5p-audio-minimal-button {
font-family: 'H5PFontAwesome4';
display: block;
padding: 0.3em;
font-size: 0.8em;
border: 0.1em solid #fff;
border-radius: 50%;
cursor: pointer;
color: #fff;
text-decoration: none;
background: rgb(100,152,254); /* Old browsers */
background: -moz-linear-gradient(top, rgba(100,152,254,1) 0%, rgba(4,104,206,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(100,152,254,1)), color-stop(100%,rgba(4,104,206,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(100,152,254,1) 0%,rgba(4,104,206,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(100,152,254,1) 0%,rgba(4,104,206,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(100,152,254,1) 0%,rgba(4,104,206,1) 100%); /* IE10+ */
}
.h5p-audio-inner .h5p-audio-minimal-button:hover {
cursor: pointer;
}
.h5p-audio-inner .h5p-audio-minimal-button.h5p-audio-disabled {
background: -webkit-linear-gradient(top, rgba(177, 177, 177, 1) 0%, rgba(105, 105, 105, 1) 100%);
/* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(177, 177, 177, 1) 0%, rgba(105, 105, 105, 1) 100%);
/* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(177, 177, 177, 1) 0%, rgba(105, 105, 105, 1) 100%);
/* IE10+ */
color: #e9e9e4;
cursor: inherit;
pointer-events: none;
}
.h5p-audio-inner .h5p-audio-minimal-play:before {
content: "\f028";
}
.h5p-audio-inner .h5p-audio-minimal-play-paused,
.h5p-audio-inner .h5p-audio-minimal-pause {
background: rgb(38,170,68); /* Old browsers */
background: -moz-linear-gradient(top, rgba(38,170,68,1) 0%, rgba(0,112,10,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(38,170,68,1)), color-stop(100%,rgba(0,112,10,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(38,170,68,1) 0%,rgba(0,112,10,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(38,170,68,1) 0%,rgba(0,112,10,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(38,170,68,1) 0%,rgba(0,112,10,1) 100%); /* IE10+ */
}
.h5p-audio-inner .h5p-audio-minimal-play-paused:before {
content: "\f04b";
}
.h5p-audio-inner .h5p-audio-minimal-pause:before {
content: "\f04c";
}
.editor .h5p-audio-transparent {
position: relative;
box-sizing: border-box;
padding: -2px;
border: 2px dashed #0468ce;
border: 2px dashed rgba(4,104,206,0.5);
height: 100%;
}
.editor .h5p-audio-transparent:before {
color: #0468ce;
opacity: 0.25;
content: "\f028";
font-family: 'H5PFontAwesome4';
font-size: 1.0em;
text-decoration: none;
padding-left: 0.25em;
}
.h5p-audio-inner.h5p-audio-transparent .h5p-audio-minimal-button {
display: block;
cursor: pointer;
font-family: 'H5PFontAwesome4';
text-decoration: none;
font-size: 0.8em;
border: 0;
background: transparent;
border-radius: 0;
}
.h5p-audio-inner.h5p-audio-transparent .h5p-audio-minimal-button:hover {
background: #0580e2;
opacity: 0.2;
}
.h5p-audio-inner.h5p-audio-transparent .h5p-audio-minimal-button:active {
background: #0580e2;
opacity: 0.4;
}
.h5p-audio-inner.h5p-audio-transparent .h5p-audio-minimal-play:before,
.h5p-audio-inner.h5p-audio-transparent .h5p-audio-minimal-pause:before {
content: none;
}

View File

@@ -0,0 +1,54 @@
/** @namespace H5PUpgrades */
var H5PUpgrades = H5PUpgrades || {};
H5PUpgrades['H5P.Audio'] = (function () {
return {
1: {
3: function (parameters, finished, extras) {
// Use new copyright information if available. Fallback to old.
var copyright;
if (parameters.files && parameters.files.length > 0 && parameters.files[0] !== undefined) {
copyright = parameters.files[0].copyright;
}
else if (parameters && parameters.copyright !== undefined) {
copyright = parameters.copyright;
}
if (copyright) {
var years = [];
if (copyright.year) {
// Try to find start and end year
years = copyright.year
.replace(' ', '')
.replace('--', '-') // Try to check for LaTeX notation
.split('-');
}
var yearFrom = (years.length > 0) ? new Date(years[0]).getFullYear() : undefined;
var yearTo = (years.length > 0) ? new Date(years[1]).getFullYear() : undefined;
// Build metadata object
var metadata = {
title: copyright.title,
authors: (copyright.author) ? [{name: copyright.author, role: 'Author'}] : undefined,
source: copyright.source,
yearFrom: isNaN(yearFrom) ? undefined : yearFrom,
yearTo: isNaN(yearTo) ? undefined : yearTo,
license: copyright.license,
licenseVersion: copyright.version
};
extras = extras || {};
extras.metadata = metadata;
parameters.files.forEach(function (file) {
delete file.copyright;
});
}
// Done
finished(null, parameters, extras);
}
}
};
})();