Reputation: 629
What are the possible RTSP clients that can Stream live RTSP videos from an IP Camera on Android? Please don't mention me the Android VideoView/MediaPlayer, they have an unbearable buffering delay which causes the whole stream to be delayed for 7-8 seconds. I tried to find a solution to reduce their buffering size but I couldn't find a way.
Upvotes: 0
Views: 5202
Reputation: 915
I've had great success with the VLC implementation. You can find an example here https://github.com/pedroSG94/vlc-example-streamplayer
you add
implementation 'com.github.pedroSG94.vlc-example-streamplayer:pedrovlc:2.5.14v3'
... to your dependencies and then more or less go (in Kotlin):
val surfaceView: SurfaceView = findViewById(R.id.surfaceView)
vlcVideoLibrary = VlcVideoLibrary(this, this, surfaceView)
vlcVideoLibrary?.play(rtspUrlString);
... in your Activity
There's an example implementation in the project.
Upvotes: 1
Reputation: 549
you could have a look at this one
bsplayer -- https://play.google.com/store/apps/details?id=com.bsplayer.bspandroid.free
have used it occasionally and it has been pretty good (Sony Arc)
but its performance will depend on stuff outside your control
Upvotes: 0