问题
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