[英]Do I need to use Azure Media Services and Player for audio only application
I'm looking to build an ASP.NET application that will allow users to upload audio files (only) and playback the media through the site.我希望构建一个 ASP.NET 应用程序,该应用程序将允许用户上传音频文件(仅)并通过站点播放媒体。 I was planning to use Azure Blob Storage to hold the media but do I need to use Azure Media Services and Player for upload and playback?
我计划使用 Azure Blob 存储来保存媒体,但我是否需要使用 Azure 媒体服务和播放器进行上传和播放?
Is using Azure Media Services and Player over the top for audio as all the examples I can find concentrate on Video.正在使用 Azure 媒体服务和播放器作为音频的所有示例,我可以找到专注于视频的所有示例。
Any help or advice gratefully received.感谢您收到任何帮助或建议。
You do not need to use Azure Media Services or the AMP (Azure Media Player) for upload and playback.无需使用 Azure 媒体服务或 AMP(Azure 媒体播放器)进行上传和播放。
The key benefit (for me, at least) of using AMP使用 AMP 的主要好处(至少对我而言)
AMP can recognize which platform (iOS, Android, browser, etc) your user is on, and then scaffolding code to distribute the appropriate video file (ex: HLS on iOS, Smooth Streaming on MSFT platforms, DASH where it is supported). AMP 可以识别您的用户在哪个平台(iOS、Android、浏览器等)上,然后构建代码以分发适当的视频文件(例如:iOS 上的 HLS、MSFT 平台上的平滑流、支持它的 DASH)。 Now, the media player will handle all of that for you.
现在,媒体播放器将为您处理所有这些。
Uploading video上传视频
You can do this programmatically , either through a web app or compiled app that you write, or through Visual Studio's built-in upload tool.您可以通过您编写的 Web 应用程序或编译的应用程序,或者通过 Visual Studio 的内置上传工具,以编程方式执行此操作。 You'll need the Azure SDK installed to do this.
你需要安装Azure SDK来执行此操作。
Uploading directly to blob storage直接上传到 Blob 存储
You do not need to upload your video to Azure Media Services directly.无需将视频直接上传到 Azure 媒体服务。 Instead, you can upload to a blob storage account (this is what I do), and then have your Azure Media Services account point to your blob storage.
相反,您可以上传到 Blob 存储帐户(我就是这样做的),然后让您的 Azure 媒体服务帐户指向您的 Blob 存储。
The reason I do this is because I can more easily organize and manage my files in there, either by naming my blob of the folders within it.我这样做的原因是因为我可以更轻松地组织和管理我的文件,或者通过命名其中的文件夹 blob。
Supported input formats for Azure Media Services Azure 媒体服务支持的输入格式
Various video, audio, and image file types can be uploaded to a Media Services account, with there being no restriction on the types or formats of files that you can upload using the Media Services SDK.可以将各种视频、音频和图像文件类型上传到媒体服务帐户,您可以使用媒体服务 SDK 上传的文件类型或格式没有限制。 However, the Azure Management portal restricts uploads to the formats that are supported by the Azure Media Encoder.
但是,Azure 管理门户将上传限制为 Azure 媒体编码器支持的格式。 Content encoded with the following video codecs may be imported into Media Services for processing by Azure Media Encoder:
使用以下视频编解码器编码的内容可以导入媒体服务以供 Azure 媒体编码器处理:
More information更多信息
I have more detailed information on all of this in a series of blog post tutorials on the subject. 我在有关该主题的一系列博客文章教程中提供了有关所有这些的更详细信息。 Let me know if there is anything more that I can do to clarify.
如果还有什么我可以做的澄清,请告诉我。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.