2015-03-16 11:22:24 +00:00
|
|
|
---
|
|
|
|
title: Install and Configure the Nomensa Accessible Media Player in Drupal
|
2020-03-08 14:32:13 +00:00
|
|
|
date: 2012-07-14
|
2020-03-08 17:52:59 +00:00
|
|
|
excerpt:
|
|
|
|
This week I released the first version of the Nomensa Accessible Media Player
|
|
|
|
module for Drupal 7. Here's some instructions of how to install and configure
|
|
|
|
it.
|
2015-03-16 11:22:24 +00:00
|
|
|
tags:
|
2015-06-14 02:27:41 +00:00
|
|
|
- accessibility
|
|
|
|
- drupal
|
|
|
|
- drupal-planet
|
|
|
|
- nomensa
|
2015-03-16 11:22:24 +00:00
|
|
|
---
|
2015-06-18 07:58:56 +00:00
|
|
|
|
2020-03-08 17:52:59 +00:00
|
|
|
This week I released the first version of the Nomensa Accessible Media Player
|
|
|
|
module for Drupal 7. Here's some instructions of how to install and configure
|
|
|
|
it.
|
|
|
|
|
|
|
|
_The official documentation for this module is now located at
|
|
|
|
<https://www.drupal.org/node/2383447>. This post was accurate at the time of
|
|
|
|
writing, whereas the documentation page will be kept up to date with any future
|
|
|
|
changes._
|
2015-03-16 11:22:24 +00:00
|
|
|
|
|
|
|
## Initial configuration
|
|
|
|
|
|
|
|
### Download the Library
|
|
|
|
|
2020-03-08 17:52:59 +00:00
|
|
|
The library can be downloaded directly from GitHub, and should be placed within
|
|
|
|
you _sites/all/libraries/nomensa_amp_ directory.
|
|
|
|
|
2017-03-16 08:09:52 +00:00
|
|
|
```language-bash
|
2015-03-16 11:22:24 +00:00
|
|
|
drush dl libraries nomensa_amp
|
|
|
|
git clone https://github.com/nomensa/Accessible-Media-Player sites/all/libraries/nomensa_amp
|
|
|
|
cd sites/all/libraries/nomensa_amp
|
|
|
|
rm -rf Accessible-media-player_2.0_documentation.pdf example/ README.md
|
|
|
|
drush en -y nomensa_amp
|
2017-03-16 08:09:52 +00:00
|
|
|
```
|
2015-03-16 11:22:24 +00:00
|
|
|
|
|
|
|
### Configure the Module
|
|
|
|
|
2020-03-08 17:52:59 +00:00
|
|
|
Configure the module at <em>admin/config/media/nomensa-amp</em> and enable the
|
|
|
|
players that you want to use.
|
2015-03-16 11:22:24 +00:00
|
|
|
|
|
|
|
## Adding videos
|
|
|
|
|
|
|
|
Within your content add links to your videos. For example:
|
|
|
|
|
|
|
|
### YouTube
|
|
|
|
|
2017-03-16 08:09:52 +00:00
|
|
|
```language-html
|
|
|
|
<a href="http://www.youtube.com/watch?v=Zi31YMGmQC4">Checking colour contrast</a>
|
|
|
|
```
|
2015-03-16 11:22:24 +00:00
|
|
|
|
|
|
|
### Vimeo
|
|
|
|
|
2017-03-16 08:09:52 +00:00
|
|
|
```language-html
|
|
|
|
<a href="http://vimeo.com/33729937">Screen readers are strange, when you're a stranger by Leonie Watson</a>
|
|
|
|
```
|
2015-03-16 11:22:24 +00:00
|
|
|
|
|
|
|
## Adding captions
|
|
|
|
|
2020-03-08 17:52:59 +00:00
|
|
|
The best way that I can suggest to do this is to use a File field to upload your
|
|
|
|
captions file:
|
2015-03-16 11:22:24 +00:00
|
|
|
|
|
|
|
1. Add a File field to your content type;
|
2017-07-10 06:14:03 +00:00
|
|
|
1. On your page upload the captions file.
|
2020-03-08 17:52:59 +00:00
|
|
|
1. Right-click the uploaded file, copy the link location, and use this for the
|
|
|
|
path to your captions file.
|
2015-03-16 11:22:24 +00:00
|
|
|
|
|
|
|
For example:
|
2017-03-16 08:09:52 +00:00
|
|
|
|
|
|
|
```language-html
|
|
|
|
<a href="http://www.youtube.com/watch?v=Zi31YMGmQC4">Checking colour contrast</a> <a class="captions" href="http://oliverdavies.co.uk/sites/default/files/checking-colour-contrast-captions.xml">Captions for Checking Colour Contrast</a>
|
|
|
|
```
|
2015-03-16 11:22:24 +00:00
|
|
|
|
|
|
|
## Screencast
|
|
|
|
|
2017-07-10 06:14:03 +00:00
|
|
|
<div class="embed-container">
|
|
|
|
<iframe
|
|
|
|
src="https://player.vimeo.com/video/45731954"
|
|
|
|
width="500"
|
|
|
|
height="313"
|
|
|
|
frameborder="0"
|
|
|
|
webkitallowfullscreen
|
|
|
|
mozallowfullscreen
|
|
|
|
allowfullscreen>
|
|
|
|
</iframe>
|
|
|
|
</div>
|