Click to See Complete Forum and Search --> : embedded media player


sanch3x
12-07-2004, 01:45 PM
Hey everyone

I am working on a website for work and I have to stream a video on the webpage. The problem is that there are many videos and they aren't all the same size (height and width wise.. no memory size). Thing is whenever a video is too big it disrupts the website's design and is pretty ugly. My only solution so far was to open the video in a new window with no layout but that's not really what my employer had in mind.

Is there a way to make the media player in the webpage have static height/width regardless of the size of the video? If it can help here's the script (real simple):

<script language="Javascript">

if( g_bNetscape )
{
document.writeln( "<applet mayscript code=WMPNS.WMP name=WMP1 width=300 height=200 mayscript >" );
}
</script>

<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" ID="WMP">
<param name="Name" VALUE="WMP1">
<param name="URL" VALUE="video.mpg">
</object>
</applet>

Any help would be appreciated! Thanks!

Seb

TheBearMay
12-07-2004, 02:07 PM
<param name="AllowChangeDisplaySize" value="0" /> should work for the Object version

sanch3x
12-09-2004, 10:29 AM
Thanks for the help but the media player still enlarges if the video has a different size... :S

TheBearMay
12-09-2004, 11:08 AM
Which version (applet or object) is doing it? If the object try adding the width and height information to the object tag. If it's the applet you may want to try and see if this works better:


<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" width="300" height="200" type="application/x-oleobject" id="WMP" >
<param name="AllowChangeDisplaySize" value="0" />
<param name="Filename" value="video.mpg" />
<embed pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" type="application/x-mplayer2" src="video.mpg" width="300" height="200" id="WMP1" />
</object>