【发布时间】:2016-08-11 15:36:28
【问题描述】:
我正在为我的 Django 项目开发视频点播功能。它将由 Azure 媒体服务提供支持。
目前,我正在尝试通过以下代码运行上传的视频:
<video id="azuremediaplayer" class="azuremediaplayer amp-default-skin amp-big-play-centered" controls autoplay width="640" height="400" poster="" data-setup='{"techOrder": ["azureHtml5JS", "flashSS", "silverlightSS", "html5"], "nativeControlsForTouch": false}'>
<source src="{{ video.streaming_url }}" type="video/mp4" />
<p class="amp-no-js">
To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video
</p>
</video>
其中{{ video.streaming_url }} 包含http://example.streaming.mediaservices.windows.net/66193aae-b739-4cb5-b4b9-f4a4a151c791/myproject.ism/manifest 类型的流式URL。
我的问题是我收到错误找不到与当前浏览器环境兼容的源 (0x10600003)。事实上,当我转到 http://ampdemo.azureedge.net/azuremediaplayer.html 时,我也会遇到这个错误(即官方的 azure 媒体播放器演示)。
似乎0x10600003 错误代码暗示Autoselect failed to find a player。 请注意,Youtube 视频在我的环境中完美运行。我的操作系统是 Ubuntu 14.04,浏览器是 Mozilla Firefoz 41.0.1。之前的 unaccepted answer 指导操作者安装和启用 Silverlight。我不能指望我所有的用户都这样做。如何让播放正常工作?
【问题讨论】:
标签: azure azure-media-services