Hi,
Upon refreshing the page in IE the video doesn't play anymore but just plays the audio. It works fine in Firefox and if you embed it directly. Below is the code I am using:
<script type="text/javascript" src="/lib/swf_player/swfobject.js"></script>
<script type="text/javascript">
function createPlayer(thePlayer, theFile) {
var flashvars = {
file:theFile,
autostart:"true",
controlbar:"none"
}
var params = {
allowfullscreen:"true",
allowscriptaccess:"always"
}
var attributes = {
id:thePlayer,
name:thePlayer
}
swfobject.embedSWF("player.swf", "placeholder1", "250", "150", "9.0.115", false, flashvars, params, attributes);
}
</script>
<body bgcolor="#DDDDDD" onload="createPlayer('player1', 'get_healthy.flv')">
<div style="margin-top: -180px; margin-right: 165px; float: right;"><h3><a href="http://www.gethealthynsw.com.au/">Get Healthy</a></h3></div>
<div class="clear-hidden"></div>
<div style="margin-top: -160px; float: right; border: 2px solid #336699;">
<div id="placeholder1">
<a href="http://www.adobe.com/go/getflashplayer">Get flash</a> to see this player
</div>
</div>
</body>
I am clueless!!
<script src="http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js"></script><script type="text/javascript">
var flashvars =
{
file: 'get_healthy.flv',
autostart: 'true'
id: 'player1',
controlbar: 'none',
autostart: 'true'
};
var params =
{
allowfullscreen: 'true',
allowscriptaccess: 'always'
};
var attributes =
{
id: 'player1',
name: 'player1'
};
swfobject.embedSWF('player.swf', 'placeholder1', '250', '150', '9.0.124', false, flashvars, params, attributes);
</script>
</head>
<body bgcolor="#DDDDDD">
Let swfobject monitor the DOM loading and determine when to write the object element for embedding the player.