Forum Moderators: phranque
I am putting a selection of educational video clips on a website using Windows Media Player. I am also planning to use SAMI closed captions for each clip whish will be shown in an iframe under the media player.
basically the user will be able to play a video by clicking on a hyperlink to a metafile on the page with a javascript 'onclick' event attached to it..like this:
<a class="cursor" onclick="Play('videos/meta/1.wvx');"><img src="videos/thumbs/1.JPG"> Text for clip 1a</a>
This then gets passed to a function:
function Play( videoFile )
{
Player.controls.stop();
Player.URL = videoFile;
SAMIDoc.src = videoFile;
}
and the video plays. I have got the video working ok but I cant get the .smi file to displat in the iframe.
The iframe is set up like so:
<iframe class="captions" title="SAMI Document View"
id="SAMIDoc" src=""
style="inset: yellow;">
</iframe>
and the metafile contains this:
<ASX version = "3.0">
<Entry>
<Ref href = "../SAMI_Demo.wmv"?SAMI="../SAMI_Script.dat" />
</Entry>
</ASX>
I hope this is all clear...can anyone help?
Thanks anyway.