Monday, January 5, 2009

Alfresco Share Flash Preview

During recent work with Alfresco Share, I encountered issue similar to one described in this topic http://forums.alfresco.com/en/viewtopic.php?f=9&t=14380
Apparently this was related to swf tools generating flash preview using parameter, supplied by Alfresco. My hack was to modify following config file /home/apache-tomcat-5.5.27/webapps/alfresco/WEB-INF/classes/alfresco/thumbnail-service-context.xml 

to change default flash version from 9 to 10, since more and more clients upgrade to recent version, so this becomes more actual.                                
After change it should look like:


<!-- Web Preview thumbnail options -->
<bean class="org.alfresco.repo.thumbnail.ThumbnailDefinition">
<property name="name" value="webpreview" />
<property name="mimetype" value="application/x-shockwave-flash"/>
<property name="transformationOptions">
<bean class="org.alfresco.repo.content.transform.swf.SWFTransformationOptions">
<property name="flashVersion" value="10"/>
</bean>

Perhaps there should be more flexible way to detect version of Flash player and communicate it back to Alfresco/SWF tools to render proper code.

2 comments:

Anonymous said...

Perhaps there should be more flexible way to detect version of Flash player and communicate it back to Alfresco/SWF tools to render proper code.
That's nice in theory, but the Alfresco repository caches thumbnails (both static as used by the document library and flash for the preview) - so its preferable to cache the Flash v9 version unless you're 100% sure ALL your users are on Flash v10... in which case modifying the config is the correct way to go.
-- Mike

Juan Pablo B said...

Hi, I would like to use the Flash previewer in Share inside the Alfresco Explorer. Do you how can it done??

Cloud Computing Google Group