Windows Phone 8& Html5视频:是否可以在网页中播放视频内联 [英] Windows Phone 8 & Html5 video : Is it possible to play video inline in webpage

查看:134
本文介绍了Windows Phone 8& Html5视频:是否可以在网页中播放视频内联的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想播放嵌入网页的视频。然而,在Windows手机上,首先视频不是内联播放,而是从网页上下载和播放。其次,'oncanplaythrough'事件似乎没有触发?

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>

是否有可能在WP8上播放html5视频,如果是这样,该怎么做?

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

推荐答案

不幸的是,在WP8上无法实现


与Windows 8的差异

Internet Explorer 10 for Windows 8和Internet Explorer 10 for Windows Phone之间存在一些细微差别,您需要注意这些差异。适用于Windows Phone的Internet Explorer 10不支持以下内容:

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:


  • 内联视频

更新

随着即将发布的Windows Phone 8.1, IE11 Mobile极有可能支持内联HTML5视频。 泄漏的WP8.1 SDK

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.

这篇关于Windows Phone 8&amp; Html5视频:是否可以在网页中播放视频内联的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆