Oct. 26, 2009Rudy Pohl
Hi There:
I'm an experienced web developer but new to JW Player. I just bought my commerical license paid for the support plan and here I am with my first question.
I have tried everything I could to remove the two black sidebars from my player and can't do it. The video was shot in 4x3, 640x480. It is played in a pop-up window. Here's the link to the sample. www.websbyu.com/tonygreco/
Here's the HTML for my main page:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Start</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
<script src="popup.js" language="javascript"></script>
</head>
<body bgcolor="#ffffff">
<br><br>
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="10%">
<tr>
<td width="100%" align="center" valign="middle"><a href="javascript:popupper('popup.html',640,480,'pop',0,0,1,0,0,0)">
<font face="verdana, arial, helvetic", size="4">
<b>Click here to view Tony's demo</b></font><a><br>
<font size=2 face="verdana, arial, helvetic">If your internet connection is slow, <br>please wait for file to be downloaded before playing</font></td></td>
</tr>
</table>
<br><br>
</body>
</html>
Here's the code to my pop-up page:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>SJW Player</title>
</head><body xbgColor="#E2E6DE" leftMargin="0" topMargin="0" rightMargin="0" marginwidth="0" marginheight="0" style="margin:0px">
<script type='text/javascript' src='swfobject.js'></script>
<div id='mediaspace'>This text will be replaced</div>
<script type='text/javascript'>var so = new SWFObject('player.swf','mpl','640','480','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');so.addVariable('author','Rudy Pohl');
so.addVariable('description','Barrhaven in Home');
so.addVariable("stretching", "uniform");
so.addVariable('captions','Barrhaven is Home');
so.addVariable('file','http://www.websbyu.com/tonygreco/TonyGreco.flv');
so.addVariable('image','http://www.websbyu.com/tonygreco/preview.jpg');
so.addVariable('title','Barrhaven is Home');
so.addVariable('skin','http://www.websbyu.com/tonygreco/stijl.swf');
so.write('mediaspace');
</script></div></body></html>
Any suggestions would be most appreciated.
Thanks,
Rudy in Ottawa
Oct. 26, 2009Warren Oates
Set stretching to "fill" ?
Oct. 26, 2009hobbs
You need to allow for the controlbar when you calculate the player's height.
For the Stijl skin, that's an extra 46px.var so = new SWFObject('player.swf','mpl','640','526','9.0.124');
Also, specify a minimum flash version of v9,0,124,0 so your users can take advantage of all of the new features of the Adobe Flash Player (and things will just work).
And use a more informative alternate content message:<div id="mediaspace"><a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Get the Adobe Flash Player to see this video.</a></div>
Oct. 26, 2009Rudy Pohl
Thanks so much guys! I really appreciate it!
Rudy
Oct. 26, 2009Rudy Pohl
Hi Hobbs:
Could I ask you to give me with the line of code needed to "specify a minimum flash version of v9,0,124,0" and where I should place that within my code? (Total newbie here) (:
Thanks,
Oct. 26, 2009hobbs
I already posted it above.var so = new SWFObject('player.swf','mpl','640','526','9.0.124');
SWFObject handles the Flash version detection for you.
Oct. 27, 2009Rudy Pohl
OK, I understand now. Thanks.
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.