Hi, I've implemented RTSP on Android MediaPlayer using VLC as rtsp
server with this code:

# vlc -vvv /home/marco/Videos/pippo.mp4 --sout
'#rtp{dst=192.168.100.246,port=6024-6025,sdp=rtsp://
192.168.100.243:8080/test.sdp}'

and on the Android project:
------------------------------------------------------------------------------------------------------

Uri videoUri = Uri.parse("rtsp://192.168.100.242:8080/test.sdp");

        videoView.setVideoURI(videoUri);
        videoView.start();
------------------------------------------------------------------------------------------------------

This works fine but if I'd like also to play live stream RTP so I
copied the sdp file into the sdcard (/mnt/sdcard/test.sdp) and setting
vlc:

# vlc -vvv /home/marco/Videos/pippo.mp4 --sout
'#rtp{dst=192.168.100.249,port=6024-6025}'

I tried to play the stream RTP setting the path of the sdp file
locally:
------------------------------------------------------------------------------------------------------
Uri videoUri = Uri.parse("/mnt/sdcard/test.sdp");

        videoView.setVideoURI(videoUri);
        videoView.start();
------------------------------------------------------------------------------------------------------

But I got an error:

D/MediaPlayer( 9616): Couldn't open file on client side, trying server
side
W/MediaPlayer( 9616): info/warning (1, 26)
I/MediaPlayer( 9616): Info (1,26)
E/PlayerDriver(   76): Command PLAYER_INIT completed with an error or
info PVMFFailure
E/MediaPlayer( 9616): error (1, -1)
E/MediaPlayer( 9616): Error (1,-1)
D/VideoView( 9616): Error: 1,-1

Does anyone know where's the problem? I'm I wrong or it's not possible
to play RTP on MediaPlayer?

Cheers

Giorgio

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to