At no additional charge, CaptionSync has the ability to show captions on someone else's YouTube videos via the CaptionSync Smart Player when a Transcription/Captioning request is made via our List of URLs feature. Learn how to use this feature in our Smart Player tutorial.
Captioning your own YouTube video is pretty straightforward. But YouTube does not allow you to add a caption file if you are not the video owner. Fortunately, there is a workaround for this. JW Player provides a nice way of adding captioning to any YouTube video. This tutorial shows you exactly how to do this.
If you are creating your own video content and publishing it on YouTube, it is relatively straightforward to add closed captions by uploading a caption file and associating it with the video. But YouTube does not allow you to add a caption file if you are not the video owner. Fortunately, JW Player from LongTail Video provides an easy way to add captions to any YouTube video. This tutorial walks you through the steps required to display closed captions for videos on YouTube, using JW Player and closed caption files in DFXP format.
To use this method you need just two things: JW Player version 5.6 or higher installed on a webserver, and caption file(s) in either DFXP or SRT format, stored on the same webserver. Download and installation instructions for JW Player can be found on the JW Player website.
Embedding Videos with Closed Captions:
- Upload the caption file that you have created for the video to the same webserver where you installed JW Player. You may want to have a separate subdirectory for all of your caption files.
- Create an embed code, that references your instance of JW Player, the YouTube video that you have captioned, and the caption file.
- Save the embed code on a web page on your website or learning management system.
Here is an example:
The four portions highlighted in Bold and Italic should be replaced with URLs specific to your installation and the particular video and caption file:
- jwplayer.js: The URL to the jwplayer.js file, installed as part of your JW Player installation.
- player.swf: This is the second of two required files for the JW Player installation.
- file: The first file parameter should be replaced with the URL of the video on YouTube. The second file parameter, under the ‘captions-2’ section, should be replaced with the URL to the caption file created for this video. Note that the caption file should be on the same webserver as the JW Player files. If they are not, you will need to use a crossdomain.xml file, as explained in this article about Crossdomain File Loading.
Once you have JW Player up and running on a webserver and your initial video displaying with captions, captioning other YouTube videos can be accomplished very simply by submitting the video to CaptionSync, uploading the caption file to your web server, and creating a new embed code with references to the YouTube video and the caption file.