Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Entertainment » microsoft.public.windowsmedia.sdk
Thread: WMP sizing video incorrectly

HTVi
TV Discussion Newsgroups

WMP sizing video incorrectly
conor_mediawave 5/23/2007 3:56:03 PM
I am using the WMP ActiveX control to play video in a windows form (using
C#). I am displaying high res WMV files and WMP appears to sizing the video
incorrectly. For example, I explicity size the control to 720x576 and load a
video file which is also 720x576. When displayed the height of the video is
decreased slightly with effect of showing a small black "letterbox" border
above and below the video (have no such border on the actual encoded video).
The width of the video is 720 as expected.

Now when I load the same file into the WMP application itself I see exactly
the same reduced height effect. If I then right click on the video in WMP,
the video file is automatically resized to the correct height - I don't have
to select any of the resizing options displayed - the action of right
clicking alone resets the video height.

Interestingly, if I embed the file in a webpage it displays correctly. Also
if I drag the WMV from file explorer into an IE browser window, it opens up
WMP separately and the video is played with correct height.
From this it appears that IE launches WMP with some setting that is
different from how WMP normally launches and this ensures that video
dimensions are correct.

Can anyone shed light on this - particularily with regard to how IE launches
WMP to display video correctly and how I can use this to ensure my WM ActiveX
control behaves in the same way.

Any help is appreciated.

RE: WMP sizing video incorrectly
conor_mediawave 5/24/2007 9:36:04 AM
Update on this issue:
This is only happening on Vista - works fine in XP
I am using WMP 11 in both cases.

Still need help with the problem on Vista ...
Re: WMP sizing video incorrectly
"AUGE_OHR" <AUGE_OHR_NOSPAM_[ at ]CSI.COM> 5/24/2007 4:13:24 PM
hi,

this will allways happend if your Video Size is bigger
than your Form Size.

workaround : resize your Form to same (small) Size
AFTER oPlayer:playstate = wmppsPlaying
AND oPlayer::openState = wmposMediaOpen.

greetings by OHR
Jimmy


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen