Thursday, June 26, 2008
Quicklook plugin for SWFs
Thursday, June 26, 2008
[UPDATE]
Head over here for an updated QuickLook plugin. I've tried it a few times now and it's working for me. The dimensions of the SWF aren't enforced but who really cares about that? It's useful and I have requested the source so that I may possible improve it... as danieltoo mentions crashing, etc.
Remember after "installing" the plugin to log out and back in to activate it.
I found a Quicklook plugin that is supposed to work for SWFs. However, when I try it, I only get the HTML with no SWF running within it. I can't tell if the player has instantiated as Quicklook views don't allow for right-clicks in them.
The contents of the preview.html file:
<body>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
id="Main" width="100%" height="100%"
codebase="http://fpdownload.macromedia.com/get/flashplayer/
current/swflash.cab">
<param name="movie" value="%@" />
<param name="allowScriptAccess" value="sameDomain" />
<embed src="%@" quality="high"
width="100%" height="100%"
name="Main"
align="middle"
play="true"
loop="false"
allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/go/getflashplayer">
</embed>
</object>
</body>
The binary for the plugin must somehow pass that "%@" in there with a file path... but it seems like it's failing for me. Could this be a sandbox violation of some kind? I can't see what the binary is trying to do here. Pointing to a .cab file is pretty strange, ain't it?
The link to the plugin can be found right here (ZIP FILE).
Any insight would be cool... as a SWF Quicklook plugin would rock pretty hard.
Update:
I tried placing an image into the quicklook, and it ONLY works locally (inside the package)... calls to the web fail. So I know the HTML control is there, but the SWF itself doesn't seem to load at all yet.
I wish I knew who made this thing or if anyone had a little XCode Project I could peak at.
Update 2:
Screw it, I might just start developing my own in XCode. I hope it's not too difficult. I mean, it's an HTML control with a plugin call within it (I think). I just got a PDF from the Apple Developer Connection.
Comments:
There are currently 2 Comments:
-
Jon MacDonald said...“I have been keeping a growing list of QuickLook plugins at my pet project, http://www.quicklookplugins.com.
If you end up finding a SWF one that works, please let me know. I was under the understanding that it wasnt possible, so let's hope that isnt the case!”



