ProgramChangeHelper
ProgramChangeHelper ⇐ Class
Kind: global class
Extends: Class
Singleton:
Properties
Name | Type | Description |
---|---|---|
delayRestartTimer | number | An integer value used to set the delay in seconds when restarting changed program timer. |
programService | ProgramService | A reference on the Program service. |
eventBus | EventBus | A reference on the Event bus. |
timerManager | TimerManager | A reference on the Timer manager. |
- ProgramChangeHelper ⇐
Class
ProgramChangeHelper()
Utility class which handles Program change events.
monitorProgramChange(playerSession)
Method that starts monitoring changes of program.
Kind: instance method of ProgramChangeHelper
Param | Type | Description |
---|---|---|
playerSession | AbstractPlayerSession | the player session |
stopMonitorProgramChange(playerSession)
Method that stops monitoring changes of program.
Kind: instance method of ProgramChangeHelper
Param | Type | Description |
---|---|---|
playerSession | AbstractPlayerSession | the player session |
_initContext(playerSession) ⇒ Object
Define the context of the program change.
Kind: instance method of ProgramChangeHelper
Returns: Object
- A context object
Param | Type | Description |
---|---|---|
playerSession | AbstractPlayerSession | the player session |
_checkProgramChanged(context) ⇒ Object
Checks if current program has changed.
Kind: instance method of ProgramChangeHelper
Returns: Object
- An updated context object
Param | Type | Description |
---|---|---|
context | Object | 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
Param | Type | Description |
---|---|---|
context | Object | Current program and player session |
_restartTimer(context)
Restart current watching program timer.
Kind: instance method of ProgramChangeHelper
Param | Type |
---|---|
context | Object |