| Author |
Message |
guitarbrad
Joined: 25 Apr 2006
Posts: 2
|
Posted:
Mon May 01, 2006 9:17 pm Post subject:
Curious Size Problem |
|
|
I have a mpg file that I'm displaying in a web page. The file is 320 × 240 but it displays much smaller in width on the page. If you click the link to launch WMP and play the file, it plays at full size. In the page tho, it's smaller. I was always under the impression that if you give width & height it should play at the size of the file. I'm wondering what's going on...any suggestions? (My code is below...the page is www.strum.tv/videos/welcome.html The link is below the display: Welcome Video)
| Code: |
<object id="MediaPlayer1" width="320" height="240"
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft® Windows® Media Player components..."
type="application/x-oleobject" align="middle">
<param name="FileName" value="Welcome.mpg">
<param name="ShowStatusBar" value="True">
<param name="DefaultFrame" value="mainFrame">
<param name="autostart" value="true">
<embed type="application/x-mplayer2"
pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/"
src="Welcome.mpg"
autostart="true"
align="middle"
width="320"
height="240"
defaultframe="rightFrame"
showstatusbar="true">
</embed>
</object>
|
BTW, the same thing happened when I tried the same code with an avi file.
Thanks,
Brad
|
|
| Back to top |
|
 |
Joern_n
Joined: 30 Apr 2006
Posts: 3
|
Posted:
Tue May 02, 2006 1:15 am Post subject:
|
|
|
Hi Brad.
You need to make allowance for the control bar; so it’ll be something like
320 x 300 instead of 320 x 240
Also check your file. Your code says .mpg but on download it’s .mpeg.
Joern |
|
| Back to top |
|
 |
guitarbrad
Joined: 25 Apr 2006
Posts: 2
|
Posted:
Wed May 03, 2006 7:22 am Post subject:
|
|
|
Thanks, it looks like that worked. I used 320 × 320 and it now plays at the same size as in WMP.
(That's about 4.25" × 3.25" embeded or using WMP just fyi)
It seems to play okay, so does it matter that there's a mpg ext. instead of mpeg?
More importantly, if I want it to start playing right away (autostart being true),
w/o waiting for the mpeg to fully load, it would have to be a stream like a WMV, right?
Thanks again,
Brad
|
|
| Back to top |
|
 |
Joern_n
Joined: 30 Apr 2006
Posts: 3
|
Posted:
Mon May 08, 2006 11:39 am Post subject:
|
|
|
That's good.
As for the mpeg / mpg extension.
It's like telling your visitors to look for apples while you only have oranges.
Keep it simple!
I would go for the .wmv aka.: Better quality for the same space, and with
Movie Maker the conversion is a 2 min. job. |
|
| Back to top |
|
 |
|
|
|
|