Curious Size Problem
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
Curious Size Problem

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Windows Media on Web
Author Message
guitarbrad



Joined: 25 Apr 2006
Posts: 2

Posted: Mon May 01, 2006 9:17 pm    Post subject: Curious Size Problem Reply with quote

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
View user's profile Send private message
Joern_n



Joined: 30 Apr 2006
Posts: 3

Posted: Tue May 02, 2006 1:15 am    Post subject: Reply with quote

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
View user's profile Send private message
guitarbrad



Joined: 25 Apr 2006
Posts: 2

Posted: Wed May 03, 2006 7:22 am    Post subject: Reply with quote

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
View user's profile Send private message
Joern_n



Joined: 30 Apr 2006
Posts: 3

Posted: Mon May 08, 2006 11:39 am    Post subject: Reply with quote

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
View user's profile Send private message
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Windows Media on Web All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB