Browse Source

add Microsoft's audio/video mimetypes..

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

+ 9
- 1
pymediaserv View File

@@ -110,8 +110,16 @@ root.putChild('content', content)
# Purely to ensure some sane mime-types. On MacOSX I need these. # Purely to ensure some sane mime-types. On MacOSX I need these.
medianode = static.File('pymediaserv') medianode = static.File('pymediaserv')
medianode.contentTypes.update( { medianode.contentTypes.update( {
'.wmv': 'video/x-ms-wmv',
# From: http://support.microsoft.com/kb/288102
'.asf': 'video/x-ms-asf', '.asf': 'video/x-ms-asf',
'.asx': 'video/x-ms-asf',
'.wma': 'audio/x-ms-wma',
'.wax': 'audio/x-ms-wax',
'.wmv': 'video/x-ms-wmv',
'.wvx': 'video/x-ms-wvx',
'.wm': 'video/x-ms-wm',
'.wmx': 'video/x-ms-wmx',

#'.ts': 'video/mp2t', #'.ts': 'video/mp2t',
'.ts': 'video/mpeg', # we may want this instead of mp2t '.ts': 'video/mpeg', # we may want this instead of mp2t
'.m2t': 'video/mpeg', '.m2t': 'video/mpeg',


Loading…
Cancel
Save