Mar. 22, 2009David K
Hi,
I'm a newb to Actionscript and wanted to know how to install the autostarter plugin (from the Developer wiki). It's not just a matter of clicking on "Get This!". So what am I supposed to do? Can someone help with simple instructions?
Thanks in advance!
David K.
Mar. 22, 2009lefTy
First we need to know what style of player embedding code you are using.
Mar. 22, 2009David K
Here is the code for the page...
<script src="/swfobject.js"></script>
<script type='text/javascript'>
var s1 = new SWFObject('player.swf','player','230','193','9');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('flashvars','file=video/default.flv&autostart=true');
s1.addVariable("repeat","none");
s1.write('preview');
</script>
-David K
Mar. 22, 2009lefTy
<html>
<head>
<script src="/swfobject.js"></script>
</head>
<body>
<div id="playercontainer"><a id="preview" href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Get the Adobe Flash Player to see this video.</a></div>
<script type='text/javascript'>
var s1 = new SWFObject('player.swf', 'player', '230', '193', '9.0.124');
s1.addParam('allowfullscreen', 'true');
s1.addParam('allowscriptaccess', 'always');
s1.addVariable('file', 'video/default.flv');
s1.addVariable('autostart', 'true');
s1.addVariable('repeat', 'none');
s1.addVariable('plugins', 'autostarter');
s1.addVariable('autostarter.count', '3');
s1.write('preview');
</script>
<body>
<html>
Mar. 22, 2009David K
Ok, I copied and pasted exactly what you have there into my page. I reloaded and reloaded, but no success. It still plays every time. I adjusted the count to '1', also. Still no success.
Any ideas?
Thanks!
-David K
Mar. 22, 2009lefTy
Yeah, it works quite well. I'm up to 55 counts before it will autostart.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>Simple Autostart Plugin - JWMP v4.4.x - swfobject v2.1</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js"></script>
<script type='text/javascript'>
var flashvars =
{
'file': '/Movies/video1.flv',
'repeat': 'none',
'playlist': 'bottom',
'playlistsize': '60',
'plugins': 'autostarter',
'autostarter.count': '55',
'frontcolor': '86C29D', // text & icons (green)
'backcolor': '003367', // playlist background (blue)
'lightcolor': 'C286BA', // selected text/track highlight (red)
'screencolor': '000000', // screen background (white)
'id': 'playerId1',
'autostart': 'true'
};
var params =
{
'allowfullscreen': 'true',
'allowscriptaccess': 'always',
'bgcolor': '#000000'
};
var attributes =
{
'name': 'playerId1',
'id': 'playerId1'
};
swfobject.embedSWF('player-4.4.182.swf', 'player', '320', '320', '9.0.124', false, flashvars, params, attributes);
</script>
</head>
<body>
<div id="playercontainer" class="playercontainer"><a id="player" class="player" href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Get the Adobe Flash Player to see this video.</a></div>
<body>
<html>
Mar. 23, 2009David K
I tried to use what you posted - adjusting it to play my movie. It still didn't work. This time, it doesn't play unless I push "play". I tried emptying my cache and clearing cookies, but still no luck!
Help!
David K
Mar. 23, 2009lefTy
You have to clear the cookie manually.
Search for "com.jeroenwijering.autostarter".
I found it in: C:\Documents and Settings\Chris\Application Data\Macromedia\Flash Player\#SharedObjects\PQ6WPL39\willswonders.myip.org
Nov. 03, 2009kisscool82
I'm sorry but i've the same problem.
I've found and deleted the cookie file but the player still play everytime even if I define the autostarter.count to 1.
What can I do ?
Nov. 16, 2009Zachary Ozer
Can you paste a link to a page demonstrating the error?
Here are some helpful links to learn more about the JW Player™:
Earn money with ads from LongTail's AdSolution. Watch our demos and sign up now!
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.