Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Play RTP stream withouth RTSP in Android VideoView

I'd like to play a RTP stream in an Android VideoView. I create the stream with gstreamer on a linux machine and fire the rtp stream to a udp sink.

Is it possible to consume this stream in an Android VideoView without having a RTSP server?

I tried to set the video URI to "rtp://:@" but then I got an error "Video could not be played". I also thought about creating an SDP file and using that on the Android device. But I'm not sure if this works and how to create such a file.

Thanks

like image 871
Soccertrash Avatar asked Nov 01 '22 02:11

Soccertrash


1 Answers

http://developer.android.com/guide/appendix/media-formats.html

Above link is first stop for what is support or no.

As it says rtp only in conjunction with sdp as per rtsp spec.

No can't do naked rtp stream in base android.

Try porting some lib like live555 if you must have naked rtp.

like image 192
Robert Rowntree Avatar answered Nov 12 '22 16:11

Robert Rowntree