Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2016-01-24 22:46:35

Nuevolab
Member
Registered: 2012-08-01
Posts: 189

Apache streaming

Dear Symtab,
I did have opportunity to setup Apache streaming on server with ASP script but found your secure Apache code rather not for use.
In older version of ASP such code is even completely empty....
In Apache config I set streaming location for "/media/videos/". Then I rewrote Apache secure code to something like this:

	public static function secure_apache($url, $video_id, $ext, $key, $hd, $trailer = false)
	{
		$trailer	= ($trailer) ? '.trailer' : '';
		if($ext == 'mobile') $file='/mobile/'.$video_id.$trailer.'.mp4'; else $file= '/'.$ext.'/'.$video_id.$hd.$trailer.'.'.$ext;
		$hexTime = dechex(time()); 
		$token = md5($key . $file. $hexTime);
		return  $url . $token. "/" . $hexTime . $file;
	}

Note that I also had to change params in function.
Basically secure streaming with new code worked well for a client. But the problem was with option to download video.
I didn't have time to verify it. Per user request I switched off secure streaming, left only Apache HTTP pseudostreaming on.

Offline

#2 2016-01-25 07:41:30

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Apache streaming

Hmm...i've setup apache with secure streaming several times and it should work correctly. Download also works because the url is generated when you click the download button. No idea exactly why it didnt work for you.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#3 2016-01-26 01:36:53

Nuevolab
Member
Registered: 2012-08-01
Posts: 189

Re: Apache streaming

I don't know. I say what I found in 1 client function. There was no even $key in function params. Rest of function was also messed. I don't know how it looks for other clients files, didn't have opportunity to see it. Also do not have ASP2 files myself. Lost it somewhere what you once sent.

Offline

#4 2016-01-26 07:03:30

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Apache streaming

Will send you the 2.x archive again!


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

Board footer

Powered by FluxBB