problem finding bundled file with mp

DTsEMT

Member
Licensed User
Longtime User
Hi there! I'm beginning an app that uses a background sound which plays over tts. I'm trying to use the mp library to play the sound. The sound file is listed in the Files section and downloaded with the apk.

All the examples I've found using mp use the mp.load routine which does not seem to be part of the library any more. I've tried various combinations of file.dirassets & "thesound.mp3" but always get a file not found error, when using mp.loadfromfile.

Has anyone had any experience with this? Sorry no examples, I'm at work away from my development pc. Any points would be appreciated!:BangHead:
 

stevel05

Expert
Licensed User
Longtime User
When you say the MP library I assume you mean MediaPlayer. Check that you have actually Dimmed MP as MediaPlayer and not another object.

MediaPlayer doesn't have the method LoadFromFile, just Load as you expected.
 
Upvote 0

DTsEMT

Member
Licensed User
Longtime User
Well, I'll be...

Stevel05,

Thank you so much for your reply! When I suspected I'd need a Mediaplayer object I looked over at the libs and didn't see it loaded, couldnt find it for download, and selected ICOSPlayer as the next closest I could find.

I never thought to see if mediaplayer was built-in. :sign0104:

Thanks! :sign0060:
 
Upvote 0
Top