05-23-2009, 11:34 PM
I am looking for a clean and fast loading way to show videos on my website. This mpeg doesn't want to load, it lags it.
I was told to use JW Video Player
But I can't figure out how to get it to work?
05-24-2009, 12:35 AM
I donít see whatís particularly hard to get the JW player working?
On the website I read a detailed two step process:
Step 1: Transfer the player.swf and swfobject.js file from the ZIP to your website. (Make sure that youíve also uploaded all the necessary videos / songs / images to your site.)
Step 2: Embed the player in your HTML page with the lines of code below. Note: If you place the files in different directories, make sure to set the references in this code accordingly.
<p id='preview'>The player will show in this paragraph</p>
var s1 = new SWFObject('player.swf','player','400','300','9');
Notice the flashvars parameter above can contain a list of variables for configuring the player to use different Plugins or Skins. To quickly set up flashvars, use the setup wizard (http://www.longtailvideo.com/support/jw-player-setup-wizard). Simply choose an example, select the variables you want to use and paste the code onto your page. Itís that easy.
And in the example page that comes with the ZIP there is everything you need to see how itís set up. And thereís even a setup wizard. But you donít need that for simple video embedding as the two steps above are all you need.
I really donít know what else I or anybody can tell you. Have you uploaded all the necessary files and specified the correct file paths?
05-24-2009, 01:05 AM
Well I did exactly as you said, and I don't get anything but a blank white screen.
05-24-2009, 01:44 AM
As I said: Check for proper file path(s).
Of course you need to tell the script which movie you wanna play. s1.addParam('flashvars','file=video.flv'); is just the example and you need to change that to your movie file name/path.
05-24-2009, 02:08 AM
EDIT: After a really long time of testing and playing around, come to find out the whole problem was the file name was wrong, when I downloaded it, it was called player-viral.swf instead of player.swf
One thing I hate is that at the end of the video it gives the public the source to it and it allows them to embed it to their website. How do I delete that part?
05-24-2009, 11:52 AM
On their website you see the download box. There is a checkbox that is automatically checked labeled “Include the JW Viral Plugin”. If you mouse over the question mark it’ll explain you what that plugin is. This is also the reason why a download with this option checked is called “player-viral.swf” and not just “player.swf” (like when the checkbox is unchecked).
05-24-2009, 04:00 PM
Ah I thought it was one of those boxes you had to check to download it. Blah I should research more. Thank you!