An abstract module for preview plugins to extend that handles auto-play and auto-pause capabilities.
Extends the inherited function to set up a subscription to handle when the plugin is hiden or displayed.
Listens to Events:
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.
Name Type Description
object The list of items that are currently displayed.