Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Can't get Captions to work

4 replies [Last post]
Reply

I seem to be having some difficulty in getting captions to work properly with BOTR.

I'm following the instructions listed here: http://www.longtailvideo.com/support/bits-on-the-run/15987/add-custom-flashvars-to-the-player

I'm using the following page as a test case: http://www.derekhardwick.com/junk/longtail2.html

<script type="text/javascript" src="http://content.bitsontherun.com/players/r18NlbhA-6oe8c8Eb.js"></script>
<script type="text/javascript">
  botr_r18NlbhA_6oe8c8Eb.addVariable("plugins","captions");
  botr_r18NlbhA_6oe8c8Eb.addVariable("captions.file","http://www.derekhardwick.com/junk/Auction_Animation.srt");
  botr_r18NlbhA_6oe8c8Eb.addVariable("captions.back","true");
</script>

As you can see I've defined the captions plugin (which loads), I've specified the captions file (which doesn't load), and given the captions a box with captions.back.

Using "captions" or "captions-2" makes no difference, neither does using a relative path or a full URL for the file location. I'm kind of stuck...

The end goal is to define the subtitle files not in the page itself, but in the "Custom Properties" of the video.

Any help is greatly appreciated, If I can get this working you'll almost certainly have a new BOTR customer shortly!

Thanks,

-Derek

Reply

You're probably running into crossdomain security issues; you will need to have a crossdomain.xml file in the root of your website to be able to load captions.

The exact details are explained here: http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12541/crossdomain-file-loading...

You might be interested to know that we're planning to add captions support in the dashboard in a future release (no exact time frame yet).

Reply

Yep, crossdomain.xml was the answer. Thanks!

We currently have about 50+ videos, but will be including subtitles for most of them in 9+ languages. Managing this from the dashboard would be fantastic.

Anyhow, thanks again.

Reply

Until I saw this post, I didn't "get" what your help pages were saying about cross-domain XML - not least because my first attempt used SRT files ... maybe this sounds stupid but I thought, "Well, I'm not using cross-domain XML, I'm using SRT ! And it's hosted on the same domain as my web page that has the BOTR player page in it ... so it doesn't apply to me, right ?". No - it seems like it does because whichever type of caption file you use, your Flash player has to get it from my domain, right ? That makes it "cross-domain". Yes ?

So this in my own crossdomain.xml file by trying to restrict access to just the BOTR site like this: <allow-access-from domain="*.bitsontherun.com" /> ... but it doesn't work. What am I doing wrong ?

Reply

Roger, both the domain of the page and the player (botr) need to be whitelisted.

Note that as of this week, captions can be uploaded directly into the dashboard though. No more external hosting, no more crossdomain issues.

Post new comment

  • Allowed HTML tags: <code> <blockquote> <em> <strong> <strike> <ul> <li> <ol>
  • You may post code using <code>...</code> .
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options