11-29-2018 05:08 AM
My intention is to make a game that shows for each case a video on the frontpanel. I know that you need to use the '.NET & ActiveX' -control but when I insert (with browsing) a video as 'ActiveX Object' labview displays me an icon but not the video.
Solved! Go to Solution.
11-29-2018 08:08 AM
You need to right-click on the ActiveX container and select "Windows Media Player" (if you are on Windows). Then, in your code, you assign your video to the URL of the container using a property node (see below).
Good luck.
12-04-2018 11:51 AM
Thank you for the answer.
Is it possible to start the video automatically whitout pressing the start-button?
Thanks in advance
12-04-2018 12:17 PM
It seems that each time you run the URL property mode, the video plays so you can use that property node.
Or, you can use a property node to obtain a reference to the controls and from this reference, call the invoke node play. Don't forget to close the reference after getting the reference for the controls, especially if you obtain the reference every time you play the video (see below).
12-08-2018 11:14 AM
Thank you very very much, you helped me a lot until now.
But I have still little problems. I want that the screen stays on the same size every time that the program changes from video. And also if it is possible when a video is removed (in my case the idle video) and come back (after the case score(video)) a little bit later that the video restart from where he stopped.
I hope you can save me again.
12-17-2018 03:04 PM - edited 12-17-2018 03:09 PM
I don't know if the ActiveX controls of Windows Media Player allows you to do that. You can explore the properties and methods.
In case Windows Media Player does not allow you to do what you want, you can look for another video player. DivX is one example, QuickTime is another example. I have no clue if any of those two can do what you want.
Another option is to use the LabVIEW Vision module. This option is typically expensive.
Good luck