All URLs for spectr are formattedhttp://example.com:8080/%service%/%path%/?%parameters%
where:%module% — one of the spectr services%path% — path to stream or file%parameters% — additional parameters
The following services are available in spectr:
- stream broadcast streams over HTTP.
- file — file server over HTTP.
- pvr — service for working with MicroPVR.
stream
Uses the following URL format:http://example.com:8080/stream/%ID_потока%/%тип_потока%/
For example:http://127.0.0.1:8080/stream/stream1/httpts/
There are no additional parameters.
Playlist for HLS can be requested as without specifying the file:http://127.0.0.1:8080/stream/stream1/hls/
and with the indication:http://127.0.0.1:8080/stream/stream1/hls/playlist.m3u8
It is recommended to use the second option, as using the first one can cause problems on some devices.
file
Uses the following path format:http://example.com:8080/file/%ID_директории%/%путь_до_файла%/
For example:http://127.0.0.1:8080/file/default/hd/movie.ts
There are no additional parameters.
pv
Uses the following path format:http://example.com:8080/pvr/%тип_вещания%/
The broadcast type may not be specified if it is a file (httpts).
Uses the following additional GET parameters:channel — Channel ID in MicroPVRtimestamp — Desired time in UNIX-timestampaid — account ID
Example URL:http://example.com:8080/pvr/?channel_id=2×tamp=1528150036&aid=testaid
pvr in HLS format
Uses the following additional parameters:channel — Channel ID in MicroPVRstart_timestamp —: video start timeend_timestamp —: end time of videoaid — account ID
Types of broadcast: HLS3VS or HLS4. It is recommended to use HLS3VS, as not all players support HLS4.
Example URL:http://example.com:8080/pvr/HLS3VS/?channel_id=2&start_timestamp=1535369108&end_timestamp=1535369908&&aid=testaid