# HG changeset patch # User ReimarBauer # Node ID f373ba0fb6ab9d9afac442e628ad5d5f96652428 # Parent b3a47164c22a16a37bb097a78e03342ecacf4d3b added mov, mpg and midi support diff -r b3a47164c22a -r f373ba0fb6ab MoinMoin/macro/EmbedObject.py --- a/MoinMoin/macro/EmbedObject.py Tue Aug 29 17:01:55 2006 +0200 +++ b/MoinMoin/macro/EmbedObject.py Wed Aug 30 19:51:26 2006 +0200 @@ -191,6 +191,45 @@ VALUE = "%(file)s">Your browser cannot d "height": kw['height'], "file": url, } + elif mime_type == "audio/midi": + return ''' + + +''' % { + "width": kw["width"], + "height": kw["height"], + "file": url, +} + elif mime_type == "video/mpeg": + return ''' + + +''' % { + "width": kw["width"], + "height": kw["height"], + "file": url, +} + elif mime_type == "video/quicktime": + return ''' + + +''' % { + "width": kw["width"], + "height": kw["height"], + "file": url, +} else: msg = 'Not supported mimetype %(mimetype)s ' % {"mimetype": mime_type} return "%s%s%s" % (macro.formatter.sysmsg(1),