In this page you can find instructions on how to embed videos or playlists from Youtube or Dotsub into your website or any other locations. These playlists and videos with fully proofread translations in several languages can be found in the Video Repository wiki page and in the Linguistic Team Youtube Channel.
Embedding YouTube videos into your website:
Instructions to play the link with your subtitles:
- open the video link
- select your subtitles in the CC function
- click on embedded and then select "old code"
- copy-paste the code segment that includes the video link and subs reference and substitute your language code in the end, ex: "en" for english
Advanced embedding options
You can personalize player options when a video is embedded. A list of options can be found here.
For example, you have to append 'cc_load_policy=1' to the URL to load the subtitles automatically and '&cc_lang_pref=es" to display the subtitles in Spanish by default. You'll find a more detailed description of this process here
In order to embed a playlist, use the same embedding code as for a video but substitute the video ID for the playlist ID, which is the code of letters and numbers on the playlist url. Your code would be something like this:
<html><head></head><body> ... <html><head></head><body> is only needed if you are building your site pages from scratch;
<iframe width="560" height="315" ... frameborder="0" allowfullscreen></iframe> describes the frame where the videos will show;
src="http://www.youtube.com/embed/playlist?list=PLA0583982DAC8FDDB is the Youtube content inside the frame;
&cc_load_policy=1&cc_lang_pref=lt is necessary for the, in this case, Lithuanian subtitles to play automatically;
Embedding dotSUB videos into your website:
- open the video link
- In the "Share" panel, you'll can copy/paste the embedding code according to the video size of your choice.
To display the video in your language automatically, you have to find the language code of your choice. Please consult this table to find it. Once you have your language code, simply append "/xxx" to your URL, where xxx is your language code.
<iframe src="http://dotsub.com/media/651bf2b8-e222-443f-b1c9-bef709b10dd4/e/s" frameborder="0" width="320" height="272"></iframe>
<iframe src="http://dotsub.com/media/651bf2b8-e222-443f-b1c9-bef709b10dd4/e/s/fin" frameborder="0" width="320" height="272"></iframe>
where "/fin" was added to the end of the url to display the video with finnish subtitles.