jankammerath / iptvx

IPTV player and streamer for Linux that allows to play any stream that LibVLC can play, offers an overlay based on WebKit using HTML5, JavaScript and CSS and uses XMLTV data for EPG information. It allows the playback of URLs, files and can grab URLs from shell scripts. XMLTV EPG data can be downloaded from URLs or grabbed from shell scripts.
http://iptvx.org
Apache License 2.0
80 stars 37 forks source link

Server/daemon backend for EPG and recording #48

Closed jankammerath closed 6 years ago

jankammerath commented 6 years ago

A server backend running as a daemon will provide a JSON API interface through HTTP. A switch allows to set the application into server-mode and the client will be able to use the server instead of its local files.

Daemon server process

By default the application will launch a daemon running in the background that operates epg data and also controls the scheduled recordings.

JSON HTTP API

The following methods will be available on the server's API:

The json-c lib is already linked and in use. For the server it is potentially interesting to use libmicrohttpd which is a GNU project and provides a reasonable HTTP server.

jankammerath commented 6 years ago

Here is the spec for the server's API:

/ = status info with no of chans, no of programmes & no of recordings /list.json = full channel list with their names and number of programmes /record.json = list of scheduled and existing recordings (GET params provide option to add/ delete) /epg.json = the full epg as json as it appears on the UI /channel/bbc.json = full epg for channel bbc