diff --git a/pymediaserv b/pymediaserv index 2889c32..4e06dc0 100755 --- a/pymediaserv +++ b/pymediaserv @@ -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)