嵌入自动播放false在Mozilla中不起作用 [英] Embed autoplay false not working in Mozilla

查看:214
本文介绍了嵌入自动播放false在Mozilla中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mozilla中使用嵌入标签。视频仅在页面加载时播放。自动播放( autoplay =false)对我没有帮助。任何人都可以帮助我吗?

预先感谢!

 < embed id =video1 src =Wildlife.wmvtype =application / mediaplayerautoplay =falsewidth =470height =280>< / embed> 


解决方案

这是Chrome和Firefox的一个已知错误。尝试使用另一个源扩展名, .wmv 对于没有 Flip4mac 的Mac用户也是无效的。



这个bug也可以通过使用< object> 来解决:

 < object width =470height =280type =application / x-mplayer2> 
< param name =fileNamevalue =Wildlife.wmv>
< param name =autostartvalue =0>
< / object>

< embed> 可能是因为使用了错误的 type ,导致更好的解决方案:




这种情况下的最佳解决方案



然后,使用< embed> 正在设置插件url 类型自动启动类似这:

 < embed type =video / x-ms-wmvpluginspage =http://www.microsoft .com / Windows / MediaPlayer /autostart =0width =470height =280loop =0src =Wildlife.wmv>< / embed> 


I am using embed tag in Mozilla. Video start playing on page load only. Autoplay (autoplay="false") is not helping me. Can any one help me please?

Thanks in advance !

<embed id="video1" src="Wildlife.wmv" type="application/mediaplayer" autoplay="false" width="470" height="280"></embed>

解决方案

This is a know bug for Chrome and Firefox. Try using another source extension, .wmv is also not valid for Mac users without Flip4mac.

Also this bug can be fixed by using <object> like this:

<object width="470" height="280" type="application/x-mplayer2">
  <param name="fileName" value="Wildlife.wmv">
  <param name="autostart" value="0">
</object>

The bug in the <embed> can be caused by using the wrong type, so move on to the better solution:


Best solution in this case

Then again, the best solution for using <embed> is setting the plugin url, type and autostart like this:

<embed type="video/x-ms-wmv" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" autostart="0" width="470" height="280" loop="0" src="Wildlife.wmv"></embed>

这篇关于嵌入自动播放false在Mozilla中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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