"Embed Windows Media Player Plugin"
For anyone who would like to make some presentations similar to a ms powerpoint only made with adventure maker, they might want to embed a video or two. Thus my brain gave birth to an idea.
- Code: Select all
Action.ChangeDisplayResolution "1"
Action.AddComponent "MediaPlayer.MediaPlayer.1", "Wmp1"
Component("Wmp1").Visible = True
Component("Wmp1").Width = 9600
Component("Wmp1").Height = 7200
Component("Wmp1").FileName = "External\Movie.wmv"
It all works execpt for the *.FileName section, wich is the part that actually loads the media.
As far as HTML code, here's what it would look like embeded in a webpage:
- Code: Select all
<OBJECT ID="MediaPlayer" WIDTH="192" HEIGHT="190" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="videofilename.wmv">
<PARAM name="autostart" VALUE="false">
<PARAM name="ShowControls" VALUE="true">
<param name="ShowStatusBar" value="false">
<PARAM name="ShowDisplay" VALUE="false">
<EMBED TYPE="application/x-mplayer2" SRC="videofilename.wmv" NAME="MediaPlayer"
WIDTH="192" HEIGHT="190" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"> </EMBED>
</OBJECT>
code refference:
http://www.mediacollege.com/video/forma ... embed.html
Could anyone tell me what I'm doing wrong?
Thanks once again for all the help and support on this awsome website!
TKG