#14738: [MSW] Creation of wxWebView changes wxMediaCtrl behavior

23 views
Skip to first unread message

wxTrac

unread,
Oct 9, 2012, 7:26:30 AM10/9/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14738>

#14738: [MSW] Creation of wxWebView changes wxMediaCtrl behavior
-------------------------------------------+--------------------------------
Reporter: ericj | Owner:
Type: defect | Status: new
Priority: low | Milestone:
Component: wxMSW | Version: 2.9-svn
Keywords: wxWebView wxMediaCtrl ActiveX | Blockedby:
Patch: 0 | Blocking:
-------------------------------------------+--------------------------------
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.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14738>

wxTrac

unread,
Oct 15, 2012, 2:14:25 PM10/15/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14738#comment:1>

#14738: [MSW] Creation of wxWebView changes wxMediaCtrl behavior
-------------------------------------------+--------------------------------
Reporter: ericj | Owner:
Type: defect | Status: infoneeded_new
Priority: low | Milestone:
Component: wxMSW | Version: 2.9-svn
Keywords: wxWebView wxMediaCtrl ActiveX | Blockedby:
Patch: 0 | Blocking:
-------------------------------------------+--------------------------------
Changes (by steve_lamerton):

* status: new => infoneeded_new


Comment:

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.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14738#comment:1>

wxTrac

unread,
Oct 15, 2012, 2:46:32 PM10/15/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14738#comment:2>

#14738: [MSW] Creation of wxWebView changes wxMediaCtrl behavior
-------------------------------------------+--------------------------------
Reporter: ericj | Owner:
Type: defect | Status: new
Priority: low | Milestone:
Component: wxMSW | Version: 2.9-svn
Keywords: wxWebView wxMediaCtrl ActiveX | Blockedby:
Patch: 0 | Blocking:
-------------------------------------------+--------------------------------
Changes (by ericj):

* status: infoneeded_new => new


Comment:

The controls should look different, see attached screenshots.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14738#comment:2>

wxTrac

unread,
Oct 18, 2012, 3:39:41 AM10/18/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14738#comment:3>

#14738: [MSW] Creation of wxWebView changes wxMediaCtrl behavior
-------------------------------------------+--------------------------------
Reporter: ericj | Owner:
Type: defect | Status: infoneeded_new
Priority: low | Milestone:
Component: wxMSW | Version: 2.9-svn
Keywords: wxWebView wxMediaCtrl ActiveX | Blockedby:
Patch: 0 | Blocking:
-------------------------------------------+--------------------------------
Changes (by steve_lamerton):

* status: new => infoneeded_new


Comment:

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.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14738#comment:3>

wxTrac

unread,
May 24, 2017, 12:29:47 PM5/24/17
to wx-...@googlegroups.com
#14738: [MSW] Creation of wxWebView changes wxMediaCtrl behavior
-----------------------+-------------------------------------------
Reporter: ericj | Owner:
Type: defect | Status: closed
Priority: low | Milestone:
Component: wxMSW | Version: stable-latest
Resolution: outdated | Keywords: wxWebView wxMediaCtrl ActiveX
Blocked By: | Blocking:
Patch: 0 |
-----------------------+-------------------------------------------
Changes (by ericj):

* status: infoneeded_new => closed
* resolution: => outdated


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14738#comment:4>
Reply all
Reply to author
Forward
0 new messages