This package implements TVIP JSON Middleware API protocol for Stalker Middleware
For quick install plugin into stalker:
- Download package from github:
wget https://github.com/egordanilenko/stalker-jsonapi/raw/master/build/tvip-jsonapi-plugin.tgz
- Unzip package to any folder except /var/www
tar -xzf tvip-jsonapi-plugin.tgz
- Make symlink to stalker folder near stalker_portal
ln -s /%anypath%/tvip-jsonapi-plugin/tvipapi/ /%stalker_common_directory%/tvipapi
- Make symlink on root path for simple path for stb
ln -s /%anypath%/tvip-jsonapi-plugin/tvipapi /var/www/tvipapi
- By default configuration use this variables:
$stalker_path = '/var/www/stalker_portal/';
$stalker_host = $_SERVER['HTTP_HOST'];
- 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
- 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