如何使这个Flash文件autplay? [英] How do I make this flash file autplay?

查看:216
本文介绍了如何使这个Flash文件autplay?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看看这个加载在这里的Flash文件: http://www.gameprehacks.com/ad.html



或查看以下代码

 < object type =application / x-shockwave-flashwidth =336height =280
data =http://buxle.com/buxle-starsbanner.swf>
< param name =playvalue =true/>
< param name =movievalue =http://buxle.com/buxle-starsbanner.swf/>
< param name =wmodevalue =direct/>
< param name =pluginspagevalue =http://www.adobe.com/go/getflashplayer/>
< / object>

它可以在Internet Explorer中正常工作,但在Chrome中,该文件具有播放按钮。我需要这个在Chrome中自动播放。

任何帮助都非常感谢。



谢谢

$ b Chrome不会自动播放基于Flash的广告。

解决方案

这已经很长时间了。

$ b $ b

无论如何要避免播放图标:



如果您的网站也位于HTTPS服务器上,请尽量使用(安全) https:// 链接。



使用增加的宽度/高度以及基于HTTPS的URL来尝试此版本的代码。这适用于我(但你可以尝试HTTP链接):

 < object type =application / x-shockwave- flashwidth =480height =400
data =https://buxle.com/buxle-starsbanner.swf>
< param name =playvalue =true/>
< param name =movievalue =https://buxle.com/buxle-starsbanner.swf/>
< param name =wmodevalue =direct/>
< param name =pluginspagevalue =https://www.adobe.com/go/getflashplayer/>
< / object>


Check out this flash file loaded here: http://www.gameprehacks.com/ad.html

or view code below

<object type="application/x-shockwave-flash" width="336" height="280" 
data="http://buxle.com/buxle-starsbanner.swf" >
<param name="play" value="true" />
<param name="movie" value="http://buxle.com/buxle-starsbanner.swf" />
<param name="wmode" value="direct" />
<param name="pluginspage" value="http://www.adobe.com/go/getflashplayer" />
<embed type="application/x-shockwave-flash" src="http://buxle.com/buxle-starsbanner.swf" width="336" height="280" wmode="direct" play="true" pluginspage="http://www.adobe.com/go/getflashplayer" />
</object>

It works in Internet Explorer as it should, but in Chrome, the file has a play button. I need this to autoplay in Chrome. How can I achieve this?

Any help is greatly appreciated.

Thank you

解决方案

Chrome does not auto-play Flash-based adverts. It has been like this for a long time.
See this article from 2015 announcing the plan for Google's browser.

Anyway to avoid the "Play" icon :

  • Have both the SWF file and also the HTML file together in same location.
  • or... Set a high width and height to avoid appearing like a banner/advert.

Also try to use (secure) https:// links whenever possible if your site is also on HTTPS server.

Try this version of your code using increased width/height and also HTTPS-based URL. This worked for me (but you can try with HTTP links) :

<object type="application/x-shockwave-flash" width="480" height="400" 
data="https://buxle.com/buxle-starsbanner.swf" >
<param name="play" value="true" />
<param name="movie" value="https://buxle.com/buxle-starsbanner.swf" />
<param name="wmode" value="direct" />
<param name="pluginspage" value="https://www.adobe.com/go/getflashplayer" />
<embed type="application/x-shockwave-flash" src="https://buxle.com/buxle-starsbanner.swf" width="336" height="280" wmode="direct" play="true" pluginspage="https://www.adobe.com/go/getflashplayer" />
</object>

这篇关于如何使这个Flash文件autplay?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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