01-03-2012 05:16 AM
I am start working with Labview 8.20 to do a project which have to contain some videos. I already have searched in this forum some information/code examples how to play mp4 videos (or other well-know formats like avi, mpeg...), but I didn't find nothing that I think it would help me.
Could someone give me some help or example codes that I can use?
01-03-2012 08:37 AM
01-03-2012 12:25 PM
Thanks for the tip!
But sincerely I already have found that plugin on Front Panel...
What I would like to know more is how to play it, what are the fundamental tools to play it on front panel...
As I said above, after some searches I learned that it is necessary to connect a Invoke Node or others to the Media Player plugin, and I already did it but no results... I think it's necessary more connections mainly to the video I want to play, and I'm not achieving these functions!
01-03-2012 12:38 PM
Please perform a search. This has been asked before, and examples have been posted. If you have a specific problem after looking at the examples, then post back.
02-28-2012 12:15 PM
02-28-2012 01:02 PM
If you are using the ActiveX container (which is what you need to use for the Windows Media Player control), then you should not use the Automation Open function, as this is automatic with the use of the container.
What do you mean by "not getting results"? Does the video load? If you click on the play button does it play?
02-28-2012 01:24 PM
As well as I put the program running and I click on the play button the video doesn't play.
So if I open the video normally in Windows Media Player and it plays, in LabView it should play too, right?
02-28-2012 04:33 PM
It should. If you have the actual file on disk. The code you have is a copy of the code from this Community Example. You did not change the name of the file that is being played. That example is looking for an MPEG file called "hst_1.mpg" that's in the same folder as the VI. I doubt very much that when Grant wrote the example he was able to look over 3 years into the future and determine that you would also have an MPEG file called "hst_1.mpg" in the same folder as your VI.
02-29-2012 06:24 AM
Yes, I have that mpeg file in the same folder as the VI because the Grant's example provides a ZIP file which contains the video "hst_1.mpg" so I saved it on my computer only for testing...But I have already changed to another video saved on my disk and it doesn't play on the same.