API Start/Stop Streams/vods / View Online/Offline Streams
PHP:apt install curl -y
- View Server List
Perform this request, to view all your servers, main & load balancers including their status
http://your_dnsort/api.php?action=server&sub=list
PHP:ex: curl "http://127.0.0.1:80/api.php?action=server&sub=list"
- View Online Streams
Perform this request, to view only the online Live Streams
http://your_dnsort/api.php?action=stream&sub=online
PHP:ex: curl "http://127.0.0.1:80/api.php?action=stream&sub=online"
- View Offline Streams
Perform this request, to view only the Offline Live Streams
http://your_dnsort/api.php?action=server&sub=offline
PHP:ex: curl "http://127.0.0.1:80/api.php?action=server&sub=offline"
- Start/Restart A Stream
Perform this request, to start or restart a Live Stream. The last argument is an array in which you can specify the stream ids. It works with POST method as well.
http://your_dnsort/api.php?action=stream&sub=start&stream_ids[]=1 PHP:ex: curl "http://127.0.0.1:80/api.php?action=stream&sub=start&stream_ids[]=51"
- Stop A Stream
Perform this request, to stop a Live Stream. The last argument is an array in which you can specify the stream ids. It works with POST method as well.
http://your_dnsort/api.php?action=stream&sub=stop&stream_ids[]=1
PHP:ex: curl "http://127.0.0.1:80/pi.php?action=stream&sub=stop&stream_ids[]=557"
- Start VOD Encoding (Applies for series episodes as well )
- Perform this request, to start a VOD Encoding process. The last argument is an array in which you can specify the stream ids. It works with POST method as well.
http://your_dnsort/api.php?action=vod&sub=start&stream_ids[]=1
PHP:ex: curl "http://127.0.0.1:80/api.php?action=vod&sub=start&stream_ids[]=554"
- Stop A VOD Encoding
Perform this request, to stop a VOD Encoding. The last argument is an array in which you can specify the stream ids. It works with POST method as well.
http://your_dnsort/api.php?action=vod=stop&stream_ids[]=1PHP:ex: curl "http://127.0.0.1:80/api.php?action=vod=stop&stream_ids[]=555
i am getting
api.php is currepted , do you know a fix to that ?