播放前HTML5视频缓冲 [英] HTML5 video buffering before the playback

查看:574
本文介绍了播放前HTML5视频缓冲的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个html页面,以及我代码中视频的链接。我可以在打开页面后立即开始缓冲视频,并仅在视频完全缓冲时显示播放按钮吗?重要的是,我应该在加载时通​​过innerHTML()动态地放置这个视频。在此之前,视频标签根本不应该在页面上。

I have an html page, and a link to the video in my code. Can I start buffering the video as soon as I've opened page, and show the 'play' button only when the video is completely buffered? Important, thet I should put this video dynamicly via innerHTML() when it's loaded. Before that, the video tag shouldn't be on the page at all.

推荐答案

对于解决方案我使用了 video.js jquery插件。

For solution I have used video.js jquery plugin.

这篇关于播放前HTML5视频缓冲的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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