Wednesday, September 22, 2010

How to resize a Windows Media Player video in FireFox

Windows Media Player does not support automatically resize the
video size. You can right click the mouse and resize to 200%. But
it is a little difficult to put it as default in html code.
The solution can be found in




You need two objects, one for Internet explorer (first part below), another for FireFox (second part below).
<!--
 FireFox: type="application/x-ms-wmp"

 MSIE: type="video/x-ms-wmv"
-->

<object id="MSIE" classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" 
type="video/x-ms-wmv" width="640" height="548">

    <param name="URL" value="http://www.nasa.gov/55644main_NASATV_Windows.asx"
 >
    <param name="AutoStart" value="true">

    <param name="ShowTracker" value="true">
    <param name="ShowControls" value="true">

    <param name="ShowGotoBar" value="false">
    <param name="ShowDisplay" value="false">

    <param name="ShowStatusBar" value="false">
    <param name="AutoSize" value="false">

    <param name="StretchToFit" value="true">
</object>

<object type="application/x-ms-wmp" id=
"FireFox" width="640" height="548">

    <param name=
"URL" value="http://www.nasa.gov/55644main_NASATV_Windows.asx">
    <param name="AutoStart" value="true">

    <param name="ShowTracker" value="true">
    <param name="ShowControls" value="true">

    <param name="ShowGotoBar" value="false">
    <param name="ShowDisplay" value="false">

    <param name="ShowStatusBar" value="false">
    <param name="AutoSize" value="false">

    <param name="StretchToFit" value="true">
<a></a> <!--MSIE workaround-->

</object>



Below is the video from above code, now the new video is twice as large as its original one.


No comments:

Post a Comment