Media Viewers

1 Likes

About this add-on

This add-on project for Alfresco Share provides a number of content viewers to complement the out-of-the box set supplied with Share. It was previously namedMedia Preview. Viewers can be configured into the Web Preview component of the Document Details Page. In a…

Visit code.google.com

Development Status:

Production

License Type(s)

Alfresco Version(s)

Description

This add-on project for Alfresco Share provides a number of content viewers to
complement the out-of-the box set supplied with Share. It was previously named
Media Preview.

Viewers can be configured into the Web Preview component of the Document
Details Page. In addition, the add-on supplies a custom dashlet which can be
used to display any chosen document or content item on a site dashboard.

The following viewers are supplied in the v2.x add-on for use on Alfresco 4

  • PdfJs displays documents, presentations and any other file capable of being
    transformed to PDF in-line in the web browser using the excellent pdf.js
    viewer, which uses the power of HTML5 to remove Share's Flash dependency for
    document viewing.

    The viewer supports a number of features not directly supported by the Flash
    document previewer, such as a sidebar with thumbnail, outline and search views,
    bookmarking of individual pages of a document, and will remember the page
    number and zoom level of previous documents that you have viewed.

    PdfJs Viewer

  • FLVPlayer and MP3Player display compatible audio and video files respectively, within the web-browser using the
    open source FLV Player and MP3 Player media players by neolao. Based on the
    content's MIME type, the updated component automatically chooses the appropriate
    previewer to use.

    While similar to the Flash players provided by Share out-of-the-box, these
    implementations allow advanced customization of the player via configuration and
    if FFmpeg is installed, will fire up a transformation to allow viewing
    of non-H264/FLV video and non-MP3 audio. The user is informed when conversion
    is in progress and the screen automatically updates when the content can
    be viewed.

  • Embed uses an in-line iFrame to embed the content itself directly inside the
    web page. It is suitable for use with content types that can be viewed
    directly within the web browser such as plain text and PDF, with the Chrome
    or Acrobat plugins installed. Again, this can be used to avoid the use of
    the Flash previewer for some clients.
  • Prettify allows formatted code, mark-up and other supported text formats
    to be displayed in directly in the document and uses the google-code-prettify
    project to provide an in-line browser-based view with syntax highlighting.

    Prettify Viewer

  • WebODF is an EXPERIMENTAL viewer which uses the AGPL-licensed WebODF
    project to display ODF content directly in the web browser.

    WebODF cannot be distributed with the add-in itself, so in order to use it you must also
    download the latest JAR file from the supporting share-webodf project and
    install it in the same way as the main media-viewers JAR file.

The v0.x/1.x add-on supplies only the FLVPlayer and MP3Player add-ons and works on Alfresco 3.3/3.4.

In addition to the Share component extensions the add-on supplies repository extension configuration
for defining 'thumbnailed' content in PDF, H264/FLV and MP3 formats, a full-size image thumbnail for
video files in JPEG format, and a transformer based on FFmpeg for generating the audio and video formats.


Technical Details

Alfresco Product(s)
Installation Method
Component Type(s)

Comments

  • On version 4.0.1, we have many pdfs whose thumbnail is not properly generated such that the document library and search thumbnail is just a white rectangle. If I apply this patch, can it help to circumvent this issue?

    htoombs Mon, 09/17/2012 - 15:19
  • I'm afraid this does not do anything with the thumbnailing of documents as seen in the document list view, so no it would not help if you are having problems there. You may want to try some of the additional options that are provided around Office document transformers, or just try upgrading to a more recent version of LibreOffice on your server.

    Will Abson Tue, 11/27/2012 - 14:49
  • In Internet Explorer, the document loads correctly in the viewer. But when I click on a menu item on the right (Download etc..) in share, the document disappears from the viewer. Any idea why?

    demo.addon Wed, 03/27/2013 - 17:32