Results 1 to 5 of 5

Thread: Player problem + mod_secdownload

  1. #1

    Default Player problem + mod_secdownload

    Hi we upgrade yesterday our vshare to last version 2.8.1 and we have litte problem whit de player, we use lighttpd + mod_secdownload, and we had something like this on player.inc on 2.7.1 version:

    Code:
    <?php
    
    session_start();
    $_SESSION['arbitrary'] = "Gw6KYZC4PyAv";
    
    $vshare_player = <<<EOT
    
    <script type="text/javascript" src="{$config['baseurl']}/player/swfobject.js"></$
    
    <p id="mediaspace">
        <a href="http://www.adobe.com/go/getflashplayer">
            <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_$
        </a>
    </p>
    
    <script type="text/javascript">
    var so = new SWFObject("{$config['baseurl']}/player/player.swf","vshare_player",$
    so.addParam("wmode","transparent");
    so.addParam("allowScriptAccess", "always");
    so.addParam("allowfullscreen","true");
    so.addVariable("config","{$config["baseurl"]}/player/player_config_lighttpd.php?$
    so.addParam("allowfullscreen","true");
    so.addVariable("image","{$video_thumb_url}/thumb/{$video_folder}{$video_id}.jpg"$
    so.write('mediaspace');
    </script>
    
    EOT;
    Now vshare 2.8.1 have this:

    Code:
    <?php
    
    $displayheight = $config['player_height'] - 20;
    
    if ($vshare_player == "StrobeMediaPlayback")
    {
        $vshare_player = <<<EOT
       <script type="text/javascript" src="{$config['baseurl']}/player/swfobject.js"></script>
       <script type="text/javascript">
       var parameterNames = new Array();
       var parameters =
       {   id: "1"
       ,   src: "{$file}"
       ,   src_title: "VSHARE : Title"
       ,   autoPlay: "{$config['player_autostart']}"
       ,   width: "{$config['player_width']}"
       ,   height: "{$displayheight}"
       ,   controlBarAutoHide: "false"
       ,   controlBarPosition: "bottom"
       ,   poster: "{$video_thumb_url}/thumb/{$video_folder}{$video_id}.jpg"
       };
                   
       for (var i=0; i<parameterNames.length; i++)
       {
       var parameterName = parameterNames[i];
       parameters[parameterName] = parameters[parameterName];
       }
                   
       swfobject.embedSWF
       ( "{$config['baseurl']}/player/StrobeMediaPlayback.swf"
       , "vshare_player"
       , parameters["width"], parameters["height"]
       , "10.0.0"
       , {}
       , parameters
       , { allowFullScreen: "true" }
       , { name: "StrobeMediaPlayback" }
       );
       </script>
       <p id="vshare_player">
           <a href="http://www.adobe.com/go/getflashplayer">
               <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
           </a>
       </p>
    
    EOT;
    
    }
    else
    {
    $vshare_player = <<<EOT
    
    <script type="text/javascript" src="{$config['baseurl']}/player/swfobject_1.5.js"></script>
    
    <p id="vshare_player">
        <a href="http://www.adobe.com/go/getflashplayer">
            <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
        </a>
    </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","{$video_thumb_url}/thumb/{$video_folder}{$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("autostart", "{$config['player_autostart']}");
    so.addVariable("bufferlength", "{$config['player_bufferlength']}");
    so.write('vshare_player');
    </script>
    
    EOT;
    
    }
    So.. if i try to change code the player dont work.... if I remplace player.inc and /player folder for my old ( 2.7.1 ) player folder and my old player.inc the player dont work..

    If I put player.inc (2.8.1) and leave /player folrder (2.7.1) the player work but not whit mod_secdownload ( of curse because player.inc dont have any reference to ti )

    So, how can I do make it work.. any help ?

    The first time we paid to buyscripts to install lighttpd now we upgrade to 2.8.1 and dont work :/

    Sorry for my very bad english

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

    Default

    Are you sure you paid Buyscripts and not me for this? That code you posted above (for vShare 2.7) is my code, not buyscripts.
    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!

  3. #3

    Default

    Quote Originally Posted by bplex View Post
    Are you sure you paid Buyscripts and not me for this? That code you posted above (for vShare 2.7) is my code, not buyscripts.
    I dont know, the orther admin pay for install litehttpd integration + mod_secdownload + that player.. may be yes, I see your signature link and I think he pay you for modifications, exactly this:

    Lighttpd Integration (Legacy) and i think this also: Enhanced Video Security

    And I dont know if something more.


    Any help ?

    Or send me PM

    Last edited by jacruz68; 01-10-2012 at 04:06 PM.

  4. #4

    Default

    Quote Originally Posted by bplex View Post
    Are you sure you paid Buyscripts and not me for this? That code you posted above (for vShare 2.7) is my code, not buyscripts.
    An apology was my mistake,I bought you the code. Any suggestions? Thanks and sorry again.

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

    Default

    If purchased from me, the code would not work with vShare 2.8.1 as it is not compatible with vShare 2.8.1 as written. You would need to PM me your email address so that I can get your FTP information from you to change the code to one that works with vShare 2.8.1.
    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!

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
  •