We suggest that you make use of the media hosting service MediaHub, which provides embed codes that integrate some very useful accessibly features such as searchable captions. Media hosted outside of MediaHub can still use the same player as follows.
To embed a video on your page so that it will work across browsers, use the
mediaelement_wdn plugin. To use this plugin, you will need to do the following:
- Embed the video on your page with either the
- Give the
<video>element a class of
- Load the
<script>WDN.initializePlugin('mediaelement_wdn');</script>. Please note: You only need to run this script once per page. Putting it at the bottom of your content ensure that all players get loaded when ready.
<audio class="wdn_player" preload="auto" src="http://mediahub.unl.edu/uploads/e69c5690123db31675e38132303fd3ff.mp3"></audio> <script>WDN.initializePlugin('mediaelement_wdn');</script>
View a more detailed example of the audio player
<video class="wdn_player" src="http://mediahub.unl.edu/uploads/37bf38ddb70d3a2c460c166b5120269e.mp4" controls="controls" poster="http://itunes.unl.edu/thumbnails.php?url=http://mediahub.unl.edu/uploads/37bf38ddb70d3a2c460c166b5120269e.mp4"></video> <script>WDN.initializePlugin('mediaelement_wdn');</script>
View a more detailed example of the video player
There are many things to consider when it comes to accessibility and media.
- All media must have captions. UNL MediaHub makes this easy, by allowing you to order captions for video.
- Avoid auto-playing media: Media that automatically plays when a page is loaded can be confusing and unwanted.
- Keep flashes of light to a minimum. Excessive flashes and/or strobing effects can cause issues for people who are prone to seizures.
Media should be hosted on the unl.edu domain whenever possible (as opposed to YouTube, etc.) to ensure that it is available to all visitors. Some locations such as China or K–12 schools will block popular media hosting platforms such as YouTube or Vimeo. To ensure that everyone who visits your site can watch media, please host the content on unl.edu. An easy solution for hosting media at UNL is UNL MediaHub.