
Process to hide my URLs (php session) - help plugin "hd"
Hello,
I'm sorry, I do not speak English very well because I am French.
I need help with the integration of JW Player on my site.
I want to use the code below in order to "hide" the "url of my video.
Everything works fine but I do not know how to file "hd":
I have a two part process to hide my URLs
1) I have a video.php file :
bc.. <?php
session_start ();
header ('Location:'.$_SESSION['VIDEO']);
session_unset('VIDEO');
?>
2) and a main file with the player - (example 360.php) :
bc.. <?php
session_start();
$_SESSION['VIDEO']="http://www.mysite.fr/jwplayer/360.flv";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<script type="text/javascript" src="http://www.mysite.fr/jwplayer/swfobject.js"></script>
<div id="mediaspace">This text will be replaced</div>
<script type="text/javascript">
var so = new SWFObject('http://www.mysite.fr/jwplayer/player.swf','mpl','768','432','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file',encodeURIComponent('http://www.mysite.fr/jwplayer/video.php'));
so.addVariable('plugins','hd-1');
so.addVariable('hd.file',encodeURIComponent('http://www.mysite.fr/jwplayer/video.php'));
so.addVariable('type', 'video');
so.write('mediaspace');
</script>
</body></html>
Indeed, a php session is already open when the video is playing but how do you switch to HD?
As you will understand, my video is in two versions:
File size "360" 360.flv
File size "hd": 360-hd.flv
I do not know or include the file "hd" (360-hd.flv)
Thank you in advance for your help.