Hi i am trying to play the mp3 files which r on my media card. I can explore the media card using File Connection API. How can i create a player using the path of mp3 files on media card. I am using the following code to create player, when the mp3 file is included in the JAR file (works fine!)
InputStream is = getClass().getResourceAsStream("/sounds/myfile.mp3");
Player p = Manager.createPlayer(is,"audio/mpeg");
Please tell me how to get Player object usimg the path of mp3 file from the media card. Please give the code sample lnes if possible. Thanx
syson

Reply With Quote


