View Single Post
Old 05-22-2013, 09:39 PM  
Tent Pitcher
Confirmed User
 
Tent Pitcher's Avatar
 
Industry Role:
Join Date: Nov 2012
Location: New Orleans
Posts: 213
Quote:
Originally Posted by arena18 View Post
Im make it with php, and video URL looks like
Code:
site.com/playback?key=98w73987354234&id=54564651
key is encoded(user IP + sessionID)

in php im compare if userIP+sessionid = &_GET['key ']{

Also im limit streem speed to 350kb/s ...

So php is maybe good option , but maybe little slow when you seek video...
That looks like the correct approach...I am curious to know what you are doing after the authentication though as PHP shouldn't be limiting your streaming speed at all.

The best way to do it is to do your authentication before you print any HTTP headers, then use the "location" directive to redirect the HTTP request to the appropriate video file. This will all be seamless to the user and the only bandwidth limitation will be your server/ISP.

PHP is just the middle-man in the request - it authenticates and redirects accordingly.
__________________
Tent Pitcher - Adult Search Engine
Tent Pitcher is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook