如何使用videoview从RTMP? [英] How I can use videoview from rtmp?

查看:1125
本文介绍了如何使用videoview从RTMP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎样才能在Android从URL播放视频。网址是:(例如)

How I can play the video on android from url. The url is : (e.g)

RTMP://fms.1B3E.sample.mp4

rtmp://fms.1B3E.sample.mp4

。当我想使这个android上的录像机我这个斜面戏称。 我怎样才能做到这一点?

.When I want to make this the videoplayer on android says me this cant play. How I can do this.?

推荐答案

Android的媒体..

Android Media..

网络协议

以下网络协议都支持音频和视频播放:

The following network protocols are supported for audio and video playback:

  • RTSP(RTP,SDP)

  • RTSP (RTP, SDP)

HTTP / HTTPS渐进式流

HTTP/HTTPS progressive streaming

HTTP / HTTPS协议的直播流媒体草案:

HTTP/HTTPS live streaming draft protocol:

MPEG-2 TS media files only
Protocol version 3 (Android 4.0 and above)
Protocol version 2 (Android 3.x)
Not supported before Android 3.0

注:HTTPS的Andr​​oid 3.1之前,不支持

Note: HTTPS is not supported before Android 3.1.

编辑:

哦对不起...我忘了提到

Oh Sorry... I forgot to mentioned

Android的RTMP库

RTMP 库提供了 RTMP 协议,在Android与在线流媒体音频和视频内容的接口的实现。应用程序可以直接控制的媒体缓冲区实现与第三方或专有DRM解决方案的集成。图书馆也有利于为音频视频codeC范围内的支持。它提供了使用其基于Android的语音聊天现场音频发布;公开披露制度等可以开发。图书馆集成了Adobe Flash媒体服务器系列产品。

RTMP Library provides the implementation of the RTMP protocol on Android with interfaces for streaming online audio and video contents. Application can have direct control over media buffers enabling integration with third party or proprietary DRM solutions. The library also facilitates support for range of audio video codec. It offers publishing of live audio using which android based audio chat; public announcing system etc can be developed. The library is integrated with Adobe Flash Media Server family products.

这篇关于如何使用videoview从RTMP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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