|
|
@@ -68,7 +68,7 @@ from SSDP import SSDPServer, SSDP_PORT, SSDP_ADDR |
|
|
|
s = SSDPServer() |
|
|
|
debug.insertnamespace('s', s) |
|
|
|
|
|
|
|
port = reactor.listenMulticast(SSDP_PORT, s) |
|
|
|
port = reactor.listenMulticast(SSDP_PORT, s, listenMultiple=True) |
|
|
|
port.joinGroup(SSDP_ADDR) |
|
|
|
port.setLoopbackMode(0) # don't get our own sends |
|
|
|
|
|
|
@@ -111,6 +111,7 @@ root.putChild('content', content) |
|
|
|
medianode = static.File('pymediaserv') |
|
|
|
medianode.contentTypes.update( { |
|
|
|
'.wmv': 'video/x-ms-wmv', |
|
|
|
'.asf': 'video/x-ms-asf', |
|
|
|
#'.ts': 'video/mp2t', |
|
|
|
'.ts': 'video/mpeg', # we may want this instead of mp2t |
|
|
|
'.m2t': 'video/mpeg', |
|
|
|