I've been trying to play an RTSP feed containing an mp3 audio using the MediaPlayer. The player seemed to think a little and possibly timeout giving me an error 0xFFFFFFFF Now I tried many links and none seem to work!
Here is my code maybe I'm doing something wrong?
*Note I'm using a G1 phone using the 3G network to test this code
*Also, I've created my own server to try to use Wireshark to sniff the communications... And I do get OPTIONS, and DESCRIBE messages from the phone, but it seems that the replies from the server aren't received by the phone...
Thanks in advance!
Jona
Using java Syntax Highlighting
- //Start New Player
- mp1 = new MediaPlayer();
- try {
- updateTextField(txStream, "Starting");
- mp1.setDataSource("rtsp://XX.XXX.125.33/one.mp3");
- mp1.prepare();
- } catch (IllegalArgumentException e) {
- // TODO Auto-generated catch block
- updateTextField(txStream, "Fail 1");
- e.printStackTrace();
- } catch (IllegalStateException e) {
- // TODO Auto-generated catch block
- updateTextField(txStream, "Fail 2");
- e.printStackTrace();
- } catch (IOException e) {
- // TODO Auto-generated catch block
- updateTextField(txStream, "Fail 3");
- e.printStackTrace();
- }
- mp1.start();
Parsed in 0.033 seconds, using GeSHi 1.0.8.4



