Hi, I run a video site called www.calvideos.org.
I have 2 concerns right now:
1. I have hotlinking enabled as follows:

This is working fine. This makes it so users cannot type in say, http://video.calvideos.org/myvideo.wmv, instead they have to go through the built in waiting system and after 30 seconds the download comes up. Now the problem comes when I want to STREAM the video. When I have hotlinking enabled, the streaming system does not work. I don't know why. I know there is a way to fix this because my friend did it once when he was hosting the site, however I have changes hosts and I dont remember what he had done. I remember he did it all (I think) through the hotlinking window. No need for htaccesses or anything. But now that I have a new server that is gone and he hasnt been online for a while so I cant ask him for help.
2. For some reason when I go to the downloadwait page and wait the time, the hotlink protection will make it so that the download DOESNT start, instead it redirects to the specified page. This ONLY happens in Internet Explorer. Firefox works fine. I dont know what's up with that.
Thanks for any help!
Oh I guess it might help knowing how the files (stream.php and the downloadwait.php) link to the videos...
STREAMING
DOWNLOADWAIT
I have 2 concerns right now:
1. I have hotlinking enabled as follows:

This is working fine. This makes it so users cannot type in say, http://video.calvideos.org/myvideo.wmv, instead they have to go through the built in waiting system and after 30 seconds the download comes up. Now the problem comes when I want to STREAM the video. When I have hotlinking enabled, the streaming system does not work. I don't know why. I know there is a way to fix this because my friend did it once when he was hosting the site, however I have changes hosts and I dont remember what he had done. I remember he did it all (I think) through the hotlinking window. No need for htaccesses or anything. But now that I have a new server that is gone and he hasnt been online for a while so I cant ask him for help.
2. For some reason when I go to the downloadwait page and wait the time, the hotlink protection will make it so that the download DOESNT start, instead it redirects to the specified page. This ONLY happens in Internet Explorer. Firefox works fine. I dont know what's up with that.
Thanks for any help!
Oh I guess it might help knowing how the files (stream.php and the downloadwait.php) link to the videos...
STREAMING
Code:
<EMBED type='application/x-mplayer2' pluginspage='http://microsoft.com/windows/mediaplayer/en/download/' id='Player' displaysize='-1' autosize='-1' showcontrols="true" showtracker='1' showdisplay='1' showstatusbar='-1' videoborder3d='-1' width="600" height="480"
src="http://video.calvideos.org/<? echo $file; ?>" autostart="true" designtimesp='5311' loop="true"></EMBED>
DOWNLOADWAIT
Code:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var start=new Date();
start=Date.parse(start)/1000;
var counts=30;
function CountDown(){
var now=new Date();
now=Date.parse(now)/1000;
var x=parseInt(counts-(now-start),10);
if(document.form1){document.form1.clock.value = x;}
if(x>0){
timerID=setTimeout("CountDown()", 100)
}else{
location.href="http://video.calvideos.org/<? echo $file; ?>"
}
}
// End -->
</script>
Last edited: