SWFObject / 加载 smil 文件

发布于 2024-10-02 18:04:51 字数 1041 浏览 4 评论 0原文

为什么这不起作用?

<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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

戏舞 2024-10-09 18:04:51

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

It appears the API has changed, try this:

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

Documentation here: http://code.google.com/p/swfobject/wiki/documentation

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文