Android上的RTSP客户端实现 [英] RTSP Client implementation on Android

查看:661
本文介绍了Android上的RTSP客户端实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到许多与此有关的问题.尽管如此,我认为我的答案仍然没有.

我想使用Android上已经编码的RTSP客户端与MediaCodec一起使用,以便捕获H264中的RTSP流,然后对其进行解码和显示.我使用了众所周知的VideoView和MediaPlayer来支持.setDataSource方法(文件或rtsp/http路径)中的RTSP流(与仅支持文件或http的MediaExtractor不同),但是对于我而言,延迟很高. /p>

我想使用MediaExtractor,但是由于setDataSource方法的局限性,它似乎不是一个选择.鉴于此,我正在寻找可以用作Android上的RTSP客户端的帮助或示例(教程?),或者如果有人以某种方式使用MediaExtractor来捕获RTSP流,那么也非常欢迎其帮助. >

非常感谢你们!

rojiark

解决方案

您可以尝试 https://github.com /fyhertz/libstreaming

您应该知道那是LGPL,这意味着您项目的其余部分将成为LGPL,并且如果您分发应用程序,则还必须在请求时分发源代码.

I have seen many questions related to this. Nevertheless there is not an answer for mine I think.

I would like to use an already coded RTSP Client on Android to use with MediaCodec in order to capture a RTSP stream in H264 to then decode and display it. I have used VideoView and MediaPlayer which are well-known to support RTSP streaming in the .setDataSource method (file or rtsp/http path) (unlike MediaExtractor which only supports file or http), but the latency is to high for my purposes.

I would like to use MediaExtractor, but because of that limitation on the setDataSource method it seems to be not an option. Given this, I am searching for some help or examples (tutorial?) that I could use as RTSP Client on Android, or if someone has used MediaExtractor in some way to capture the RTSP stream its help is more than welcome as well.

Thank you so much guys!

rojiark

解决方案

You can try https://github.com/fyhertz/libstreaming

You should know though that is LGPL, which means the rest of your project will become LGPL and if you distribute the application you must also distribute the source code if requested.

这篇关于Android上的RTSP客户端实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆