Soccertrash
Soccertrash

Reputation: 1901

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

Upvotes: 5

Views: 2379

Answers (1)

Robert Rowntree
Robert Rowntree

Reputation: 6289

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.

Upvotes: 2

Related Questions