Go Back   CodingForums.com > :: Client side development > General web building

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-23-2009, 11:34 PM   PM User | #1
masterofollies
Senior Coder

 
Join Date: May 2005
Posts: 2,137
Thanks: 96
Thanked 72 Times in 72 Posts
masterofollies can only hope to improve
Mpeg video file won't play

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.

http://hometownedit.com/portfolio.html

I was told to use JW Video Player
http://www.longtailvideo.com/players/jw-flv-player/

But I can't figure out how to get it to work?

Last edited by masterofollies; 05-24-2009 at 06:30 PM..
masterofollies is offline   Reply With Quote
Old 05-24-2009, 12:35 AM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,587
Thanks: 5
Thanked 864 Times in 841 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
I don’t see what’s particularly hard to get the JW player working?

On the website I read a detailed two step process:
Quote:
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.

Code:
<p id='preview'>The player will show in this paragraph</p>

<script type='text/javascript' src='swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('player.swf','player','400','300','9');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('flashvars','file=video.flv');
s1.write('preview');
</script>
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. 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?
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 05-24-2009, 01:05 AM   PM User | #3
masterofollies
Senior Coder

 
Join Date: May 2005
Posts: 2,137
Thanks: 96
Thanked 72 Times in 72 Posts
masterofollies can only hope to improve
Well I did exactly as you said, and I don't get anything but a blank white screen.
masterofollies is offline   Reply With Quote
Old 05-24-2009, 01:44 AM   PM User | #4
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,587
Thanks: 5
Thanked 864 Times in 841 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
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.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 05-24-2009, 02:08 AM   PM User | #5
masterofollies
Senior Coder

 
Join Date: May 2005
Posts: 2,137
Thanks: 96
Thanked 72 Times in 72 Posts
masterofollies can only hope to improve
Oh alright, I don't know anything about javascript so I don't understand the coding.

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?

Last edited by masterofollies; 05-24-2009 at 03:56 AM..
masterofollies is offline   Reply With Quote
Old 05-24-2009, 11:52 AM   PM User | #6
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,587
Thanks: 5
Thanked 864 Times in 841 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
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).
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Users who have thanked VIPStephan for this post:
masterofollies (05-24-2009)
Old 05-24-2009, 04:00 PM   PM User | #7
masterofollies
Senior Coder

 
Join Date: May 2005
Posts: 2,137
Thanks: 96
Thanked 72 Times in 72 Posts
masterofollies can only hope to improve
Ah I thought it was one of those boxes you had to check to download it. Blah I should research more. Thank you!
masterofollies is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:55 AM.


Advertisement
Log in to turn off these ads.