Play RTP stream withouth RTSP in Android VideoView - android

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

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.

Related

streaming rtsp server (android)

I am making an android application for streaming local video files to other android phones.
For this purpose, I found the libstreaming library, but it is designed to stream video from the camera phone.
How can I stream local video files using this library?
Are there any other libraries with which you can implement streaming?
I tried to use headless vlc but headless vlc does not exist in android.
I tried to use gstreamer (gst-launch) but MediaPlayer is required to sdp the file.
ffserver is not supported..

Android RTSP streaming over TCP

We are facing some issue regarding TCP streaming, So we need help.
Project requirement:
RTSP streaming over TCP.
Take snapshot of streaming video.
Streaming multiple videos in single screen.
We have used Android media player to stream RTSP. But media player supports RTSP only over UDP protocol, It fails over TCP. We need to support RTSP streaming over TCP protocol in the project.
Android VLC player supports streaming RTSP over TCP protocol. We have tried VLC using this link https://wiki.videolan.org/AndroidCompile/. But we cannot play multiple videos in single screen, also snapshot feature cannot be implemented since VLC uses SurfaceView to load the video.
Any suggestion regarding "streaming multiple RTSP videos over TCP" and "Snapshot" would be helpful.
Thanks in advance.
now the VLC code is updated.
it supports multiple instance.
You can use texture view to get a snapshot gather than surface view.
hope this helps ;)

Can flowplayer handle rtsp stream?

Flowplayer can play rtmp and http live stream but can i use the same player to play rtsp stream. I have rtsp stream for android which can be played using external player but it opens in fullscreen mode. I thought of putting it inside a frame but the external player opens outside of the frame in android device. So i want to use flowplayer to play rtsp stream in android. Is it possible and if not what to use.
I am fairly certain that Flowplayer, while a great solution for many things, cannot be extended to accept a straight RTSP stream. In any case, I don't believe there is a supported mobile version or plugin of Flowplayer for Android at this point. I have even seen reports that embedded flowplayers being viewed on Android have been sketchy at best.
I have, however, used ffserver and ffmpeg (http://ffmpeg.org/) to transcode the RTSP stream into .flv to be played with Flowplayer, but if a transcoded stream could be broadcast on your system, you'd be well on your way!
Mason

How to link to an RTSP stream on Android phone?

I need to play an RTSP audio stream on an Android phone, linked to from a web-page.
What's the simplest way to achieve this? I hope this will be very simple but unfortunately I don't have a phone on which to test.
Your RTSP stream needs follow 3GPP PSS streaming spec to work with the android Videoplayer.
There is some more information here:
Server to stream RTSP to android

Android VideoView save RTSP stream

I'm playing on my Android Nexus One some videos of a few cisco cameras using a VideoView. While this works fine, I'm unsure if it's possible to save the movie to a file.
I'm opening an URL like rtsp://192.168.1.22:554/live.sdp
How can I save it to the SDcard ? Handle it like a file maybe ... Is that possible ?
You can implement/use library, your own RTSP client which will pipe the incoming RTP packets into a file.
if you want to also play the video stream you can then give the media player a local RTSP server address to your RTSP server and then pipe the same RTP packets to the media player as well.
If you need you can find an open source RTSP server/client here

Categories

Resources