我想播放嵌入在网页上的视频。然而,在 Windows Phone 上,首先视频不是内嵌播放的,而是脱离网页下载和播放的。其次,“oncanplaythrough”事件似乎没有触发?
<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>
是否可以在 WP8 上内嵌播放 html5 视频?如果可以,该怎么做?
最佳答案
不幸的是,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
更新:
随着 Windows Phone 8.1 的即将发布,IE11 Mobile 很有可能支持内嵌 HTML5 视频。这已被证明in a leaked WP8.1 SDK .
关于html - Windows Phone 8 和 Html5 视频 : Is it possible to play video inline in webpage,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17744568/