Welcome! Log In Create A New Profile

Advanced

mp4 stream and secure link

Posted by aryut 
mp4 stream and secure link
June 29, 2012 10:59AM
hello,

i have a problem with streaming and secure link module. when i setup my .conf file to stream and secure link, secure link doesn't works, mp4 starts streaming without secure params. when i remove the stream codes, it starts to work.

here is my conf.file

server {
listen 80;
server_name localhost;

root /var/www/html;
location / {
index index.php;
}


location = /50x.html {
root /usr/share/nginx/html;
}

location ~ \.php$ {

fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME /var/www/html$fastcgi_script_name;
include fastcgi_params;
}

location ~ \.mp4$ {
mp4;
}
location /videos/ {
secure_link $arg_st,$arg_e;
secure_link_md5 zlrtt$remote_addr$uri$arg_e;
if ($secure_link = "") {
return 403;
}

if ($secure_link = "0") {
return 403;
}
}

}

i tried a lot of ways, like moving secure link codes to up or inside mp4 codes etc.

what is the true way?

thanks.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 287
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready