View Full Version : frame size for windows media player
cstv
3rd September 2003, 13:09
is there a way to force windows media player to open a video clip at 100%?
i know how to do this within the player, but i'm the one creating the content in this case, so is there a tag i can put on the link to the file that will tell the player to show at 100% rather than resizing?
tia,
mark.
dacquinh
3rd September 2003, 13:46
In the OBJECT TAG
<PARAM NAME="displaySize" Value="0">
<PARAM NAME="Autosize" Value="1">
In the EMBED TAG
autoSize="1",
displaySize="0"
DislaySize will keep the video at original size. Autosize will override the width/height settings.
I write this down by heart so it could be slightly erroneous.
Hope this helps
Hendrik
Gary MacKenzie
3rd September 2003, 14:00
try this quick hack of some code i found on microsofts site.
copy all the text after the asterixs *** into a file and call it anything.htm
then load anything.htm
*********************************
<SCRIPT LANGUAGE="JavaScript">
with (document) {
writeln('<OBJECT');
writeln(' ID="mediaPlayer"');
writeln(' CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"');
writeln(
'CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"');
writeln(' STANDBY="Loading Microsoft Windows Media Player components..."');
writeln(' TYPE="application/x-oleobject">');
writeln('<PARAM NAME="fileName" VALUE="http://www.avtech.demon.co.uk/download/keeba.wmv">');
writeln('<PARAM NAME="animationatStart" VALUE="true">');
writeln('<PARAM NAME="transparentatStart" VALUE="true">');
writeln('<PARAM NAME="autoStart" VALUE="true">');
writeln('<PARAM NAME="showControls" VALUE="true">');
writeln('<EMBED TYPE="application/x-mplayer2"');
writeln(' PLUGINSPAGE="http://microsoft.com/windows/mediaplayer/en/download/"');
writeln(' ID=mediaPlayer');
writeln(' NAME="mediaPlayer"');
writeln(' DISPLAYSIZE="4"'); // Fit To Size
writeln(' AUTOSIZE="-1"');
writeln(' BGCOLOR="darkblue"');
writeln(' SHOWCONTROLS="-1" ');
writeln(' SHOWTRACKER="-1"');
writeln(' SHOWDISPLAY="0"');
writeln(' SHOWSTATUSBAR="-1"');
writeln(' VIDEOBORDER3D="-1"');
writeln(' WIDTH=320');
writeln(' HEIGHT=313');
writeln(' AUTOSTART="-1" ');
writeln(' DESIGNTIMESP="5311"');
writeln(' >');
writeln('</EMBED>');
writeln('</OBJECT><P>');
}
</SCRIPT>
cstv
3rd September 2003, 19:16
thanks for the tips guys - greatly apreciated.
mark.
vBulletin v3.6.0, Copyright ©2000-2010, Jelsoft Enterprises Ltd.