Click here to Skip to main content
15,891,940 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have embedded a video in my htm page. While resizing stretchToFit is working fine in IE but firefox is not supporting this feature. Is there any other way to resize the video in firefox using javaScript.
Posted
Comments
jim lahey 13-Sep-11 11:30am    
what kind of video? don't really know what you're talking about if you don't provide an example..
Virjin Antony 14-Sep-11 1:56am    
I have embedded Windows media player. Here is the example code....
document.write('<object id="Video" name="Video" type="application/x-ms-wmp" data="'+strVideoUrl+'" width="320" height="240" >');
document.write('<PARAM VALUE="video.asx" NAME="URL"><PARAM VALUE="slide" NAME="DefaultFrame"><PARAM VALUE="FALSE" NAME="LOOP"><PARAM VALUE="TRUE" NAME="stretchToFit"><EMBED SRC="video.asx" LOOP="FALSE" stretchToFit="1" windowlessVideo = "1" DEFAULTFRAME="slide" AUTOSIZE="0" TYPE="application/x-mplayer2" PLUGINSPAGE="http://www.sofTV.net/WindowsMediaPlayerDownload" ID="Video" NAME="Video" SHOWSTATUSBAR="0" AUTOREWIND="0"></EMBED>')
document.write('</OBJECT>')
The stretchToFit is not working.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900