IMedia_Play | developer.brewmp.com IMedia_Play | developer.brewmp.com

Developer

IMedia_Play

Forums:

Hi all,

I am trying to play an audio file on the emulator.
the problem is when I provide the complete path in pmd.pData like "media/test.mp3",
the emulator is able to play the file. But when I try to provide the path dynamically, by reading the selected file from the menu in pText variable of CltAddItem, IMedia_Play is not able to play the file, although the same address is being stored in the pText variable.

The code snippet is: pmd.pData = "media/test.mp3" ;//file is playing.
pmd.pData = CltAddItem->pText;(pText = "media/test.mp3" );
File is not playing.

Can somebody provide a solution.

Regards,
Ambarish.