防止视频在网站上预加载 [英] Prevent video from pre-loading on website

查看:408
本文介绍了防止视频在网站上预加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站上有一段视频的代码如下。我打开网站后立即关闭了自动播放功能,以防止播放。问题是视频仍然自动加载,这会伤害一些访问者的带宽。

I have the following code for a video on my website. I have the AutoPlay turned off in order to prevent playback as soon as I open the website. The problem is that the video still loads automatically and this hurts the bandwidth of some visitors. What can I do to prevent the video from loading until the user decides to play it?

<object width="530" height="405" scale="to fit" hspace="10" border="5">
<param name="VideoTitle" value="/urlpath/movie.m4v" />
<param name="AutoStart" value="False" />
<param name="ShowControls" value="True" />
<param name="ShowStatusBar" value="True" />
<param name="ShowDiplay" value="True" />
<param name="AutoRewind" value="True" />
<embed width="530" height="405" scale="tofit" hspace="0" filename= "/urlpath/movie.m4v"
    autostart="False" showcontrols="True" showstatusbar="True" showdiplay="True"
    autorewind="True" border="1" src="/urlpath/movie.m4v"></embed>
</object>

预先致谢。

Thanks in advance.

推荐答案

不要在您的页面中包含代码。一旦用户点击假冒的PLAY按钮,将其注入页面。

Don't include the code in your page. Inject it into the page once the user clicks a fake PLAY button.

这篇关于防止视频在网站上预加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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