LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

continuously playing mp3 file

 

 Hi all,

 

 I want to play a mp3 file continuously in a loop such that the track first completes

 and then start from the beginning, but it is not actually happening. The mp3 file starts
 but doesn't complete and then again starts. I am using media player for playing the mp3

 file.

 

 The program looks like this

 

 while( condition)

 {
  WMPLib_IWMPPlayer2SetURL (playerHandle, NULL, path);
 }


  Do i have to use some other function also?

0 Kudos
Message 1 of 2
(3,043 Views)

Hi mhs100,

 

Depending on what windows media player version you have installed, they have different activeX functions. In the later versions there is an AutoRewind function. Do you happen to have access to the later versions of Windows Media Player activeX functions?

 

Thanks!

Chris T.
0 Kudos
Message 2 of 2
(2,994 Views)