|
2010-11-28
, 18:26
|
Posts: 7 |
Thanked: 2 times |
Joined on Sep 2010
|
#2
|
|
2011-01-15
, 23:42
|
Posts: 87 |
Thanked: 56 times |
Joined on Nov 2008
|
#3
|
|
2011-01-16
, 21:29
|
Posts: 162 |
Thanked: 351 times |
Joined on Apr 2006
@ Cotswolds, UK
|
#4
|
Does anybody use this "fake" advertisement with standard Media player?
Received multicast from 192.168.0.238:32776 NOTIFY * HTTP/1.1 HOST:239.255.255.250:1900 CACHE-CONTROL:max-age=1810 LOCATION:http://192.168.0.238:8200/rootDesc.xml SERVER: Linux/2.6.22.18-6281 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.0 NT:urn:schemas-upnp-org:device:MediaServer:1 USN:uuid:4d696e69-444c-164e-9d41-c03f0ea4ef10::urn:schemas-upnp-org:device:MediaServer:1 NTS:ssdp:alive
|
2011-01-16
, 21:59
|
Posts: 840 |
Thanked: 823 times |
Joined on Nov 2009
|
#5
|
Try "./MyDocs/ssdp-fake.py <server>". If that does not work, use the "ls" command (the Linux directory listing command) to find where you have put ssdp-fake.py.
The Following User Says Thank You to Cue For This Useful Post: | ||
|
2011-01-18
, 21:09
|
Posts: 87 |
Thanked: 56 times |
Joined on Nov 2008
|
#6
|
If you want, you can use the script to see what announcements your media server is actually making.
|
2011-01-19
, 15:06
|
Posts: 162 |
Thanked: 351 times |
Joined on Apr 2006
@ Cotswolds, UK
|
#7
|
However, I noticed that Zhaan is key. If Zhaan is not running, Mediabox don't discover server. As soon as Zhaan is running, both Mediabox and Zhaan find server, Media player don't. Zhaans seems to duplicate the multicast messages that ssdp-fake is creating (and ssdp-fake ignores them).
|
2011-01-19
, 21:26
|
Posts: 87 |
Thanked: 56 times |
Joined on Nov 2008
|
#8
|
So, having Zhaan running will probably increase the number of times the announcements get sent.
The hack is a python script which you run on your N900 (it runs on MeeGo as well). By default it only advertises the server to the local device although there is an option to advertise to the whole network (the part the multicasts can reach, anyway).
To install it, get the .zip file attached to this post, unzip it and you will find a file called ssdp-fake.py. Copy that to your home directory on the N900, open an Xterm and run it as "./ssdp-fake.py <server>", where <server> is the IP address or hostname of your media server.
I created this for my own use and I have only ever tested it with my server which is running MiniDLNA. If it doesn't work for you, sorry! Some people may still find it useful as a base to create a better program.
Be aware that the script does NOT follow the DLNA rules for the messages. It is a quick hack. In particular, I do not recommend running more than one copy (for example to announce more than one server) each using the "-a" option as they will end up syncing their announcements (I should be randomising the delays but I am not).
[This is also my first python program so I apologise for the horrible coding styles]