Video.js: Embed the Audio Description Plugin with a Video.js Player on Your Web Page

Once your media file has been transcribed by 3Play Media you can embed an interactive transcript along with your Video.js player on your webpage. To get started, follow the steps below...

Content Publishing must first be enabled in your 3Play Media account.
See more information on enabling content publishing in your 3Play account.

 

Step 1- Open your HTML editor 

Open the application you use to build and edit your webpages.

 

Step 2- Add the Video.js embed code 

Your Video.js embed code should look similar to the example below once added to a new or existing page.  Make sure you include a video id below. You will need to enter it when creating your Audio Description Plugin Template in Step 4.

Note that the links to the media file and Video.js player package will be unique to your embed code.

<html>
<head>
<link href="http://vjs.zencdn.net/6.2.0/video-js.css" rel="stylesheet">
</head>
<body>
<video id="ad-video" class="video-js" controls preload="auto" width="640" height="264"
poster="MY_VIDEO_POSTER.jpg" data-setup="{}">
<source src="http://yoursite.com/words-of-wilderness.mp4" type='video/mp4'>
</video>
<script src="http://vjs.zencdn.net/6.2.0/video.js"></script>
</body>
</html>

See more information regarding embedding media files using Video.js.

 

Step 3- Log into your 3Play Media account

3play_login.jpg

Step 4- Create New Plugin Template

Navigate to Settings > Plugin Templates and click +Create Plugin Template. See more information on how to create a Plugin Templates.

 

> For Player select VideoJs from the drop down menu. 
> For Plugin Type choose Audio Description. 
> For Player ID choose a player ID that matches the video id you created in Step 2.

Interactive Transcript Plugin Template Creation

 

Step 5- Select your 3Play Media file

Go to the My Files page in your 3Play Media account.
Click on the file associated with the content you want to embed on a webpage using a Video.js player.

Select your 3Play Media file

 

Step 6- Click Publish Plugin

Click the Publish Plugin button located above your list of files.

Click Publish Plugin button

Step 7- Select a Plugin Template

Select Your Plugin and from the drop down menu that appears select the plugin template created in step 4.

Select Interactive Transcript Plugin Template 

Step 8- Copy the 3Play Media plugin embed code

Once highlighted blue, copy this code.
This is your 3Play Media audio description embed code. 

Copy interactive transcript embed code

 

Step 9- Paste the audio description embed code into your HTML

Go back to your HTML code.
Paste the 3Play plugin embed code below the video embed code in the <body> of your HTML.

Below is an example of what the audio description plugin embed code should look like.   

<script type="text/javascript" src="//static.3playmedia.com/p/projects/11111/files/1111111/plugins/11111.js"></script> 

Your HTML will similar to the example below when complete.

<html>
<head>
<link href="http://vjs.zencdn.net/6.2.0/video-js.css" rel="stylesheet">
</head>
<body>
<video id="ad-video" class="video-js" controls preload="auto" width="640" height="264"
poster="MY_VIDEO_POSTER.jpg" data-setup="{}">
<source src="http://yoursite.com/words-of-wilderness.mp4" type='video/mp4'>
</video>
<script src="http://vjs.zencdn.net/6.2.0/video.js"></script>

<script type="text/javascript" src="//static.3playmedia.com/p/projects/11111/files/1111111/plugins/11111.js"></script> 
</body>
</html>

 

Step 10- Publish your Video.js player with the audio description plugin

Save your new HTML code and publish your audio description plugin along with your Video.js player!  Enjoy!

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk