Page 2 of 2
Posted: Thu Jan 04, 2007 8:02 pm
by spacebiscuit
Hi guys,
I am getting nowhere with this, here is what I tried:
$filename="../../../../".$filename.".flv";
$xyz=readfile($filename);
When I run the page nothing is displayed below the above lines of code.
If anyone had any other suggestion I would really appreciate it, thanks.
Rob.
Posted: Thu Jan 04, 2007 8:32 pm
by spacebiscuit
Here is my code so far:
Code: Select all
<?
$filename="../../../../"."2006-12-30_1.flv";
echo"$filename";
$xyz=readfile($filename);
?>
<object width="320" height="240" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0">
<param name="salign" value="lt">
<param name="quality" value="high">
<param name="scale" value="noscale">
<param name="wmode" value="transparent">
<param name="movie" value="flvplayer.swf">
<param name="FlashVars" value="&streamName=<?echo"$xyz"?>&autoPlay=true&autoRewind=true">
<embed width="320" height="240" flashvars="&streamName=<?echo"$xyz"?>&autoPlay=true&autoRewind=true" quality="high" scale="noscale" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" src="flvplayer.swf" wmode="transparent"> </embed></object>
As far as I am aware this is not working becuase I am echoing thr readfile variable in dir location of the param name for the flash player. I am not too sure how I can readfile and then play the file.
Thanks,
Rob.
Posted: Fri Jan 05, 2007 3:05 am
by AKA Panama Jack
What you need to do is have an FLV player that uses encoded variable data or an FLV player that pulls the filename from the server using XML based upon cookie/session data.
In otherwords you are not going to be able to really hide the filename using the current standard FLV players. You will need one that is specifically written to use masked/encoded data.
Also, most browsers actually cache the FLV movie independent of what the player does. So the movies can be copied without anyone having to know the path or filename.