如何:使用Azure Media Services在Android上流音频? [英] How to: Stream Audio on Android using Azure Media Services?

查看:67
本文介绍了如何:使用Azure Media Services在Android上流音频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在研究,但是没有找到有关如何在Android应用程序上播放Azure Media Services音频流的任何教程?

I've been researching but didn't find any tutorial on how to play an audio stream from Azure Media Services on Android apps ?

我已经看过那些教程 http://azure.microsoft.com/zh-CN/documentation/articles/media-services-dotnet-get-started/ http://code.msdn.microsoft.com/Windows-Azure-Media-040435f8

I've went through those tutorials http://azure.microsoft.com/en-us/documentation/articles/media-services-dotnet-get-started/ http://code.msdn.microsoft.com/Windows-Azure-Media-040435f8

但是他们下载资产而不是流式传输.

But they download an asset not stream it.

似乎有一个叫做PlayReady的东西,但我需要许可它! http://www.microsoft.com/playready/features/ClientOptions.aspx

There seems to be sth called PlayReady, but I need to license it !! http://www.microsoft.com/playready/features/ClientOptions.aspx

任何人都可以将我引导至任何代码/教程或从何处开始,以便我可以播放在Azure媒体服务上上传的音频流吗?

Can anyone guide me to any code/tutorial or where to start such that I could play an audio stream uploaded on Azure Media Services ?

是否有可能我可以从azure媒体服务中获取有关上传的音频文件的流URL,然后我通常可以使用Android上的MediaPlayer API正常播放它?

Is it possible that I could obtain a streaming url from azure media services for my uploaded audio file, and then I would just play that normally using the MediaPlayer API on Android ?

推荐答案

Azure Media Services旨在处理和提供流视频,并且不支持纯音频媒体.

Azure Media Services is designed to process and serve streamed video and doesn't support audio-only media.

您可能要检查新的Azure CDN产品是否正在提供流畅的流传输.

You might want to check to see if the new Azure CDN offering is providing smooth streaming yet.

否则,真正启用此功能的唯一方法是设置适当的流服务器,该服务器可能在Azure VM上运行,因为网站和Web角色PaaS产品没有内置流功能.

Otherwise the only way to really enable this would be to setup an appropriate streaming server potentially running on an Azure VM as the websites and web role PaaS offerings don't have streaming capabilities baked into them.

如果不这样做,如果您需要公共云解决方案,则可以潜在地查看AWS CloudFront Streaming产品.

Failing this you could potentially look at the AWS CloudFront Streaming offering if you need a public cloud solution.

这篇关于如何:使用Azure Media Services在Android上流音频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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