问题描述
我要开发一个应用程序,将流 RTP视频流从服务器和玩我的Android设备上。我也有到其他Android设备从该客户端应用程序将视频流上创建一个RTP服务器。
I have to develop an app that will stream RTP video stream from a server and play it on my android device. I also have to create a rtp server on another android device from which this client app will stream video.
不过,我发现了什么是RTP流很难直接播放(不包括RTSP)。我如何能实现在安卓/ JAVA这样的球员。
But, what i found is that Rtp stream is hard to play directly(without RTSP). How can I implement such a player in android/java.
的我知道Vitamio,但我怀疑它是否能够发挥RTP。的
请纠正我,如果我错了,我真的可以使用一些帮助。
Please correct me if i am wrong and i really could use some help.
推荐答案
借助类可以直接播放RTSP,这样你就不必开发一个客户端。对于服务器,可以实现RTSP或者使用一些库一样。如果你不需要支持许多并发客户端,这是比较容易做到的。
The MediaPlayer class can play RTSP directly, so you don't have to develop a client. For the server, either implement RTSP or use some library that does. If you don't need to support many simultaneous clients, it's relatively easy to do.
这篇关于落实Android设备上RTP流媒体播放器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!