SWFObject / 加载 smil 文件
为什么这不起作用?
<div class="videocontainer" id='mediaspace-55'></div>
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js?ver=3.0.1'></script>
<script type='text/javascript'><!--
var flashvars = {
provider: "highwinds",
file: "http://hwcdn.net/XXXXX/fms/pathtofile.smil",
image: "test.jpg"
};
var params = {
allowfullscreen: "true",
allowscriptaccess: "always"
};
var attributes = {
id: "mediaspace-55",
name: "mediaspace-55"
};
swfobject.embedSWF("player.swf", "mpl55", "710", "420", "9.0.0","expressinstall.swf", flashvars, params, attributes);
// playerReady('mediaspace-55', 'additional_variable');
//-->
</script>
我验证了所有链接的文件都存在。
我花了几天时间研究这个简单的 javascript 功能(我不是 javascript 程序员),现在我想完成该项目,但它停止工作了。 :-(
Why is this not working?
<div class="videocontainer" id='mediaspace-55'></div>
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js?ver=3.0.1'></script>
<script type='text/javascript'><!--
var flashvars = {
provider: "highwinds",
file: "http://hwcdn.net/XXXXX/fms/pathtofile.smil",
image: "test.jpg"
};
var params = {
allowfullscreen: "true",
allowscriptaccess: "always"
};
var attributes = {
id: "mediaspace-55",
name: "mediaspace-55"
};
swfobject.embedSWF("player.swf", "mpl55", "710", "420", "9.0.0","expressinstall.swf", flashvars, params, attributes);
// playerReady('mediaspace-55', 'additional_variable');
//-->
</script>
I verified that all the linked files exists.
I spent days working on this simple javascript functionality (I am not a javascript programmer) and now that I want to finalize the project, it stopped working. :-(
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
API 似乎已更改,请尝试以下操作:
此处的文档:http://code.google。 com/p/swfobject/wiki/documentation
It appears the API has changed, try this:
Documentation here: http://code.google.com/p/swfobject/wiki/documentation