Module: alfresco/preview/AVPlugin

alfresco/preview/AVPlugin

An abstract module for preview plugins to extend that handles auto-play and auto-pause capabilities.
Since:
  • 1.0.51
Author:
  • Dave Draper
License:
Source:

Members

autoPlay :boolean

Indicates whether or not the AV previewer should automatically play when it is displayed.
Type:
  • boolean
Default Value:
  • false
Source:

Methods

display()

Extends the inherited function to set up a subscription to handle when the plugin is hiden or displayed.
Source:
Listens to Events:

onMarkupAdded()

Extends the inherited function to start playing the preview if autoPlay is true.
Source:

onPreviewDisplayChange(payload)

Inspects the payload to see if the item represented by this plugin instance is being displayed. If autoPlay is true then the preview will begin playing when displayed, but it will always stop playing when hidden.
Parameters:
Name Type Description
payload object The list of items that are currently displayed.
Source: