Results 1 to 10 of 10

Thread: Upgrading JW Video Player to 4.1

  1. #1

    Default Upgrading JW Video Player to 4.1

    Hello
    I'm trying to update my JV video player to 4.1 version so I can implement pre/mid/post roll Ads.

    1. How do I upgrade the player? Which page do I need to edit to embed the code?

  2. #2
    Join Date
    Apr 2007
    Posts
    2,202

    Default Re: Upgrading JW Video Player to 4.1

    To upgrade to v4.1, download the JW Player, unzip and upload the swf files to player folder.

    If you need skin installed, download skin, rename it to skin.swf, upload to player folder.

    Edit include/player.inc and add

    so.addVariable("skin", "{$config["baseurl"]}/player/skin.swf");
    As for preroll and post roll, you need to use xml feed, this will be provided on next version.

    Replace the file flash var to

    Code:
    so.addVariable("file","{$config["baseurl"]}/xml_playlist.php?id={$video_id}");
    xml_playlist.php should output xml playlist.

  3. #3
    Join Date
    May 2007
    Posts
    394

    Default JW Player 4.1 Download Location

    Here's where to get the player:
    http://www.jeroenwijering.com/?item=JW_FLV_Player

  4. #4
    Join Date
    Sep 2008
    Posts
    1,019

    Default Re: Upgrading JW Video Player to 4.1

    Or, you could use Longtail Video (ad service from the people who make the JW Player). It's free and they provide you with the ability to add pre, mid, and post roll ads to your site without having to create XML files (simply add the code they provide and add you ads to your back office. The JW player has built in support for it).

    Visit http://www.longtailvideo.com/referral.a ... lqekkkdbmt
    vShare Solutions
    Custom vShare Modules and Services

    Now, your visitors can watch videos on your site using their mobile or tablet device with the Mobility Mod for vShare 2.8!

  5. #5

    Default Re: Upgrading JW Video Player to 4.1

    Thanks Bflex,

    Where do I add the embed code that longtail provides? Can't seem to figure it out.

  6. #6
    Join Date
    Sep 2008
    Posts
    1,019

    Default Re: Upgrading JW Video Player to 4.1

    You add it to the player.inc file in your includes directory.
    vShare Solutions
    Custom vShare Modules and Services

    Now, your visitors can watch videos on your site using their mobile or tablet device with the Mobility Mod for vShare 2.8!

  7. #7
    Join Date
    Oct 2008
    Posts
    2

    Default Re: Upgrading JW Video Player to 4.1

    Quote Originally Posted by admin
    To upgrade to v4.1, download the JW Player, unzip and upload the swf files to player folder.

    If you need skin installed, download skin, rename it to skin.swf, upload to player folder.

    Edit include/player.inc and add

    so.addVariable("skin", "{$config["baseurl"]}/player/skin.swf");
    As for preroll and post roll, you need to use xml feed, this will be provided on next version.

    Replace the file flash var to

    Code:
    so.addVariable("file","{$config["baseurl"]}/xml_playlist.php?id={$video_id}");
    xml_playlist.php should output xml playlist.
    how to make a xml-playlist.php
    can you give a exemple

    thanks

  8. #8

    Default Re: Upgrading JW Video Player to 4.1

    Quote Originally Posted by bplex
    You add it to the player.inc file in your includes directory.
    I am trying to follow the longtail instructions but I'm still confused on where to add the code to the player.inc file? Longtail gives you three pieces of code to add but I'm still having issues. Could you post an example of your player.inc code?

  9. #9
    Join Date
    Sep 2008
    Posts
    1,019

    Default Re: Upgrading JW Video Player to 4.1

    Send me a PM with your player.inc file and the code from Longtail. I will update the file with the code and send it back to you.
    vShare Solutions
    Custom vShare Modules and Services

    Now, your visitors can watch videos on your site using their mobile or tablet device with the Mobility Mod for vShare 2.8!

  10. #10
    Join Date
    Dec 2008
    Posts
    152

    Default Re: Upgrading JW Video Player to 4.1

    Code:
        so.addVariable("skin", "{$config["baseurl"]}/player/skin.swf");
    Im not sure i know where to apply this to the file
    here is my code

    Code:
    <?php
    
    $displayheight = $config['player_height'] - 20;
    
    if($config['player_autostart'] == 1) {
    	$extra = "so.addVariable(\"autostart\", \"true\");";
    } else {
    	$extra = "so.addVariable(\"autostart\", \"false\");";
    }
    
    
    $vshare_player = <<<EOT
    
    <script type="text/javascript" src="{$config["baseurl"]}/player/swfobject.js"></script>
    
    <p id="vshare_player">Get Flash to see this player.</p>
    <script type="text/javascript">
    var so = new SWFObject("{$config["baseurl"]}/player/player.swf","vshare_player","$config[player_width]","$config[player_height]","8");
    so.addParam("allowfullscreen","true");
    so.addVariable("file","{$file}");
    so.addVariable("image","{$config["baseurl"]}/thumb/$video_id.jpg");
    so.addVariable("logo","{$config["baseurl"]}/templates/images/watermark.gif");
    so.addVariable("link","{$config["watermark_url"]}");
    so.addVariable("linktarget","_blank");
    so.addVariable("width","$config[player_width]");
    so.addVariable("height","$config[player_height]");
    so.addVariable("displayheight","$displayheight");
    so.addVariable("overstretch", "true");
    so.addVariable("skin", "{$config["baseurl"]}/player/skin.swf");
    $extra
    so.addVariable("bufferlength", "$config[player_bufferlength]");
    so.write('vshare_player');
    </script>
    
    EOT;

Similar Threads

  1. VIDEO PLAYER IN HD
    By mrsolecal in forum Template Modifications
    Replies: 8
    Last Post: 05-01-2009, 09:50 AM
  2. Add new video Player
    By tennistjn in forum Template Modifications
    Replies: 4
    Last Post: 01-22-2009, 04:19 AM
  3. After upgrading 2.3 to 2.4 then 2.5 videos missing
    By matrix_france in forum Installation Support
    Replies: 4
    Last Post: 10-09-2007, 03:23 PM
  4. Video Player..
    By joecool6101 in forum General Discussions
    Replies: 0
    Last Post: 07-15-2007, 06:52 PM
  5. Upgrading vShare v2.0 to latest v2.0 Release
    By admin in forum Announcements
    Replies: 0
    Last Post: 05-09-2007, 03:34 PM

Bookmarks

Posting Permissions

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