LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you play/display a video clip ?

Would like to play a standard .avi clip on the front panel of Labview
0 Kudos
Message 1 of 8
(3,539 Views)
I think you have to use ActiveX, that's what I use for mpg files. Check this example if it helps.
0 Kudos
Message 2 of 8
(3,536 Views)
if it is uncompressed, it is ok, you can find some example from www.ni.com

if it is compressed..... it will still be ok, but you need to program in C++
"Ric alias" wrote in message
news:50650000000800000085720000-1042324653000@exchange.ni.com...
> Would like to play a standard .avi clip on the front panel of Labview
0 Kudos
Message 3 of 8
(3,536 Views)
You will definitely want to use ActiveX. I would suggest accessing the Windows Media Player ActiveX server. If you have version 6.4, everything should be fine. I'm currently working with the ActiveX control for the new Windows Media Player 9. It has a new SDK and I've gotten it to play but I'm getting no video. However, unless you've upgraded to this new version, everything should work fine.
J.R. Allen
0 Kudos
Message 4 of 8
(3,536 Views)

The links on this thread are old and dead. Any updates to this for LV 7.1 and 8? I'm looking for examples.

Thanks

Lorna

0 Kudos
Message 5 of 8
(3,241 Views)

Try this example. Though this was created for LabVIEW 6.1 it works in higher versions of LabVIEW as well.

Regards,

Ankita

0 Kudos
Message 6 of 8
(3,208 Views)
Hi Ankita,
this is a very nice example, but it uses the MediaPlayer 6.4- Object- Model. But when I load the MediaPlayer container (in LV8), I only have access to the MP9 (or MP10)- Container. How can I use the older version (except to copy & paste the example).
And on the other hand it's not advisable to start a project on the old model (despite it's so much nicer to handle), because we don't know how long Microsoft will support this model in future Windows versions.

Dave
Greets, Dave
0 Kudos
Message 7 of 8
(3,201 Views)

Hi Dave,

You are right about using WMP 10 since MS will at some point probably drop support for earlier versions of WMP. I have however been unable to find an example that uses newer object model. Hence I put together a quick example (test .vi). What I would suggest is open this example in LabvIEW 8.0 and understand its working. Now you can modify/add the properties to add more features to the VI. You would be able to get information  about all the ActiveX properties/methods of WMP 10 at MSDN.

Regards,

Ankita 

0 Kudos
Message 8 of 8
(3,189 Views)