Component used to keep track of time an unauthorized user has for previewing content

Methods

config ():IFreePreviewConfig

Configuration values for free preview

incrementTimeConsumed (cb:FPCallback):IFreePreview

Increment the time consumed

Parameters:

cb

A callback function to trigger when free preview time has been consumed

init (?configData:FreePreviewConfigData):IFreePreview

Initialize the free preview component

Parameters:

configData

Free preview configuration data

initStream (cb:FPCallback):IFreePreview

Initialize the stream

Parameters:

cb

A callback function to trigger when the stream is initialized

retrieveTimeRemaining (cb:FPCallback):IFreePreview

Retrieve the time remaining for free preview

Parameters:

cb

A callback function to trigger which returns the time remaining