Go
Not registered? Sign up!

skin code placement question

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

Oct. 20, 2009Dino Ortaloni

hi,

I am using the script of Geoff Stearns and I do not know where to put the lines so.addVariable('skin',"/bla/bla/skin.swf"). I have some understanding of javascript but not much.

Could you please help me and I also would like you to put the answer also in the tutorial as I hope many people will face the problem I have.

Thanks for your answers.


/**
* SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
*
* SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
* http://www.opensource.org/licenses/mit-license.php
*
*/
if (typeof deconcept == "undefined") {
var deconcept = new Object();
}
if (typeof deconcept.util == "undefined") {
deconcept.util = new Object();
}
if (typeof deconcept.SWFObjectUtil == "undefined") {
deconcept.SWFObjectUtil = new Object();
}
deconcept.SWFObject = function (_1, id, w, h, _5, c, _7, _8, _9, _a) {
if (!document.getElementById) {
return;
}
this.DETECT_KEY = _a ? _a : "detectflash";
this.skipDetect = deconcept.util.getRequestParameter(this.DETECT_KEY);
this.params = new Object();
this.variables = new Object();
this.attributes = new Array();
if (_1) {
this.setAttribute("swf", _1);
}
if (id) {
this.setAttribute("id", id);
}
if (w) {
this.setAttribute("width", w);
}
if (h) {
this.setAttribute("height", h);
}
if (_5) {
this.setAttribute("version", new deconcept.PlayerVersion(_5.toString().split(".")));
}
this.installedVer = deconcept.SWFObjectUtil.getPlayerVersion();
if (!window.opera && document.all && this.installedVer.major > 7) {
deconcept.SWFObject.doPrepUnload = true;
}
if (c) {
this.addParam("bgcolor", c);
}
var q = _7 ? _7 : "high";
this.addParam("quality", q);
this.setAttribute("useExpressInstall", false);
this.setAttribute("doExpressInstall", false);
var _c = (_8) ? _8 : window.location;
this.setAttribute("xiRedirectUrl", _c);
this.setAttribute("redirectUrl", "");
if (_9) {
this.setAttribute("redirectUrl", _9);
}
};
deconcept.SWFObject.prototype = {
useExpressInstall: function (_d) {
this.xiSWFPath = !_d ? "expressinstall.swf" : _d;
this.setAttribute("useExpressInstall", true);
},
setAttribute: function (_e, _f) {
this.attributes[_e] = _f;
},
getAttribute: function (_10) {
return this.attributes[_10];
},
addParam: function (_11, _12) {
this.params[_11] = _12;
},
getParams: function () {
return this.params;
},
addVariable: function (_13, _14) {
this.variables[_13] = _14;
},
getVariable: function (_15) {
return this.variables[_15];
},
getVariables: function () {
return this.variables;
},
getVariablePairs: function () {
var _16 = new Array();
var key;
var _18 = this.getVariables();
for (key in _18) {
_16[_16.length] = key + "=" + _18[key];
}
return _16;
},
getSWFHTML: function () {
var _19 = "";
this.addVariable('skin', '/www/memberkit/js/flvplayer/skin.swf');//// That one??
if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) {
.....

Oct. 22, 2009Bill Bright

Unfortunately we don't have any experience working with Geoff Stearns' script, so we couldn't really help you, in this case.

Have you tried just installing our player and a skin through the normal channels?

Oct. 27, 2009Dino Ortaloni

Can you explain normal channels?

I have a jw player in my site. I am using it for a long time. but I want to change the skin.

Oct. 28, 2009Bill Bright

Dino,

I mean using a standard JW Player installation. We're not familiar with Geoff Stearns' script. If you want, you can use our Setup Wizard to configure your planer and set a skin:

http://www.longtailvideo.com/support/jw-player-setup-wizard

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.