Quote:
Originally Posted by awwhoez
you know anyway to integrate it into a tube script
|
yes bascially something like this
Code:
<?php
$secret = "secret";
$path = "/downloads/";
$htime = dechex(time());
$fname = "/video.flv";
$token = md5($secret . $fname. $htime);
$url = $path . $token. "/" . $htime . $fname;
?>
<script type="text/javascript">
var so = new SWFObject("player.swf","mpl","450","290","9");
so.addParam("allowfullscreen","true");
so.addParam("allowscriptaccess","always");
so.addParam("wmode","opaque");
so.addVariable("autostart","true");
so.addVariable("file","<?php echo $url;?>");
so.write("flashcontent");
</script>
or whatever method you want being done.