|
Project Information
|
This code gives Alfresco Share the ability to play videos from the document preview page. It supports any mimetype that is typically supported by a Flash player (e.g., flv, mp4, mov). This integration was inspired from code that was posted by an Alfresco Forum user: http://forums.alfresco.com/en/viewtopic.php?f=47&t=20628 Note: Alfresco v4.x now supports video playback, so this add-on is no longer required. A few caveats:- This code is intended as a short-term workaround until Alfresco corrects the problem that currently is causing video to not play on the Share document preview screen. There is already a Flash player built into Share, so I believe that native video support will be provided by Alfresco. This code is bolted on rather inelegantly, but it does work
- A swf file can be displayed, but the player controls are disabled.
- A Javascript message is generated, but it doesn't affect video playback. The message is a result of the bolt-on technique employed.
- v1.1 works with Alfresco v3.3 and v1.2b works with v3.4.
- An issue was posted pointing out that some dialogs on the preview page (e.g., Assign Task) in v3.3 do not work properly when a video is playing. A fix is still pending for v3.3, but has been released for v3.4. See issue #4 for description of a fix that resolves the problem in v3.3 for all dialogs, except Assign Task.
- An issue was posted that indicates that the flowplayerstyle.css style definition conflicts with some Alfresco CSS. As a workaround, it was suggested that only the #page and .less selectors be retained in the flowplayerstyle.css file. That is, remove all of the other selectors (e.g., h1) within the file.
Installation:Download the player from http://flowplayer.org/ v3.2.2 | File | Target | | mimetype.ftl | shared\classes\alfresco\web-extension\site-webscripts\org\alfresco\components\form\controls | | web-preview.get.html.ftl | shared\classes\alfresco\web-extension\site-webscripts\org\alfresco\components\preview | | web-preview.get.head.ftl | shared\classes\alfresco\web-extension\site-webscripts\org\alfresco\components\preview | | flowplayer-3.2.2.swf | webapps\share\components\preview | | flowplayer.controls-3.2.1.swf | webapps\share\components\preview | | flowplayer-3.2.2-min.js (renamed from flowplayer-3.2.2.min.js) | webapps\share\components\preview | | flowplayerstyle.css (renamed from style.css) | webapps\share\components\preview |
|