I'm having problems getting the MediaCtrl to display at a reasonable size with large videos. When I make it play one it instantly resizes itself to the size of the original video no matter what I set as it's maxsize, which often means that part of the window is off the screen and you can only see part of the video. I've tried doing MediaCtrl.SetSize() which seems to work fine, but it just goes back to the massive size if I resize the window or do anything to the sizer. Is there any way of stopping this from happening?
Also, I've been wondering if there's a way to change the backend it's using while the program's running, for example (pseudo code):
# Creating a MediaCtrl using the Windows Media Player 10 backend
player = wx.media.MediaCtrl(self, sxBackend=wx.media.MEDIABACKEND_WMP10)
[...]
define OpenFile:
Ask user for file to open
if filetype == .MOV:
player.SetBackend(wx.media.MEDIABACKEND_QUICKTIME) ?
I know it can guess which one to use if I don't specify one, but that can't play WMV's and it displays the Windows Media logo when it's not playing something for some reason.
Any help would be appreciated :)