1

以下嵌入代码来自http://hd.se/landskrona/2010/04/09/kunglig-glans-pa-idrottsgalan/但它在 Internet Explorer 8 中不起作用。Firefox 没有问题。

有什么改进建议吗?谢谢你的时间!

<object width="480px" height="294px" id="_36313041" data="http://hd.se/static/media/html/flash/video-3/flowplayer.swf" type="application/x-shockwave-flash">
<param name="movie" value="http://hd.se/static/media/html/flash/video-3/flowplayer.swf" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="flashvars" value='config={"key":"$3fff7448b28a8cffc85","contextMenu":["hd.se videospelare 1.0"],"plugins":{"rtmp":{"url":"http://hd.se/static/media/html/flash/video-3/flowplayer.rtmp.swf"},"controls":{"height":24,"opacity":1,"all":false,"play":true,"time":true,"scrubber":true,"playlist":false,"mute":true,"volume":true,"fullscreen":true,"backgroundColor":"#222222","backgroundGradient":"none","buttonColor":"#7c7c7c","buttonOverColor":"#36558b","progressColor":"#7c7c7c","bufferColor":"#7c7c7c","timeColor":"#ffffff","durationColor":"#ffffff","timeBgColor":"#222222","scrubberHeightRatio":0.5,"scrubberBarHeightRatio":0.5,"volumeSliderHeightRatio":0.5,"volumeBarHeightRatio":0.5,"autoHide":"fullscreen","hideDelay":1800,"tooltips":{"buttons":true,"play":"Spela","pause":"Paus","next":"Nästa","previous":"Föregående","mute":"Ljud av","unmute":"Ljud på","fullscreen":"Fullskärmsläge","fullscreenExit":"Lämna fullskärmsläge"},"tooltipColor":"#153872","tooltipTextColor":"#ffffff"},"contentIntro":{"url":"http://hd.se/static/media/html/flash/video-3/flowplayer.content.swf","top":0,"width":736,"border":"none","backgroundColor":"#202020","backgroundGradient":"none","borderRadius":"none","opacity":"85pct","display":"none","closeButton":true}},"canvas":{"backgroundColor":"#000000","backgroundGradient":"none"},"play":{"replayLabel":"Spela igen"},"screen":{"bottom":24},"clip":{"scaling":"fit","autoPlay":true},"playlist":[{"provider":"rtmp","netConnectionUrl":"rtmp://fl0.c06062.cdn.qbrick.com/06062","url":"ncode/hdstart","autoPlay":false,"scaling":"fit"},{"url":"http://hd.se/multimedia/archive/00425/_kunligglans_HD_VP6_425359a.flv","scaling":"fit","autoPlay":true},{"provider":"rtmp","netConnectionUrl":"rtmp://fl0.c06062.cdn.qbrick.com/06062","url":"ncode/hdstopp","autoPlay":true,"scaling":"fit"}]}' />
</object>

2010 年 5 月 14 日更新:

如果我没记错的话,HD.se 使用Flowplayer,所有这些 flasvars 都是为了这个。也许这里有人对Flowplayer很好?我自己从来没有用过。

4

2 回答 2

1

widthheight属性中不能有“px” ,只能有一个数字。ID 也不能以下划线开头,只能以字母开头。

所以你的代码应该开始<object width="480" height="294" id="f_36313041"。但是,如果 ID 用于任何事情,您可能必须在某处更改外部代码。

您是否也仔细检查了“flashvars”的值?这是一个非常长且复杂的字符串,因此很容易在某处出现错误。

于 2010-05-12T15:35:53.953 回答
0

您不应直接创建对象/嵌入标签来嵌入 Flash。始终使用外部 JS 文件来生成所需的标签。 SWFObject是使用最广泛的一种。

http://en.wikipedia.org/wiki/SWFObject

关于为什么要使用外部 JS 文件的信息:

http://blog.deconcept.com/2005/12/15/internet-explorer-eolas-changes-and-the-flash-plugin/

于 2010-05-12T15:46:22.857 回答