S
S
schein2014-06-16 13:31:12
JavaScript
schein, 2014-06-16 13:31:12

How to embed video with subtitles from Amara.org?

I created subtitles for YouTube videos on Amara.org.
Next, there is an option to embed video with subtitles:

<script type="text/javascript" src="http://s3.amazonaws.com/s3.www.universalsubtitles.org/embed.js">
(
  {"video_url": "http://www.youtube.com/watch?v=Gc2en3nHxA4"}
)
</script>

Here 's the embed guide.
I paste the code, but nothing comes up. Here is an example of a site with these subtitles.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
ixside, 2014-07-25
@schein

The link to the video must be specified in a special div tag as a data attribute.

<script type="text/javascript" src='http://amara.org/embedder-iframe'></script>
<div
class="amara-embed"
data-url="http://www.youtube.com/watch?v=Gc2en3nHxA4"
data-height="360px"
data-width="640px"></div>

The solution to your question can be found at the link:
http://jsbin.com/suwuliya/2/edit

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question