On-demand (VOD)
1
Ask what playback method to use
method is direct, remux, audio-only, or transcode. url is already the right path to request next.2
Play it
- Direct play:
GETthe returnedurl(/file). It’s the raw file, with Range support for seeking. - Transcoded:
GET /watch/vod/<item_id>/master.mpd(DASH, used by Roku/Android) or/master.m3u8(HLS, used by web) to start the transcode job and get a manifest. Segment requests that follow are served as ffmpeg produces them.
Live TV
- Web and most clients get back an HLS master playlist directly.
- Roku and Android (detected from
Device-OS) get a302redirect to/watch/live/<channel_id>/master.mpd. These clients are DASH-only and will not play HLS.
Resolving IDs
GET /librariesthenGET /library/{id}then item IDs forGET /item/{id}.GET /channelsfor channel IDs used in Live TV playback andGET /programs(EPG).
