Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Senior Coder
    Join Date
    May 2005
    Posts
    2,137
    Thanks
    96
    Thanked 72 Times in 72 Posts

    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.

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,700
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    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.

    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?

  • #3
    Senior Coder
    Join Date
    May 2005
    Posts
    2,137
    Thanks
    96
    Thanked 72 Times in 72 Posts
    Well I did exactly as you said, and I don't get anything but a blank white screen.

  • #4
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,700
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    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.

  • #5
    Senior Coder
    Join Date
    May 2005
    Posts
    2,137
    Thanks
    96
    Thanked 72 Times in 72 Posts
    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.

  • #6
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,700
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    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).

  • Users who have thanked VIPStephan for this post:

    masterofollies (05-24-2009)

  • #7
    Senior Coder
    Join Date
    May 2005
    Posts
    2,137
    Thanks
    96
    Thanked 72 Times in 72 Posts
    Ah I thought it was one of those boxes you had to check to download it. Blah I should research more. Thank you!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •