Flash对象不能在跨域上自动播放 [英] flash object not autoplay on cross domain

查看:165
本文介绍了Flash对象不能在跨域上自动播放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用Nginx运行我的WordPress站点。
我把我的Flash文件保存在另一个具有不同域名
的文档根目录下,但是是同一个服务器。
当我从我的网站访问这些文件时,他们不是自动播放。
问题的原因可能是什么?当我从相同的域或文档根目录访问它们时,它们正在工作。如何解决这个问题?

解决方案


点击运行问题...什么是问题的原因可能是什么?


您的SWF太小,被Chrome浏览器误认为Banner / Adverts。广告大小的SWF内容不能自动播放,如果从不同的位置来到容器HTML文件。



修复 strong>:


  • 将宽度和高度设置为最小值:h = 600时,w = 800:这让浏览器知道它是一个 -size 应用程序,而不仅仅是需要自动阻止的小广告。

    例如:

    < embed src =https://example.com/files/myFlash.swfwidth = 800 height = 600>



或其他...


I'm running my wordpress site with Nginx. I keep my flash files in another document root with different domain name but the same server . When I access those file from my website they are not autoplay . What is the cause of problem could be? They are working when I access them from same domain or document root . How can I solved this problem?

解决方案

"click to run" issue... What is the cause of problem could be?

Your SWF are too small and are mistaken as Banner/Adverts by Chrome browser. Advert-sized SWF content does not auto-play if coming from a different location to the container HTML file.

fix:

  • Set width and height to minimum : w=800 by h=600 : This lets browser know it's a full-size application, not just some small advert that needs "auto-blocking".
    An example :
    <embed src="https://example.com/files/myFlash.swf" width=800 height= 600>

OR else...

这篇关于Flash对象不能在跨域上自动播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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