Results 1 to 3 of 3

Thread: Change black background of AxWindowsMediaPlayer

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    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?

  2. #2
    Cumbrian Milk's Avatar
    Join Date
    Jan 2007
    Location
    0xDEADBEEF
    Posts
    2,448

    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.
    W o t . S i g

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    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
  •  



Click Here to Expand Forum to Full Width