Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

problem calling skin using swfobject

1 reply [Last post]

I'm trying to use a skin and am having trouble with where to put the code to get it to load. Here's the code I'm using to embed the default player, which works fine:

src="http://videomi.com/swfobject.js"></script>

<div align="center">

<script src="http://videomi.com/swfobject.js"></script>

<script type="text/javascript">

var player = null;

function playerReady(obj)
{
player = document.getElementById(obj.id);
};

var flashvars =
{
file: "http://videomi.com/videos/StMein_Welcome/StMein_WelcomeFinal_H264_512x288.mp4",
id: "player1",
autostart: "false"
};

var params =
{
allowfullscreen: "true",
allowscriptaccess: "always",
wmode: "transparent"
};

var attributes =
{
id: "player1",
name: "player1"
};

swfobject.embedSWF("player.swf", "placeholder1", "432", "344", "9.0.124", false, flashvars, params, attributes);

I've tried putting it with the var flashvars =, I've tried putting it with the var params =, and nothing seems to work. This is the format I'm using, which matches the other variables, which do all work correctly.

skin: "http//www.path/nacht.swf

Any help appreciated.

Chris Blair

I put this in my "body" tags and it works.
<script type="text/javascript" >
var flashvars = {
allowscriptaccess:"always",
file:"streamtest1",
type:"fcsubscribe",
streamer:"rtmp://enteryourrtmphere",
repeat:"always",
skin:"swf/nyt_shell_skin.swf",
stretching:"fill",
autostart:true,
version:"4.1"
},
params = {
allowfullscreen:true,
wmode:"transparent",
allowScriptAccess: "always"
},
attributes = {
id: "stream"
,name:"stream"
};
swfobject.embedSWF("swf/player-licensed.swf", "videodiv", "500", "350", "10.0.0", "", flashvars, params, attributes);

</script>