Browse Source

add media type for asf files...

import: https://core.fluendo.com/elisa/trac/ticket/96

[git-p4: depot-paths = "//depot/": change = 917]
replace/b43bf02ddeddd088c0e6b94974ca1a46562eb3db
John-Mark Gurney 18 years ago
parent
commit
e00154fede
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      pymediaserv

+ 2
- 1
pymediaserv View File

@@ -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',


Loading…
Cancel
Save