1. Home
  2. Docs
  3. MicroPVR
  4. Launch and use
  5. URL format

URL format

HTTP-TS

HTTP URL format for accessing recorded content at the desired time position:

http://example.com:8080/ts?channel_id=%channel_id%&timestamp=%timestamp%&endless=%endless%&priority=%priority%&aid=%aid%

where:
%channel_id% — a unique channel identifier corresponding to the one transmitted when you add a task to write.
%timestamp% — time in UNIX Timestamp format corresponding to EPG start time over UTC+0.
%endless% — optional parameter (value 0 or 1, by default 0), activating the emulation mode «infinite» flow. It is used for devices that interrupt the playback of archival transmission after reaching the end of the file (for example, Samsung devices and Android devices).
%priority% — optional parameter (a number corresponding to an identical field transmitted to the API method for creating a write task), if priority is explicitly stated, then micropvr will give a record from the source of the corresponding priority.
%aid% — optional parameter, account identifier. It is used for logging sessions.

HLS

HTTP URL format for accessing a predetermined type of playlist for a given time:

http://example.com:8080/pvr/playlist?channel_id=%channel_id%&start_timestamp=%start_timestamp%&end_timestamp=%end_timestamp%&aid=%aid%&type=0

where:
%channel_id% — a unique channel identifier corresponding to the one transmitted when you add a task to write.
%start_timestamp% — time in UNIX Timestamp format corresponding to EPG start time over UTC+0.
%end_timestamp% — UNIX Timestamp time corresponding to end time of UTC+0 EPG transmission.
%aid% — optional parameter, account identifier. It is used for logging sessions.
%type — playlist type (currently only type 0 — is available; HLS using EXT-X-BYTERANGE for segmentation).

Direct access to segments, entries and playlists is carried out at the URL of the form:

http://example.com:8080/pvr/%directory_nickname%/%filename%