Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* mediaelement a11y plugin * demo entry page optimization * added a11y to README.md * Gruntfile adjustment * added German translation to a11y/README.md
- Loading branch information
Showing
17 changed files
with
839 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<title>MediaElement.js 4.2 - Accessibility Plugin</title> | ||
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> | ||
<link rel="icon" href="favicon.ico" type="image/x-icon"> | ||
|
||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mediaelement/4.2.9/mediaelementplayer.css"> | ||
<link rel="stylesheet" href="../dist/a11y/a11y.css"> | ||
<link rel="stylesheet" href="demo.css"> | ||
</head> | ||
<body> | ||
<div id="container"> | ||
<h1>Accessibility Plugin</h1> | ||
<p><a href="index.html">Back to Main</a> </p> | ||
|
||
<h2>Video Player (w/o Voice-Over)</h2> | ||
<div class="media-wrapper"> | ||
<video id="player1" width="750" height="421" controls preload="none" playsinline | ||
data-video-description='[{"src": "https://video.aktion-mensch.de/magnolia/aktion-mensch-videoplayer/aktion-mensch_beispiel/aktion-mensch_beispiel_signlanguageVideo.mp4", "type": "video/mp4"}, {"src": "https://video.aktion-mensch.de/magnolia/aktion-mensch-videoplayer/aktion-mensch_beispiel/aktion-mensch_beispiel_signlanguageVideo.webm", "type": "video/webm"}, {"src": "https://video.aktion-mensch.de/magnolia/aktion-mensch-videoplayer/aktion-mensch_beispiel/aktion-mensch_beispiel_signlanguageVideo.ogv", "type": "video/ogv"}]' | ||
data-audio-description='[{"src": "https://video.aktion-mensch.de/magnolia/aktion-mensch_beispiel_audioDescription.mp3", "type": "audio/mp3"}]' | ||
> | ||
<source src="https://video.aktion-mensch.de/magnolia/aktion-mensch_beispiel_video.mp4" type="video/mp4" /> | ||
<source src="https://video.aktion-mensch.de/magnolia/aktion-mensch_beispiel_video.webm" type="video/webm" /> | ||
<source src="https://video.aktion-mensch.de/magnolia/aktion-mensch_beispiel_video.ogv" type="video/ogg" /> | ||
</video> | ||
</div> | ||
</div> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/mediaelement/4.2.9/mediaelement-and-player.min.js"></script> | ||
<script src="../dist/a11y/a11y.js"></script> | ||
<script> | ||
new MediaElementPlayer('player1', { | ||
features: ['playpause', 'current', 'progress', 'duration', 'volume', 'a11y', 'fullscreen'], | ||
}); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
'use strict'; | ||
|
||
if (mejs.i18n.de !== undefined) { | ||
mejs.i18n.de['mejs.a11y-audio-description'] = 'Audio Deskription An/Aus'; | ||
mejs.i18n.de['mejs.a11y-video-description'] = 'Video Deskription An/Aus'; | ||
} | ||
|
||
if (mejs.i18n.fr !== undefined) { | ||
mejs.i18n.fr['mejs.a11y-audio-description'] = 'Audio-description étendue On/Off'; | ||
mejs.i18n.fr['mejs.a11y-video-description'] = 'Langue des signes On/Off'; | ||
} | ||
|
||
if (mejs.i18n.nl !== undefined) { | ||
mejs.i18n.nl['mejs.a11y-audio-description'] = 'Audiobeschrijving Aan/Uit'; | ||
mejs.i18n.nl['mejs.a11y-video-description'] = 'Gebarentaal Aan/Uit'; | ||
} | ||
|
||
if (mejs.i18n.tr !== undefined) { | ||
mejs.i18n.tr['mejs.a11y-audio-description'] = 'Sesli betimleme değiştir'; | ||
mejs.i18n.tr['mejs.a11y-video-description'] = 'Görüntülü betimleme değişti'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
.mejs-video-description-button > button, | ||
.mejs__video-description-button > button, | ||
.mejs-audio-description-button > button, | ||
.mejs__audio-description-button > button { | ||
background-repeat: no-repeat; | ||
background-size: contain; | ||
opacity: 0.7; | ||
} | ||
|
||
.mejs-video-description-button.video-description-on > button, | ||
.mejs__video-description-button.video-description-on > button, | ||
.mejs-audio-description-button.audio-description-on > button, | ||
.mejs__audio-description-button.audio-description-on > button { | ||
opacity: 1; | ||
} | ||
|
||
.mejs-video-description-button > button, | ||
.mejs__video-description-button > button { | ||
background-image: url('video-description-icon.svg'); | ||
} | ||
|
||
.mejs-audio-description-button > button, | ||
.mejs__audio-description-button > button { | ||
background-image: url('audio-description-icon.svg'); | ||
} | ||
|
||
.mejs-volume-button.hidden, | ||
.mejs__volume-button.hidden { | ||
display: none; | ||
} | ||
|
||
.mejs-audio-description-player, | ||
.mejs__audio-description-player { | ||
display: none; | ||
} |
Oops, something went wrong.