From e00154fede0eb21af6a4b9de46e7698648df7d9b Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Sun, 15 Oct 2006 10:27:43 -0800 Subject: [PATCH] add media type for asf files... import: https://core.fluendo.com/elisa/trac/ticket/96 [git-p4: depot-paths = "//depot/": change = 917] --- pymediaserv | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pymediaserv b/pymediaserv index f293b69..f7168d8 100755 --- a/pymediaserv +++ b/pymediaserv @@ -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',