|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Embed Video
I am building a website and require a video (mpeg) embedded onto the web page.
I have succesfully finished this but because of the time it takes to download the file, is it possible to display an image, selection of images in the background of the media player while the video is downloading? I am using windows media player |
|
#2
|
|||
|
|||
|
What code are you using to embed it right now?
__________________
Corey Merchant Account Info | Toll-Free Numbers and more My Merchant Account Blog | Merchant Account Show |
|
#3
|
|||
|
|||
|
<object classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
width="298" height="176" id="MediaPlayer" type="application/x-oleobject"> <param name="FileName" value="testmpeg.mpeg"> <param name="autostart" value="1"> <param name="showcontrols" value="0"> <param name="loop" value="1"> <embed src="testmpeg.mpeg" width="298" height="176" type="application/x-mplayer2" autostart="1" showcontrols="0"> </embed> </object> |
|
#4
|
|||
|
|||
|
I think this might show what you want, edit the path & the height/width accordingly:
<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="ey.mp3"> <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="ey.mp3" WIDTH=320 HEIGHT=286 type="application/x-mplayer2" name=MediaPlayer autostart=1 showcontrols=0 showstatusbar=1 autorewind=1 showdisplay=0> </EMBED></OBJECT> If not - let me know & I will try to find some more params. |
|
#5
|
|||
|
|||
|
Hi, do you think the code above will work for people with Windows Media Player 8? I have a code below, but my client, says it doesn't work. I don't have WM8 (I have WM9), so I can't test it myself.
Code:
<OBJECT ID="MediaPlayer" classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" width="<? print $vW; ?>" height="<? print $vH; ?>" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject"> <PARAM NAME="FileName" VALUE="<? print $VIDEO_DIR.$vFile.$EXT_WM; ?>"> <PARAM NAME="TransparentAtStart" Value="true"> <PARAM NAME="AutoStart" Value="true"> <PARAM NAME="AnimationatStart" Value="false"> <PARAM NAME="ShowControls" Value="true"> <PARAM NAME="ShowStatusBar" Value="false"> <PARAM NAME="ShowPositionControls" Value="true"> <PARAM NAME="ShowTracker" Value="true"> <PARAM NAME="autoSize" Value="false"> <PARAM NAME="displaySize" Value="0"> <Embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="<? print $VIDEO_DIR.$vFile.$EXT_WM; ?>" Name=MediaPlayer AutoStart=1 Width=<? print $vW; ?> Height=<? print $vH; ?> transparentAtStart=0 animationAtStart=0 ShowControls=1 ShowStatusBar=0 ShowPositionControls=1 ShowTracker=1 autoSize=0 displaySize=0></embed> </OBJECT> Can you help me? I need a code that embeds asf/wmv files into the web page, where the version of WM is 8. (You may ignore the code between the <? ?> tags. They're PHP scripts, for those who doesn't know it.)
__________________
JP |
|
#6
|
|||
|
|||
|
I honestly am not to certain, but I think that it has to do with:
Code:
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" But after looking at this site: http://www.dismec.unige.it/testi/fad01/wmp.html - I would think that 5,1 is version 5.1 ? My version is 9.00.00.3128 - so I do not know if that has anything to do with it. I got that code from: http://www.streamingmedia.com/ actually a while back. I never really went back to update it but they might have a few other solutions as well |
![]() |
| Viewing: Dev Shed Forums > Web Design > Web Design Help > Embed Video |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|