'''Short description''' Wouldn't it be nice to have support for video and other media? I saw something in Dokuwiki on http://wiki.splitbrain.org/plugin:video -- FlorianBurka <> If you could tell the mimetype and the object code I do add it. -- ReimarBauer <> Does this help? ||What||classid||mime||parameters|| ||movie||clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B||video/quicktime||autoplay = true|| ||mpeg||clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B||video/mpeg|||| ||realvideo||clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA|| ||autostart = true || ||video||CLSID:05589FA1-C356-11CE-BF01-00AA0055595A||application/x-mplayer2|| autostart = true|| ||midi||clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B||audio/midi|||| ||mp3||clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B||audio/|||| ||visio||CLSID:279D6C9A-652E-4833-BEFC-312CA8887857||vnd.ms-visio.viewer|||| -- FlorianBurka <> Needs tests on several browsers and OSs {{attachment:EmbedObject_patch.txt}} (!) Added to 1.5 branch ---- Test for Loading of Runtime Shared Libraries into an SWF I have completed a number of [[BrianMcEnery/FlashTest| tests]] to check loading of runtime shared libraries into an swf using ''Flash MX2004'', and there seems to be a little bit of a glitch. Any suggestions would be very welcome. -- BrianMcEnery ## Tell your story here. ## What is the problem you are trying to solve? ## Is this features useful to most users or just to specific users? I have spent some time to resolve problem with embedded visio drawings to the MoinMoin pages, so I found some gaps in the code of plugin. For example my part of code especially created for visio drawings: {{{ #!python if mime_type == 'application/vnd.ms-visio.viewer': if self.width == "": self.width = "800" if self.height == "": self.height = "600" return ''' Your browser cannot display Visio Please use IE instead! ''' % { "width": self.width, "height": self.height, "file": file, } }}} Also it needs to add string like {{{ #!python url = self.request.getQualifiedURL(url) }}} After string {{{ #!python url = AttachFile.getAttachUrl(pagename, attname, self.request) }}} So complete render procedure: {{{ #!python def render(self): _ = self.request.getText pagename, attname = AttachFile.absoluteName(self.target, self.formatter. attachment_fname = AttachFile.getFilename(self.request, pagename, attnam if not os.path.exists(attachment_fname): linktext = _('Upload new attachment "%(filename)s"') return wikiutil.link_tag(self.request, ('%s?action=AttachFile&rename=%s' % ( wikiutil.quoteWikinameURL(pagename), wikiutil.url_quote_plus(attname))), linktext % {'filename': attname}) url = AttachFile.getAttachUrl(pagename, attname, self.request) url = self.request.getQualifiedURL(url) mime_type, enc = mimetypes.guess_type(attname) if mime_type in ["application/x-shockwave-flash", "application/x-dvi", "application/postscript", "application/pdf", "application/ogg", "application/vnd.visio", "application/vnd.ms-visio.viewer", "image/x-ms-bmp", "image/svg+xml", "image/tiff", "image/x-photoshop", "image/x-ms-bmp", "image/svg+xml", "image/tiff", "image/x-photoshop", "audio/mpeg", "audio/midi", "audio/x-wav", "video/fli", "video/mpeg", "video/quicktime", "video/x-msvideo", "chemical/x-pdb", "x-world/x-vrml", ]: return self.embed(mime_type, url) else: msg = 'Not supported mimetype %(mimetype)s ' % {"mimetype": mime_type} return "%s%s%s" % (self.macro.formatter.sysmsg(1), self.macro.formatter.text(msg), self.macro.formatter.sysmsg(0)) }}} ---- see also ../EmbedObject, ../AltTextForEmbedObjectMacro ---- CategoryFeatureImplemented