Windows Phone 8 & Html5 video : Is it possible to play video inline in webpage

▼魔方 西西 提交于 2019-12-14 04:18:56

问题


I want to play a video which is embedded on a webpage. On Windows phone however, first of all the video isn't played inline, but downloaded and played apart from the webpage. Secondly, the 'oncanplaythrough' event doesn't seem to fire?

<video id="introVideo" preload="auto" oncanplaythrough="alert('can play');this.play()">
    <source src="videos/Intro.mp4" type="video/mp4"/></source>
    Your browser doesn't support html5 video<br />
</video>

Is it possible to play a html5 video inline on WP8, and if so, how to do it?


回答1:


It is, unfortunately, not possible on WP8:

Differences with Windows 8

There are some minor differences between Internet Explorer 10 for Windows 8 and Internet Explorer 10 for Windows Phone that you need to be aware of. Internet Explorer 10 for Windows Phone does not support the following:

  • Inline video

Update:

With the upcoming release of Windows Phone 8.1, it is highly likely IE11 Mobile will support inline HTML5 video. This was demonstrated in a leaked WP8.1 SDK.



来源:https://stackoverflow.com/questions/17744568/windows-phone-8-html5-video-is-it-possible-to-play-video-inline-in-webpage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!