[英]How to play manifest file/build url for Azure Media Services v3?
Using v3 of Azure Media Services. 使用Azure媒体服务v3。 My streaming endpoint is running. 我的流终结点正在运行。 I want users to upload any type of video file(.avi for example) through the browser and play them without a plugin. 我希望用户通过浏览器上传任何类型的视频文件(例如.avi),并在没有插件的情况下播放它们。 I understand that requires background encoding. 我了解需要后台编码。
I've uploaded an asset, created an encoding job for it and set up a webhook to notify me when its done. 我已经上传了资产,为其创建了编码工作,并设置了一个Webhook,以在完成时通知我。 I then create a streaming locator for it and store the smooth streaming path. 然后,我为其创建一个流定位器并存储平滑的流路径。
It ends up looking like: https://{StreamingEndpoint}/{StreamingLocator}/{filename}.ism/manifest 最终看起来像:https:// {StreamingEndpoint} / {StreamingLocator} / {filename} .ism / manifest
I can download the manifest file so the url seems correct but I've tried the video in https://ampdemo.azureedge.net/azuremediaplayer.html?url=%2F%2F and my own site without success. 我可以下载清单文件,使URL看起来正确,但是我已经尝试在https://ampdemo.azureedge.net/azuremediaplayer.html?url=%2F%2F和我自己的站点中播放视频,但未成功。
Can anyone tell me what I'm missing? 谁能告诉我我所缺少的吗?
Couple of quick questions for clarification. 几个简短的问题需要澄清。
If you are still seeing issues - try one of our Quickstarts to confirm they are working for you. 如果您仍然遇到问题,请尝试使用我们的快速入门之一,以确认它们是否对您有用。
After some searching, It was a combination of me not understanding the manifest file/my video having no audio that caused the problem. 经过一番搜索,是我不了解清单文件/我的视频(没有音频)导致的问题。
For the manifest, I was using the smooth streaming link instead of the dash link when playing in Chrome. 对于清单,我在Chrome浏览器中播放时使用的是流畅的流媒体链接而不是破折号链接。 I've swapped to Azure Media Player from video.js for auto swapping DASH/HLS/SmoothStreaming because I didn't want to handle that myself. 我已经从video.js交换到Azure Media Player,用于自动交换DASH / HLS / SmoothStreaming,因为我不想自己处理。
I also came up against the video not playing without audio which I fixed by switching encoding. 我还遇到了视频无法播放而不是音频的问题,我通过切换编码来解决了这一问题。
Thanks to @johndeu for the help. 感谢@johndeu的帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.