ProgramChangeHelper

ProgramChangeHelper ⇐ Class

Kind: global class
Extends: Class
Singleton:
Properties

NameTypeDescription
delayRestartTimernumber

An integer value used to set the delay in seconds when restarting changed program timer.

programServiceProgramService

A reference on the Program service.

eventBusEventBus

A reference on the Event bus.

timerManagerTimerManager

A reference on the Timer manager.

ProgramChangeHelper()

Utility class which handles Program change events.

monitorProgramChange(playerSession)

Method that starts monitoring changes of program.

Kind: instance method of ProgramChangeHelper

ParamTypeDescription
playerSessionAbstractPlayerSession

the player session

stopMonitorProgramChange(playerSession)

Method that stops monitoring changes of program.

Kind: instance method of ProgramChangeHelper

ParamTypeDescription
playerSessionAbstractPlayerSession

the player session

_initContext(playerSession) ⇒ Object

Define the context of the program change.

Kind: instance method of ProgramChangeHelper
Returns: Object - A context object

ParamTypeDescription
playerSessionAbstractPlayerSession

the player session

_checkProgramChanged(context) ⇒ Object

Checks if current program has changed.

Kind: instance method of ProgramChangeHelper
Returns: Object - An updated context object

ParamTypeDescription
contextObject

Current program and player session

_computeAndWaitTimeout(context) ⇒ Promise.<Object>

Wait for the end of the program in order to resolve the promise.

Kind: instance method of ProgramChangeHelper
Returns: Promise.<Object> - An updated context object

ParamTypeDescription
contextObject

Current program and player session

_restartTimer(context)

Restart current watching program timer.

Kind: instance method of ProgramChangeHelper

ParamType
contextObject