[英]HTML5 <video> does not play on Android emulator 4.0
I try play a video in html5 page on Android emulator 0f version 4.0, and I found that the screen is black(can not show the video picture) and the audio play normally. 我尝试在Android模拟器0f版本4.0的html5页面上播放视频,我发现屏幕是黑色的(无法显示视频图片)并且音频播放正常。 I have searching the Internet for a couple of hours, still I can't get the answer I want.
我在互联网上搜索了几个小时,但仍然无法得到我想要的答案。 Can someone tell me reason or the solutions?
有人可以告诉我原因或解决方案吗? By the way, I'm sorry for my poor English.
顺便说一句,我很抱歉我的英语不好。 Code is listed as below:
代码如下:
<div id="CHPlayer">
<video id="video" usemap="#Map" poster="./sources/1/t2.jpg" xmlsrc="./sources/1/t2.xml">
<source src="./sources/1/t2.mp4" type="video/mp4">
</video>
<img id="insertBar" src="./sources/1/t2.jpg" usemap="#Map" />
</div>
Does your video fit under the android requirements? 您的视频是否符合Android要求? Take a look at: http://developer.android.com/guide/appendix/media-formats.html
请查看: http : //developer.android.com/guide/appendix/media-formats.html
Also check under the initial grid for the encoding requirments. 还要在初始网格下检查编码要求。
If it is compatible then you also may have to make sure it isn't the emulator. 如果它是兼容的,那么你也可能必须确保它不是模拟器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.