简体   繁体   English

Android-播放来自Azure Media Services的自适应比特率视频

[英]Android - play adaptive bitrate video from Azure Media Services

I have uploaded some video files to my Azure Media Service with the multi-bitrate MP4 encoding. 我已使用多比特率MP4编码将一些视频文件上传到我的Azure媒体服务。 I have the Media Service set up with one streaming unit and a Premium subscription, so it supports adaptive bitrate streaming. 我已将媒体服务设置为具有一个流媒体单元和一个高级订阅,因此它支持自适应比特率流媒体。

On my Android app, I use the default VideoView widget but it doesn't seem to actually be using adaptive bitrate streaming. 在我的Android应用上,我使用默认的VideoView小部件,但实际上似乎并未使用自适应比特率流式传输。 How can I make sure it is using adaptive bitrate? 如何确定它正在使用自适应比特率?

EDIT: we are using the HLSv4 link from Azure Media Service (format=m3u8-aapl) 编辑:我们正在使用来自Azure媒体服务的HLSv4链接(格式= m3u8-aapl)

What kind of streaming protocol are you using exactly? 您到底使用哪种流协议? The standard media library in Android is somewhat limited in this regard, so you might wanna take a look at ExoPlayer , it supports a much wider range of streaming protocols (like DASH and SmoothStreaming for example) 在这方面,Android中的标准媒体库有所限制,因此您可能想看看ExoPlayer ,它支持范围更广的流协议(例如DASH和SmoothStreaming)

There's also a wrapper for ExoPlayer, which allows you to more or less use it as a drop in replacement for your VideoView. 还有一个用于ExoPlayer的包装器 ,它使您可以或多或少地使用它作为VideoView的替代品。

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

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