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
Bookmarks