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

Forums

/

Closed Caption Issues

No replies

Still a LOT confusion on how to get Closed Caption to work.

Took the source code from

http://www.longtailvideo.com/support/tutorials/Making-Video-Accessible

stripped out all but what was necessary to have both 'CC' and 'AD' work.
here is what I ended up with:
*----------------------------------------------------------------------*

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html><head></head><body>
<script type="text/javascript" src="http://www.longtailvideo.com/jw/embed/swfobject.js"></script>
<script type="text/javascript" src="http://www.longtailvideo.com/jw/embed/javascript.js?v=2.2.5"></script>
<p class="media" id="previewvid">
<a href="/upload/corrie.mp4" title="download the excerpt in MP4 format">
<img src="/upload/corrie.jpg" width="470" height="300" alt="a small excerpt from ITV's Coronation Street" />
</a></p>

<script type="text/javascript">
var s1 = new SWFObject("http://player.longtailvideo.com/player.swf","ply","470","300","9","#FFFFFF");
s1.addParam("allowfullscreen","true");
s1.addParam("allowscriptaccess","always");
s1.addParam("seamlesstabbing","true");
s1.addParam("flashvars","file=http://www.longtailvideo.com/jw/upload/corrie.flv&image=http://www.longtailvideo.com/jw/upload/corri...");
s1.write("previewvid");
</script>

</body></html>

*----------------------------------------------------------------------*
I loaded it on my PC, ran it and both 'CC' and 'AD' work.
The example that is in the 'pink' box on that page has some errors and if copied, does not work.

I then changed the "file=http..." to my site :
file=http://www.danpahl.com/d1-v10.flv
It works and I get my video does play.
I actually still get the caption file from longtail.
I thought both flv & xml had to be on the same server with the same name?
I do not have any cross domain stuff loaded.

On the same page referenced at the top, they show the 'Timed Text XML' file which is:
*----------------------------------------------------------------------*

<tt xmlns="http://www.w3.org/2006/10/ttaf1">
<body>
<div xml:id="captions">
<p begin="00:08" end="00:10">- Nothing is going on.</p>
<p begin="00:10" end="00:12.5">You liar!</p>
<p begin="00:13" end="00:15">Are you?</p>
<p begin="00:17" end="00:20">Violet, please!<br/>- I am not your babe!</p>
<p begin="00:24" end="00:29">You stupid cow,<br/>look what you gone and done now, ay.</p>
<p begin="00:34" end="00:36">Vi, please.<br/>- Leave me alone!</p>
<p begin="00:36" end="00:38.5">- We need to talk.<br/>- Jason, are you deaf?!</p>
<p begin="00:41" end="00:43">What's going on?</p>
<p begin="00:43" end="00:45">Get out there and try to salvage this!</p>
</div>
</body>
</tt>

*----------------------------------------------------------------------*
I save it on my site with the same name 'd1-v10.xml'. I change the "captions.file=http..."
to point to my file. both the flv & xml are on the same server.

I do not get the closed caption to work.
Is the above closed caption format correct?

If not, is there a 10-15 line example so I have a good idea what it looks like?
If I have to, heaven forbid, I can code it by hand for now.

Thanks
Dan