I just recently installed the lastest version of stalker to use with the mag250 stb. I have live channels working on. Now i am trying to get vod/Video club working via http rather than custom as i wish to use ads.
When i request to watch a video in video club, i see the link get made under /media/raid0/mac/00:1A:79:3E:7F:F2/9.mp4
when i try to play it, it just skips ahead to the next video episode for some reason. I look in the logs and i see a 410 error for the request:
GET /media/bb3/00:1A:79:3E:7F:F2/9.mp4?st=fj_DPzCNgPLKjqdM1plK8A&e=1483306620 HTTP/1.1" 410 167 "-" "Lavf53.32.100"
based on the error code im guessing its not generating the secure_link token correctly. I have searched the list and no one else really seems to complain about it.
Here is my nginx default conf:
server {
listen 80;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
location ~* \.(mpg|mpeg|avi|ts|mkv|mp4|mov|m2ts|flv|m4v|srt|sub|ass)$ {
secure_link $arg_st,$arg_e;
secure_link_md5 "supersecret$uri$remote_addr$arg_e"; # you can change secret "supersecret" in the portal config - nginx_secure_link_secret
if ($secure_link = "") {
return 405;
}
if ($secure_link = "0") {
return 410;
}
send_timeout 6h;
root /var/www/;
}
}
My config.ini under storage on the storage server:
<?php
define('VIDEO_STORAGE_DIR', '/media/raid0/storage/');
define('KARAOKE_STORAGE_DIR', '/media/raid0/karaoke/');
define('RECORDS_DIR', '/media/raid0/records/');
define('NFS_HOME_PATH', '/media/raid0/mac/');
// Use login and password from the configuration file. (api_auth_login and api_auth_password in server/custom.ini)
//define('API_URL', 'http://login:pass...@xx.xx.xx.xx5/stalker_portal/api/');
define('STORAGE_NAME', 'bb3');
define('ASTRA_RECORDER', false);
define('DUMPSTREAM_BUFFERING', 1); // set -1 for system default
and my nginx conf part from server/config.ini
nginx_secure_link_secret = supersecret
nginx_secure_link_ttl = 5
; the possible parameters for generating md5-hash "$secret", "$uri", "$secure_link_expires", "$remote_addr"
; example "$secure_link_expires$uri$remote_addr $secret"
nginx_secure_link_order = "$secret$uri$remote_addr$secure_link_expires"
I have verified that its not a permission issue as i though it was at first, by placing a text file in the mac folder, and i can access it via browser just fine.
I have been trying to sort this out for the better part of 2 days now.
Anyone have any ideas as to what it could be that i am doing wrong??