DarkCDN / stalker-jsonapi

This package implements a TVIP JSON Middleware API protocol for Stalker Middleware

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This package implements TVIP JSON Middleware API protocol for Stalker Middleware

For quick install plugin into stalker:

  1. Download package from github:
wget https://github.com/egordanilenko/stalker-jsonapi/raw/master/build/tvip-jsonapi-plugin.tgz

  1. Unzip package to any folder except /var/www
tar -xzf tvip-jsonapi-plugin.tgz  
  1. Make symlink to stalker folder near stalker_portal
ln -s  /%anypath%/tvip-jsonapi-plugin/tvipapi/ /%stalker_common_directory%/tvipapi
  1. Make symlink on root path for simple path for stb
ln -s /%anypath%/tvip-jsonapi-plugin/tvipapi /var/www/tvipapi
  1. By default configuration use this variables:
    $stalker_path = '/var/www/stalker_portal/';
    $stalker_host = $_SERVER['HTTP_HOST'];     
  1. if your configuration have difference with default values, please make ini configuration
touch /etc/stalker_jsonapi.ini

and redefine config values for

stalker_host
stalker_path
  1. If you use Stalker DVR, you need fix dumpstream script:
mv /var/www/stalker_portal/storage/dumpstream /var/www/stalker_portal/storage/dumpstream.backup
ln -s  /%anypath%/tvip-jsonapi-plugin/dumpstream.py /var/www/stalker_portal/storage/dumpstream

for applying new dumpstream you need to restart dumpstream.

For connection from TVIP STB: use Middleware API and http://<stalker_server>/ or http://<stalker_server>/stalker_portal.

Device will search /tvipapi path after main URL

About

This package implements a TVIP JSON Middleware API protocol for Stalker Middleware


Languages

Language:PHP 95.3%Language:Python 4.4%Language:Makefile 0.3%