HTML5 中的移动视频 - 关闭视频播放器或完成后重定向
我几乎已经完成了一个利用 jquery 移动框架的移动网站,但在我提供的视频方面遇到了一些问题。 iPhone 和 Android 都在各自设备的本机播放器中打开视频。视频结束后,屏幕变黑。但是,我希望播放器关闭,然后使他们选择视频的浏览器页面再次可见。有没有办法在视频播放完毕后动态关闭播放器?我看过这篇帖子以及这篇帖子但似乎没有一个清晰的 回答。我的测试站点是此处。
关闭 iPhone/Android 视频播放器或重定向回页面是否更容易?或者这确实是相同的动作,只是表述不同?
I have nearly completed a mobile Web site which leverages the jquery mobile framework but have run into a few problems regarding the videos I am serving. Both iPhone and Android open a video in their respective device’s native player. Once the video ends the screen goes black. I would like, however, the player to close and then make the browser page they selected the video from visible again. Is there a way to simply close the player dynamically once the video has completed? I have looked at this post as well as this post but there does not seem to be a clear answer. My test site is here.
Is it easier to close the iPhone/Android video player or do a redirect back to page? Or is this really the same action but simply stated differently?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 Android 时,视频会自动关闭,无需任何额外代码。
我在iOS上使用了以下代码来关闭视频播放器(使用jquery绑定事件):
详细信息请查看以下网址:
http://developer.apple.com/library/safari/#documentation/AudioVideo/Reference/HTMLVideoElementClassReference/HTMLVideoElement/HTMLVideoElement.html#//apple_ref/doc/uid/TP40009356
when using Android, the video closed automatically for me without any extra code.
I used the following code for iOS to close the video player (using jquery to bind event):
Check out the following url for details:
http://developer.apple.com/library/safari/#documentation/AudioVideo/Reference/HTMLVideoElementClassReference/HTMLVideoElement/HTMLVideoElement.html#//apple_ref/doc/uid/TP40009356