|
|
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.
|
|
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 ...
|
|
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
|
|
|