LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

fullscreen with wmp

I, for the life of me, can not figure out how to run the windows media player object (IWMPPlayer4) in fullscreen mode. If it is possible to do so, I hope someone can help me. I can see where you can read back whether or not the video is in fullscreen mode, but that's as close as I get. Please help me...
0 Kudos
Message 1 of 7
(4,894 Views)
For what you are doing you only need to make a proprty node for the Windows media player and set the full screen property to write and then give it a constant of true. See the attached picture.
Tim
GHSP
0 Kudos
Message 2 of 7
(4,869 Views)


aeastet wrote:
For what you are doing you only need to make a proprty node for the Windows media player and set the full screen property to write and then give it a constant of true. See the attached picture.


Have you tried running that?  I was experimenting the other night with this and found that if you wired a True to that node you get a "catastrophic error"  in a Labview error box that is code "Error -2147418113 occurred at Property Node".  Wiring a false constant does not generate that error.

 
0 Kudos
Message 3 of 7
(4,848 Views)
I've tried that same thing too. When you wire a true to fullscreen, it gives an error. Any other suggestions?
0 Kudos
Message 4 of 7
(4,843 Views)
I would guess that the full screen functionality of the media player creates an error because it is an embedded activeX object rather than its own program running that can control its own window.
 
The only idea I can think of is to reset the height and width of the activeX container to be almost the size of the screen resolution.  I think this would take a lot of calculation to determine the screen resolution, height and width of the LV front panel windows, title bar, borders .....  Possibly even programmatically move the top left corner of the window offscreen.  It would probably be best to do this in the front panel of its own subVI which you would open.  And be sure to handle some sort of event to allow you do close that window or restore everything back to a smaller size so that you aren't stuck with a window that you can't close because the title bar is off screen.
0 Kudos
Message 5 of 7
(4,834 Views)

Hello,

I also try to run the Media Player (IWMPPlayer4) in LabView 8.0. I would like to run it only in the Active X-Container on the Front Panel and not to open the Media PLayer itself. Is it possible?

Another question is, if it possible to set the player to a position where to start. (E.g. start movie at 0:07)?

BTW: Is there anywhere a more explaining help for the properties and methods of media player?

Thanks in advance

Lord Chaos

 

0 Kudos
Message 6 of 7
(4,668 Views)
Hello,

I think that you can find more information about making programmatic calls to the Windows Media Player on Microsoft's MSDN website at the link below:
http://msdn.microsoft.com/en-us/library/bb262657%28VS.85%29.aspx

You can also take a look at using ActiveX with LabVIEW to find out how to programmatically make these calls and embed your player. 

Have a great day!
Kameralina

0 Kudos
Message 7 of 7
(4,620 Views)