-
Apr 5th, 2012, 02:13 PM
#1
Thread Starter
Frenzied Member
Change black background of AxWindowsMediaPlayer
Hello,
I'm using the AxWindowsMediaPlayer control. At the moment if I play a video whose dimensions are not of the same ratio as the AxWindowsMediaPlayer control then there are added "black bars" visible at the top and bottom of the video.
Is there a way to change the colour of these black bars? The idea is to make them match the content around them (the form its on). If there isn't a specific setting, what about some API call?
-
Apr 9th, 2012, 05:15 AM
#2
Re: Change black background of AxWindowsMediaPlayer
Not sure about this but a possible workaround might be to set the AxWindowsMediaPlayer.windowlessVideo property to true and then draw rectangle of the appropriate size and colour over the video stream.
WMP does have an option in performance settings to control the pillar box colour. I don't know how to do this programmatically.
-
Apr 9th, 2012, 11:35 PM
#3
Thread Starter
Frenzied Member
Re: Change black background of AxWindowsMediaPlayer
How would I detect where the black pillar box is in order to draw the rectangle? The size/location of the media player is not fixed, its position is set by the user.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|