source: ipk/source.sh4/network_xupnpd/_path_/etc/xupnpd/profiles/bravia.lua

Last change on this file was 27875, checked in by obi, 12 years ago

add xupnpd tpk

File size: 1.4 KB
Line 
1profiles['BRAVIA']=
2{
3 ['desc']='Sony BRAVIA',
4
5--X-AV-Physical-Unit-Info: pa="BRAVIA KDL-22EX553";
6--X-AV-Client-Info: av=5.0; cn="Sony Corporation"; mn="BRAVIA KDL-22EX553"; mv="1.7";
7--User-Agent: UPnP/1.0 DLNADOC/1.50
8
9 ['match']=function(user_agent,req)
10 local s = req['x-av-client-info']
11 if s and string.find(s,'BRAVIA ',1,true) then
12 return true
13 else
14 return false
15 end
16 end,
17
18 ['options']=
19 {
20 ['upnp_albumart'] = 1, -- 1: <res>direct url<res> OR 3: <res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_TN">http://127.0.0.1:4044/logo?s=0%2F1%2F14%2F33</res>
21 ['dlna_headers']=true,
22 ['dlna_extras']=true
23 },
24
25 ['mime_types']=
26 {
27 -- video streams
28 ['xvid'] = { upnp_type.video, upnp_class.video, 'video/avi', upnp_proto.avi, dlna_org_extras.none},
29 ['divx'] = { upnp_type.video, upnp_class.video, 'video/avi', upnp_proto.avi, dlna_org_extras.none},
30 ['avi'] = { upnp_type.video, upnp_class.video, 'video/avi', upnp_proto.avi, dlna_org_extras.none},
31 ['mpeg'] = { upnp_type.video, upnp_class.video, 'video/mpeg', upnp_proto.mpeg, dlna_org_extras.none},
32 ['mpg'] = { upnp_type.video, upnp_class.video, 'video/mpeg', upnp_proto.mpeg, dlna_org_extras.none}
33 }
34}
Note: See TracBrowser for help on using the repository browser.