PDA

View Full Version : Looking for a snippet of code regarding MPG


c0rbin
13th November 2003, 09:21 AM
Hey all,

I am trying to build an html page with an embedded .mpg (one that plays within the look and feel of the page).

Basically I am look for the .mpg equivelent of this object:




<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="320" HEIGHT="250" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0">

<PARAM NAME="controller" VALUE="TRUE">
<PARAM NAME="type" VALUE="video/quicktime">
<PARAM NAME="autoplay" VALUE="true">
<PARAM NAME="target" VALUE="myself">
<PARAM NAME="src" VALUE="MYMOVIE.mov">
<PARAM NAME="pluginspage" VALUE="http://www.apple.com/quicktime/download/indext.html">

<EMBED WIDTH="320" HEIGHT="250" CONTROLLER="TRUE" TARGET="myself" SRC="MYMOVIE.mov" type="video/quicktime" BGCOLOR="#000000" BORDER="0" PLUGINSPAGE="http://www.apple.com/quicktime/download/indext.html">
</EMBED>
</OBJECT>





Can anyone help?

Thanks in advance!

peptoabysmal
14th November 2003, 10:38 PM
I don't know if this helps, here's one for QuickTime 6 plugin and MPEG 4:


<OBJECT
CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab"
WIDTH="320"
HEIGHT="256">
<PARAM NAME="src" VALUE="My.mp4" >
<PARAM NAME="autoplay" VALUE="true" >
<EMBED
SRC="QTMimeType.pntg"
TYPE="image/x-macpaint"
PLUGINSPAGE="http://www.apple.com/quicktime/download"
QTSRC="My.mp4"
WIDTH="320"
HEIGHT="256"
AUTOPLAY="true" >
</EMBED>
</OBJECT>

Cecil
15th November 2003, 10:33 PM
Here's some code I found by googling when I needed to embed an mpg a while ago. It worked for me, but no guarantees. :D


<object id="MediaPlayer" width=320 height=286 classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
standby="Loading Microsoft® Windows® Media Player components..."
type="application/x-oleobject"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">
<PARAM NAME="filename" VALUE="_YOUR_MPG_FILE_.mpg">
<PARAM NAME="autoStart" VALUE="true"> <PARAM NAME="showControls" VALUE="true">
<param name="ShowStatusBar" value="true"> <PARAM NAME="Autorewind" VALUE="true">
<PARAM NAME="ShowDisplay" VALUE="false">
<EMBED SRC="_YOUR_MPG_FILE_.mpg" WIDTH=320 HEIGHT=286 type="application/x-mplayer2" name=MediaPlayer autostart=1 showcontrols=0 showstatusbar=1 autorewind=1 showdisplay=0>
</EMBED></OBJECT>