DVR¶
media.play.dvr
Transport¶
HTTP or HTTPS; playlists and fragments use separate requests over TCP.
Supported codecs¶
Depend on the delivery protocol: HLS and DASH. Sapsan packages existing tracks; check decoding compatibility in the target player.
The recorded archive is available over the same protocols as live: HLS and DASH. There is also an API for querying recorded ranges and previews.
Archive playback works only for streams with recording enabled (dvr) — otherwise the request is rejected with a clear error.
Playback by absolute time¶
The archive interval is set with from/to parameters (UTC in milliseconds) on the regular URLs:
http://server/streaming/v/<stream>/index.m3u8?from=<utc_ms>&to=<utc_ms>
http://server/streaming/v/<stream>/Manifest.mpd?from=<utc_ms>&to=<utc_ms>
The archive HLS playlist is a closed VOD playlist. In DASH, recording gaps become Periods, and the timeline is selected with ?timeline=compact|wallclock — see DASH.
Which ranges are recorded¶
Recorded intervals are served by the HTTP API:
http://server/streaming/dvr-range/<stream>
http://server/streaming/dvr-ranges/<stream>
Note
TODO: dvr-range / dvr-ranges response format.