MediaPlayer and RTSP server on localhost

by inon » Mon, 16 May 2011 14:51:13 GMT

Sponsored Links
I am working on an application that streams video between android
devices using SIP/RTP.
since android's media player does not support RTP streams directly I
have come up with a solution
to run an RTSP server on the client and wrap the RTP stream with RTSP
stream, then set the media player's data source to
that RTSP server (i.e, rtsp://localhost:5544/video.3gpp).

The problem:
when the RTSP server runs on a different device than the media
player's device, everything works great, BUT
if the RTSP server runs on the same device (localhost) than after
media player do RTSP OPTIONS and DESCRIBE it fails.
that is, after DESCRIBE response (the same response that is returned
when it works on 2 devices) I get the following
error in logcat:

05-15 15:44:26.374: WARN/MediaPlayer(4243): info/warning (1, 26)
05-15 15:44:26.374: INFO/MediaPlayer(4243): Info (1,26)
05-15 15:44:26.374: ERROR/PlayerDriver(121): Command PLAYER_INIT
completed with an error or info PVMFFailure
05-15 15:44:26.374: ERROR/MediaPlayer(4243): error (1, -1)
05-15 15:44:26.384: ERROR/MediaPlayer(4243): Error (1,-1)
05-15 15:44:26.384: DEBUG/VideoView(4243): Error: 1,-1

I am really clueless on how to solve this one, so any help would be


Other Threads

1. Google speech recognition


I use the Google speech recognition Intent for my application. I can
use the speech recognition in Maps or with the Google search Widget
with my HTC Magic (cupcake CRC1).

One of my user which has the same mobile and the same version of
Android doesn't have the speech recognition and thus can't use my

Does someone know why?

Thanks in advance

(I've post first this message in the Android Discuss group but it
don't appears, maybe it was not in the good group, sorry if there a


2. Sending email with Apache commons

Hi All,
           I am trying a simple send mail application using apache commons
library.Here is the code.

The email sending code is working fine in a standalone application.However
when I try to run it as android application

it gave following error message.

trouble processing "javax/naming/AuthenticationException.class":

[2009-09-17 05:33:20 - Commons]

Attempt to include a core VM class in something other than a core library.

It is likely that you have attempted to include the core library from a

virtual machine into an application, which will most assuredly not work. If

you really intend to build a core library -- which is only appropriate as

part of creating a full virtual machine binary, as opposed to compiling an

application -- then use the "--core-library" option to suppress this error

message. If you go ahead and use "--core-library" but are in fact building

an application, then please be aware that your build will still fail at some

point; you will simply be denied the pleasure of reading this helpful error


[2009-09-17 05:33:20 - Commons] 1 error; aborting

[2009-09-17 05:33:20 - Commons] Conversion to Dalvik format failed with
error 1

I have added mail.jar,commons jars and jndi.jar to the references of eclipse

If anybody know a resolution please let me know.

 *public* *void* onClick(View view) {

 String[] recipients = {};

SimpleEmail email = *new* SimpleEmail();

email.addTo("", "John Doe");

email.addTo("", "John Doe");

email.setAuthentication("", "android");





*for* (*int* i = 0; i < recipients.length; i++)




email.setFrom("", "Me");

email.setSubject("Test message");

email.setMsg("This is a simple test of commons-email");


Thanks & Regards,



3. 1.6 SDK Arrow keys (dpad/trackball) dir not changing with orientation?

4. 3d Physics Engine?

5. Migration of iphone鈥檚 app lication to Android

6. Technology: parse + handling xml files

7. Track web browsing and web browsing ralated activities on android