LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Media Player ActiveX Control doesn't work with uimode = none

I am trying to play a video file (mpeg) in a panel.
I use Windows Media Player ActiveX control  (WMP 10) on a CVI8.0 panel that runs in a new STA thread.
The ActiveX control is placed programatically on that panel (by NewIWMPPlayer4(...)).
 
The ActiveX control works fine as long as I call the video file just with WMPLib_IWMPPlayer4SetURL(..,..,fileName).
 
Unfortuantly the ActiveX control shows it's controls (play, stop, etc.) on the panel too. I don't want that and have tried to
switch the uimode  to "none" (WMPLib_IWMPPlayer4SetuiMode(...,...,"none"). By adding this line the player does not play the video
file anymore, the ActiveX control remains black. In this case even right click doesn't work.
 
Does somebody know how to hide the controls and get the ActiveX control working?
 
 
0 Kudos
Message 1 of 2
(3,780 Views)
hello MaWie,

can you provide a small example program, which shows the behaviour?

regards,

robert h
NI germany
0 Kudos
Message 2 of 2
(3,756 Views)