![]() |
|
|
This example VI opens Windows Media Player on your computer and plays the selected file. You can use any video file that is supported by Windows Media Player (.mpa, .mp2, .mp3, .avi, .wma, etc..). The Strip Path VI finds the location of the current VI. This is useful because I saved the example video file to this folder as well. If you know exactly where the video file is then you can reference this directly into the constant. The Build Path VI adds the current folder filepath to the video name so that the full filepath can be used to play the video. There are a ton of Windows Media Player (WMP) ActiveX classes that can manipulate it in a number of ways. Hopefully you find this helpful and check out the other ActiveX classes to appreciate all you can do with WMP. This was developed in LabVIEW 8.6 and unfortunately I do not have other versions of LabVIEW available at the moment. If you don't have 8.6 then try and recreate the attached screenshot of the block diagram is your version. ActiveX classes change from one LabVIEW version to another (sometimes) so you might have to redirect the class.
Not all of us have moved on to 8.6