Flash对象不能在跨域上自动播放 [英] flash object not autoplay on cross domain
问题描述
我把我的Flash文件保存在另一个具有不同域名
的文档根目录下,但是是同一个服务器。
当我从我的网站访问这些文件时,他们不是自动播放。
问题的原因可能是什么?当我从相同的域或文档根目录访问它们时,它们正在工作。如何解决这个问题?
点击运行问题...什么是问题的原因可能是什么?
您的SWF太小,被Chrome浏览器误认为Banner / Adverts。广告大小的SWF内容不能自动播放,如果从不同的位置来到容器HTML文件。
修复 strong>:
- 将宽度和高度设置为最小值:h = 600时,w = 800:这让浏览器知道它是一个 -size 应用程序,而不仅仅是需要自动阻止的小广告。
例如:
< embed src =https://example.com/files/myFlash.swfwidth = 800 height = 600>
或其他...
- 将SWF放在与HTML文件相同的位置。所以路径应该是... ...
HTML = https://example.com /project1/myPage.html (此页面显示的是SWF)。
SWF = https://example.com/project1/myFlash.swf (这个SWF可以自动播放任何尺寸)。
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...
- Put SWF in same location as HTML file. So the path should be...
HTML = https://example.com/project1/myPage.html (this page shows the SWF).
SWF = https://example.com/project1/myFlash.swf (this SWF can auto-play at any size).
这篇关于Flash对象不能在跨域上自动播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!