Opened 2 years ago

Last modified 2 years ago

#14738 infoneeded_new defect

[MSW] Creation of wxWebView changes wxMediaCtrl behavior

Reported by: ericj Owned by:
Priority: low Milestone:
Component: wxMSW Version: stable-latest
Keywords: wxWebView wxMediaCtrl ActiveX Cc:
Blocked By: Blocking:
Patch: no

Description

If the wxWebView is created before the wxMediaCtrl, the ActiveX backend wxMEDIABACKEND_DIRECTSHOW does not work any more and the wxMEDIABACKEND_WMP10 backend will be used instead.

If the wxMediaCtrl is created first, everything seems to work fine.

This is not a big problem in itself, but it might be an indication that something with the ActiveX/COM initialization code is not 100% correct. Unfortunately i'm not familiar with that code on the Windows side, so i'm not sure i can help with debugging it.

The reason why i wanted the wxMEDIABACKEND_DIRECTSHOW backend, is because it keeps the aspect ratio of the movie, while the WMP10 backend always stretches the movie to fill the window, regardless of its aspect ratio. Additionally, the player controls sometimes are party overdrawn by the movie. (That's a different issue, if i find out when or how exactly that happens, i'll create a new ticket).

The provided patch to the minimal sample shows the problem. If this is tested on a system other than XP, the path to the AVI file must be adjusted accordingly, because the clock.avi will not be there.

Attachments (3)

minimal_webview_mediactrl.patch download (1.4 KB) - added by ericj 2 years ago.
mediaplayer_controls_activemovie.png download (2.2 KB) - added by ericj 2 years ago.
MediaCtrl controls with ActiveMovie backend
mediaplayer_controls_wmp10.png download (9.0 KB) - added by ericj 2 years ago.
MediaCtrl controls with WMP10 backend

Download all attachments as: .zip

Change History (6)

Changed 2 years ago by ericj

comment:1 Changed 2 years ago by steve_lamerton

  • Status changed from new to infoneeded_new

How do I know which backend I am getting? It looks the same to me as if I hardcode wxMEDIABACKEND_DIRECTSHOW into the media player sample, but I don't know if it is because it is working or because they both look the same anyway.

Changed 2 years ago by ericj

MediaCtrl controls with ActiveMovie backend

Changed 2 years ago by ericj

MediaCtrl controls with WMP10 backend

comment:2 Changed 2 years ago by ericj

  • Status changed from infoneeded_new to new

The controls should look different, see attached screenshots.

comment:3 Changed 2 years ago by steve_lamerton

  • Status changed from new to infoneeded_new

Sadly they looks completely different for me under Windows 7, however looking more closely I do get different interfaces which means it seems to work fine for me. It would seem odd to me if wxMediaCtrl could give you a different backend to the one you have chosen without any notification.

Note: See TracTickets for help on using tickets.