PDA

View Full Version : help with displaying a wmp video



Athos
11-29-2007, 06:33 PM
I'm doing a redux of a site at school and I need to put up a video on the site for the 'client'.

here is my code:

<object classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" width="320" height="290" align="middle" id="mediaplayer1" name="mediaplayer1" title="Condo tour">
<param name="FileName" value="videoTour.avi" />
<param name="AutoStart" value="False" />
<param name="ShowControls" value="True" />
<param name="ShowStatusBar" value="False" />
<param name="ShowDisplay" value="False" />
<param name="AutoRewind" value="True" />
<embed src="../videoTour.avi" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" width="320" height="290" autostart="False" align="middle" filename="videoTour.avi" showcontrols="True" showstatusbar="False" showdisplay="False" autorewind="True"></embed>
</object>

the problem is not that the media player doesn't show, but that it won't play the video.

Athos
12-11-2007, 05:57 PM
hey never mind the code was fine, you just need to have the video in the same folder as the page calling it:D

BLiZZaRD
12-11-2007, 06:47 PM
This may not be an issue because of your "client" but you should be wary of embedding for cross-browser compatibility.

You can see this site (http://joliclic.free.fr/html/object-tag/en/object-audio.html) for more information and compatibility work arounds for various file types.