gpt4 book ai didi

javascript - SWFObject/载入smil文件

转载 作者:行者123 更新时间:2023-11-29 15:04:53 28 4
gpt4 key购买 nike

为什么这不起作用?

<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 程序员),现在我想完成这个项目,但它停止了工作。 :-(

最佳答案

看来 API 已经改变了,试试这个:

swfobject.embedSWF("http://mydomain.com/player/player.swf", "mpl55", "710", "420", "9.0.0", "expressInstall.swf");

此处的文档:http://code.google.com/p/swfobject/wiki/documentation

关于javascript - SWFObject/载入smil文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4187312/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com