Results 1 to 3 of 3

Thread: change quality uploading two files

  1. #1
    Join Date
    Apr 2010
    Posts
    5

    Default change quality uploading two files

    Hello, in version 5.10 of jwplayer there is the possibility of putting in hd video to suit the user, as I apply that code change up two video files to my server?


    player.inc the file I have this:


    Code:
    <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","{$video_thumb_url}/thumb/{$video_folder}{$video_id}.jpg");
    so.addVariable("width","{$config['player_width']}");
    so.addVariable("height","{$config['player_height']}");
    so.addVariable("displayheight","$displayheight");
    so.addVariable("overstretch", "true");
    so.addVariable("autostart", "{$config['player_autostart']}");
    so.addVariable("bufferlength", "{$config['player_bufferlength']}");
    so.write('vshare_player');

    I see that the file is loaded through so.addVariable ("file", "{$ file}");


    What code should I have here for file or hd_file carge?


    Thank you.

  2. #2

    Default

    Try to add following code to your include/player.inc file.

    Code:
    <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","{$video_thumb_url}/thumb/{$video_folder}{$video_id}.jpg");
    so.addVariable("width","{$config['player_width']}");
    so.addVariable("height","{$config['player_height']}");
    so.addVariable("displayheight","$displayheight");
    so.addVariable("overstretch", "true");
    so.addVariable("autostart", "{$config['player_autostart']}");
    so.addVariable("bufferlength", "{$config['player_bufferlength']}");
    so.addVariable('plugins', 'hd-2');
    so.addVariable('hd.file', '{$hd_file}');
    so.write('vshare_player');
    <script>
    '{$hd_file}' - URL to the hd video file.

    If you can't get it fixed, open a Support ticket

    Thanks,

  3. #3
    Join Date
    Apr 2010
    Posts
    5

    Default

    Very good, thanks.

Tags for this Thread

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
  •