LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

play files in media player activex

Solved!
Go to solution

Dear Friends;

I can load play list with Window media player activex in LabVIEW 2009 but I don't know how to play them.

thank for help me.

0 Kudos
Message 1 of 4
(2,439 Views)

Hey javadi_ali,

 

It seems that in one section of your code (For Loop before case structure) you're building an array of strings, for each of the songs in the playlist, and you're able to index the playlist using the Index Invoke Node. Have you considered using an Index Array function in combination with the index value for the song in the playlist to pull out the single item name? You could then use that item name string to build a path to the song and play it using the IWMPPLayer4 Property Node inside of a case structure. 

Tim A.
0 Kudos
Message 2 of 4
(2,415 Views)

It looks like it will work if you increase the timeout for the event structure.  When I changed it from 10 ms to 100 ms, I did not get an error.

 

 

 

 

Randall Pursley
0 Kudos
Message 3 of 4
(2,412 Views)
Solution
Accepted by topic author javadi_ali

pardon me, I think my play list had wrong path files( I don't know why),anyway thsnk for your answer

0 Kudos
Message 4 of 4
(2,403 Views)