I'm developing a music player for a few S40 3rd ed phones (6233, 6131, 6280, 6288).
The music player must be able to search for music in the phone mem and build custom playlists, and play them. I have started with the 6233!
My problem is that you cannot use FileConnection on a 5 MB mp3 because it will throw OutOfMemoryException...
I'm trying to do streaming on the memory card but the following code throws an exception with msg: "Error connecting data source".
player = Manager.createPlayer("file://localhost/E:/test.mp3");
where E: stands for the memory card...
This is the same string passed to the FileConnection.open's method (wich works).
I have tried to split an mp3 into 320kb pieces and play sequentially using ByteArrayInputStreams as Player's input.
It works, but when switching between Players the sound is cut off for aprox 150 milliseconds.
Can anybody tell me what to do?
Another question: how do you make use of the contructor Player(DataSource dat). I mean that, if DataSource is a private class why isn't this constructor also private?
-Nokia SDK S40 rd ed FP1