Click to See Complete Forum and Search --> : Video Clip on CD


BSquared18
03-21-2003, 06:39 AM
I'd like to develop a self-paced training program to be put on a CD, using HTML and Javascript coding.

I'd like to include some video clips on the CD. Can you suggest what Javascript or other code could be used to create a window that the user would click on and then see the video in the window? I assume the Quicktime, Windows Media Player, or other format would have to be chosen to show the videos. Is that right? What format would be preferable for this application?

Thanks!

Bill B.

gil davis
03-21-2003, 07:27 AM
Start with the Windows MediaPlayer SDK at http://search.microsoft.com/gomsuri.asp?n=9&c=rp_Results&siteid=us/dev&target=http://msdn.microsoft.com/library/en-us/wmplay/mmp_sdk/usingjscript.asp

There is probably something similar at QuickTime.

BSquared18
03-21-2003, 09:14 AM
Thanks, Gil.

I took a quick look at the site. Although I'm not a programmer and the info I looked at is assuming programming knowledge, I'll see what I can do. I was hoping there was some kind of simple code someone could provide that would do the trick.

Bill B.

Beauchamp
03-21-2003, 10:38 AM
yo, here's what I used to embed the Windows' Media Player in a web page, with the option of starting the standalone WMP. Just replace my 'MVC-012V.MPG' filename with your own:

<html>
<head>
<title>Video Test Page (Beauchamp College)</title>
<script language="JavaScript">
<!--
if ( navigator.appName == "Netscape" )
{
navigator.plugins.refresh();
document.write("\x3C" + "applet MAYSCRIPT Code=NPDS.npDSEvtObsProxy.class" )
document.writeln(" WIDTH=5 HEIGHT=5 NAME=appObs\x3E \x3C/applet\x3E")
}
//-->
</script>
</head>
<body>
<p align="center">
<OBJECT ID="MediaPlayer"
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows Media Player components..."
TYPE="application/x-oleobject">

<PARAM NAME="FileName" VALUE="MVC-012V.MPG">
<PARAM NAME="AnimationatStart" VALUE="true">
<PARAM NAME="TransparentatStart" VALUE="true">
<PARAM NAME="AutoStart" VALUE="true">
<PARAM NAME="ShowControls" VALUE="1">

<Embed TYPE="application/x-mplayer2"
pluginspage="http://www.microsoft.com/windows95/downloads/contents/wurecommended
/s_wufeatured/mediaplayer/default.asp"
SRC="MVC-012V.MPG"
Name=MediaPlayer
ShowControls=1
Width=360
Height=180
>
</embed>
</OBJECT>

<BR><BR>
<a HREF="MVC-012V.MPG">
Start the streaming media presentation in the stand-alone player.</a></p>
</body>
</html>

All the best,

Beauchamp

BSquared18
03-21-2003, 02:18 PM
Beauchamp,

Thanks! That's really cool and exactly what I'm looking for.

Because it's a training application, I need audio as well as video. If I use a file that has an audio component, will Media Player automatically handle that using the code you provided?

Regards,

Bill B.

Beauchamp
03-24-2003, 03:57 AM
yep, if there is sound with your vid, as there is in mine, it should work fine.

This is quite an old piece of code now, it's calling version 5 of WMP. It should still work fine but there might be something more up to date on the Microsoft site. Leave you with it.

Cheers