用swfobject插入了flash,但chrome下不能自动播放,有人遇到过吗?
用swfobject插入了flash,但chrome下不能自动播放,下面是代码,不知道是什么原因。。
var videoURL = "../../static/image/index/6_logo.swf";
var w = 200;
var h = 200;
var logoURL = "../../static/image/index/6_logo.swf";
if (videoURL != null && videoURL != "") {
swfobject.embedSWF(
"../../static/image/index/6_logo.swf",
'logo',w, h, '10.0.0', '',
{videoURL : videoURL,W : w,H : h, logoURL:logoURL},
{allowfullscreen:'true',wmode:'transparent', loop:'false', play:'true'})
}
aaarae
10 years, 4 months ago