cancel
Showing results for 
Search instead for 
Did you mean: 

I want to change default Flash preview tools

jerry79
Champ in-the-making
Champ in-the-making
HI,All
    i use the alfresco 3.4.d, it used a flash preview tools name is WebPreviewer.swf, and it has not search function when i preview the document. So i want to use the FlexPaper to replace the WebPreviewer, the FlexPaper on the http://flexpaper.devaldi.com/default.jsp
    But i canont know how to replaced, i change the document as below:
       \alfresco\tomcat\webapps\share\components\preview\web-preview-min.js and
       \alfresco\tomcat\webapps\share\components\preview\web-preview.js
    Change the WebPreviewer.swf to FlexPaperViewer.swf, and restart the alfresco server then i can find the flash preview tools is changes, but i know must modify something continues because the FlexPaper cannot show any document now.
    So how about to do continue? Pls help me.
Thanks very much!
7 REPLIES 7

stevegreenbaum
Champ in-the-making
Champ in-the-making
http://code.google.com/p/share-extras/wiki/MediaPreviews

Take a look at this project.  You may be able to use it as a template for how to accomplish this.

applening
Champ in-the-making
Champ in-the-making
I have the same situation as I want to integrate FlowPlayer with Alfresco so that .swf files can be previewed in Document Library. This post was somewhat helpful http://code.google.com/p/alfrescoshareflowplayer/.

I downloadeded and copied these FlowPlayer files to \Alfresco\tomcat\webapps\share\components\preview:

flowplayer-3.2.7.swf to
flowplayer.controls-3.2.5.swf
flowplayer-3.2.6.min.js
style.css


It appears that I need to make changes to these files but not sure what exactly I need to change:

\Alfresco\tomcat\webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\form\controls\mimetype.ftl 

\Alfresco\tomcat\webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\preview\web-preview.get.html.ftl

\Alfresco\tomcat\webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\preview\web-preview.get.head.ftl

jerry79
Champ in-the-making
Champ in-the-making
thanks very much!
I follow steps and use flowplayer success. I will study and check how to get the flex.

jerry79
Champ in-the-making
Champ in-the-making
now i want to add mp3 support, and follow the flowplayer help, copy flowplayer audio file in the same folder with flowplayer-3.2.7.swf , and modify the file"web-preview.get.html.ftl" as follow:

flowplayer("player",  {src: "${page.url.context}/components/preview/flowplayer-3.2.7.swf", wmode: "opaque"},
{
plugins: {
   audio: {
         url: 'flowplayer.audio.swf'
      },
   controls: {               
         url: "${page.url.context}/components/preview/flowplayer.controls-3.2.5.swf",
         play: true,
         pause: null,
         stop: null,
         mute: null,
         time: null,
         volume: null
      }},
But the mp3 file canot be play, how can i start the mp3 file support? if need modify any files?
thanks very much!

jerry79
Champ in-the-making
Champ in-the-making
I find the mp3 find is be recognized to MEPG audio, and i modify the mimytype.ftl, add "aduio/mp3" type, also canont be recognized to MP3, then pls help me.
thanks.

jerry79
Champ in-the-making
Champ in-the-making
who can help me? thanks very much

wileyjacobs
Champ in-the-making
Champ in-the-making
Any luck on using FlexPaper in alfresco?

https://forums.alfresco.com/en/viewtopic.php?f=47&t=45757