Browse Source

add a few video mime-types..

[git-p4: depot-paths = "//depot/": change = 725]
replace/5b80aeb26dc425aaddcd5182126c969e5cc04cbb
John-Mark Gurney 19 years ago
parent
commit
66f422d835
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      pymediaserv

+ 8
- 1
pymediaserv View File

@@ -69,7 +69,14 @@ root.putChild('root-device.xml', RootDevice())

from MediaServer import MediaServer

root.putChild('media', static.File('media'))
medianode = static.File('media')
medianode.contentTypes.update( {
'.wmv': 'video/x-ms-wmv',
'.ts': 'video/mp2t',
#'.ts': 'video/mpeg', # we may want this instead of mp2t
'.mp4': 'video/mp4',
})
root.putChild('media', medianode)

site = server.Site(root)
reactor.listenTCP(listenPort, site)


Loading…
Cancel
Save