简体   繁体   中英

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. 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. How can I make sure it is using adaptive bitrate?

EDIT: we are using the HLSv4 link from Azure Media Service (format=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)

There's also a wrapper for ExoPlayer, which allows you to more or less use it as a drop in replacement for your VideoView.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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