当前位置: 动力学知识库 > 问答 > 编程问答 >

javascript - SWFObject not playing MP3 in IE10 and lower with new Adobe Flash upgrade

问题描述:

I am using SWFObject 1.5 with flash player 14.0.0.145 and SW flv player 3.x.x. My code used to work fine in all version of IE, FF and chrome earlier(Until i think we had flash 14.0.0.125), but after the recent upgrade its not working in IE 10 and lower while works fine in IE 11, FF and chrome.

Any suggestion? Also any link to newer version of SW flv player would be helpful too.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html><head>

<meta http-equiv="X-UA-Compatible" content="IE=8">

<script type="text/javascript" src='js/swfobject.js'></script>

</head><body bgcolor="#FFFFFF">

<div id="audio_clip">You need to upgrade your Flash Player to at least version 8 to view this video content.<a id="1" href="http://www.adobe.com/flashplayer/">Download the latest version of Flash Player</a></div>

<script type="text/javascript">

// <![CDATA[

var so = new SWFObject("js/flvplayer_updated.swf","flvplayer","592","342","8","#000000");

so.addVariable("file", "<s:property value="audioUrl"/>");

so.addVariable("autostart", "true");

so.addVariable("screencolor", "#FFFFFF");

so.write("audio_clip");

// ]]>

</script>

</body></html>

分享给朋友:
您可能感兴趣的文章:
随机阅读: