Patch that adds flash support

mr.j - April 10, 2008 - 07:51
Project:Inline
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:postponed
Description

Hi I have attached a small patch that adds flash support to the current 5.x dev build - specifically files with mime type 'x-shockwave-flash'. It was just something I knocked up when the need to embed a piece of flash came up, as it looks like this sort of thing will never be added until Inline v2 is released.

It is dependent on the SWF Tools Module to do the flash rendering so you will need to install that module too. I use the SWFObject javascript method to render the flash (see SWF Tools docs) but any of the others should work.

Usage: Upload your swf file to a node just like an image and use the inline tag as per usual. It tries to autodetect the flash object dimensions from the file.

AttachmentSize
inline.swf_.patch1.55 KB

#1

sun - April 10, 2008 - 15:03
Status:active» postponed

Thanks for sharing this code. It looks a bit dirty, but it cleanly outlines the needed changes to support different media types.

#2

mr.j - April 10, 2008 - 23:35

Yes no problem, didn't expect you to commit it or anything - I just posted it in case anyone else wants to use it.

 
 

Drupal is a registered trademark of Dries Buytaert.