简体   繁体   English

Azure媒体服务-无法通过浏览器在Android手机上播放视频

[英]Azure Media Service - Video can not play on Android Phone with browse

I upload a video(.mp4) to the Azure Media Service. 我将视频(.mp4)上传到Azure媒体服务。 The Encoding setting is H264 Adaptive Bitrate MP4 Set 1080p. 编码设置为H264自适应比特率MP4设置1080p。

I play the video on Iphone with Chrome, it works well. 我在带有Chrome的Iphone上播放视频,效果很好。

But I play it on Android with Chrome, it can't play. 但是我在带有Chrome的Android上播放,但无法播放。

I try to encode it another way, such as Playback via html5, but the result is that it can't be published. 我尝试对它进行另一种编码,例如通过html5进行播放,但结果是它无法发布。

Want to know how to solve it. 想知道如何解决。 thanks. 谢谢。

Can you share a bit more details on how you are trying to play it back on Chrome? 您能否分享更多有关如何尝试在Chrome上播放的详细信息? Which URL did you pass to Chrome? 您将哪个URL传递给Chrome?

Depending on the version of Android phone you are using there can be a lot of complex concerns to deal with. 根据您使用的Android手机版本,可能会涉及许多复杂的问题。

  1. Some versions of Android differ significantly by vendor or OEM. 某些Android版本因供应商或OEM的不同而有很大差异。 For example a Nexus 5 does not even have H.264 codecs installed on it, so it won't play back the video. 例如,Nexus 5甚至没有安装H.264编解码器,因此无法播放视频。
  2. Some devices supported an early version of the HLS protocol, while most modern ones support MPEG-DASH now. 一些设备支持HLS协议的早期版本,而大多数现代设备现在都支持MPEG-DASH。 You have to have a player that is intelligent enough to choose the right protocol (URL) for delivery. 您必须拥有一个足够智能的播放器,才能选择正确的协议(URL)进行传送。 Azure Media Player attempts to make the right decision for you based on your Azure Media Services streaming URL. Azure Media Player会尝试根据您的Azure Media Services流URL为您做出正确的决定。 Try it out on this page here to see if it plays back for you: http://ampdemo.azureedge.net/ 在此页面上尝试一下,看看它是否可以为您播放: http : //ampdemo.azureedge.net/

Finally, open the developer tools in Chrome (Ctrl-shift-I) and check the Console for Error messages or error codes that could help indicate why playback is failing (if you are able to debug via desktop that is) 最后,在Chrome(Ctrl-shift-I)中打开开发人员工具,然后在控制台中查看错误消息或错误代码,这些错误消息或错误代码可帮助指示播放失败的原因(如果您能够通过台式机进行调试)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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