Go
Not registered? Sign up!

problem calling skin using swfobject

Google Translate
2 posts | return to the Skins forum | get the rss feed for this thread

Sep. 25, 2009Chris Blair

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

Nov. 10, 2009Dan

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>

Add a reaction

You can also return to the category or try this search for related threads.


 

Search the Forums

Go

Support

Support Here are some helpful links to learn more about the JW Player™:

Monetize Your Video

Monetize Your Video Earn money with ads from LongTail's AdSolution. Watch our demos and sign up now!

Why Buy a License?

Why Buy a License? If you don’t buy a commercial license, you cannot use a JW Player™ on (i) a site that has ads; (ii) a corporate site; or a (iii) CMS. Our licenses are very inexpensive, so what are you waiting for? Buy a license today.