cfg={} -- multicast interface for SSDP exchange, 'eth0', 'br0', 'br-lan' for example cfg.ssdp_interface='any' -- 'cfg.ssdp_loop' enables multicast loop (if player and server in one host) cfg.ssdp_loop=1 -- SSDP announcement interval cfg.ssdp_notify_interval=15 -- SSDP announcement age cfg.ssdp_max_age=1800 -- HTTP port for incoming connections cfg.http_port=4044 -- syslog facility (syslog,local0-local7) cfg.log_facility='local0' -- 'cfg.daemon' detach server from terminal cfg.daemon=true -- silent mode - no logs, no pid file cfg.embedded=false -- 'cfg.debug' enables SSDP debug output to stdout (if cfg.daemon=false) -- 0-off, 1-basic, 2-messages cfg.debug=1 -- external 'udpxy' url for multicast playlists (udp://@...) --cfg.udpxy_url='http://192.168.1.1:4022' -- downstream interface for builtin multicast proxy (comment 'cfg.udpxy_url' for processing 'udp://@...' playlists) cfg.mcast_interface='any' -- 'cfg.proxy' enables proxy for injection DLNA headers to stream -- 0-off, 1-radio, 2-radio/TV cfg.proxy=2 -- User-Agent for proxy cfg.user_agent='Mozilla/5.0' -- I/O timeout cfg.http_timeout=30 -- enables UPnP/DLNA notify when reload playlist cfg.dlna_notify=true -- UPnP/DLNA subscribe ttl cfg.dlna_subscribe_ttl=1800 -- group by 'group-title' cfg.group=true -- sort files cfg.sort_files=false -- Device name cfg.name=io.popen("uname -n"):read("*l")..'-xupnpd' -- static device UUID, '60bd2fb3-dabe-cb14-c766-0e319b54c29a' for example or nil cfg.uuid='' -- max url cache size cfg.cache_size=8 -- url cache item ttl (sec) cfg.cache_ttl=900 -- default mime type (mpeg, mpeg_ts, mpeg1, mpeg2, ts, ...) cfg.default_mime_type='ts' -- feeds update interval (seconds, 0 - disabled) cfg.feeds_update_interval=0 cfg.playlists_update_interval=0 -- playlist (m3u file path or path with alias playlist= { -- { './playlists/mozhay.m3u', 'Mozhay.tv' }, -- { './localmedia', 'Local Media Files' } -- { './private', 'Private Media Files', '127.0.0.1;192.168.1.1' } -- only for 127.0.0.1 and 192.168.1.1 { '/media/hdd/movie', 'Aufnahmen' } } -- feeds list (plugin, feed name, feed type) feeds= { { 'vimeo', 'channel/hd', 'Vimeo HD Channel' }, { 'vimeo', 'channel/hdxs', 'Vimeo Xtreme sports' }, { 'vimeo', 'channel/mtb', 'Vimeo MTB Channel' }, { 'youtube', 'channel/top_rated', 'YouTube Top Rated' }, -- { 'youtube', 'Drift0r', 'Drift0r' }, -- { 'youtube', 'XboxAhoy', 'XboxAhoy' }, -- { 'ag', 'videos', 'AG - New' }, -- { 'ivi', 'new', 'IVI - New' }, -- { 'gametrailers', 'ps3', 'GT - PS3' }, -- { 'giantbomb', 'all', 'GiantBomb - All' }, -- { 'dreambox', 'http://192.168.0.1:8001/','Dreambox1' }, } -- log ident, pid file end www root cfg.version='1.033' cfg.log_ident=arg[1] or 'xupnpd' cfg.pid_file='/var/run/'..cfg.log_ident..'.pid' cfg.www_root='./www/' cfg.tmp_path='/tmp/' cfg.plugin_path='./plugins/' cfg.config_path='./config/' cfg.playlists_path='./playlists/' --cfg.feeds_path='/tmp/xupnpd-feeds/' cfg.ui_path='./ui/' cfg.drive='' -- reload playlists only if drive state=active/idle, example: cfg.drive='/dev/sda' cfg.profiles='./profiles/' -- device profiles feature dofile('xupnpd_main.lua')