简体   繁体   English

安卓 RTSP 客户端

[英]Android RTSP Client

What are the possible RTSP clients that can Stream live RTSP videos from an IP Camera on Android?有哪些可能的 RTSP 客户端可以从 Android 上的 IP 摄像机流式传输实时 RTSP 视频? 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.请不要提到我的 Android VideoView/MediaPlayer,它们有无法忍受的缓冲延迟,导致整个流延迟 7-8 秒。 I tried to find a solution to reduce their buffering size but I couldn't find a way.我试图找到一种解决方案来减少它们的缓冲大小,但我找不到办法。

you could have a look at this one你可以看看这个

bsplayer -- https://play.google.com/store/apps/details?id=com.bsplayer.bspandroid.free 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)偶尔用过,效果还不错(Sony Arc)

but its performance will depend on stuff outside your control但它的性能将取决于你无法控制的东西

RTSP Client in Android Android 中的 RTSP 客户端

I've had great success with the VLC implementation.我在 VLC 实施方面取得了巨大成功。 You can find an example here https://github.com/pedroSG94/vlc-example-streamplayer你可以在这里找到一个例子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): ... 到您的依赖项,然后或多或少地(在 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.项目中有一个示例实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM