04-20-2009, 03:44 PM
Join Date: Mar 2009
Post Thanks: 0
Thanked 0 Times in 0 Posts
| | Can not invoke Native Media Player with local files
Please Login to Remove!
I am trying to invoke the media player using a local file on the sd card. On the createMedia line, it throws an exception. The exception message is the name of the file.
MediaPlayer player = new MediaPlayer();
MediaManager manager = new MediaManager();
Object m = manager.createMedia(localFile, "audio/mpeg");
Any ideas how I can play a local file?
I have been able to play sound files using the javax.microedition.media stuff, but it just plays the sound. I want them to have it in a player where they can see progress bar, stop/start, etc.