VideoClientStateController

VideoClientStateController holds the current VideoClientState of the Video Client and handles lifecycle (start, initialize, stop, destroy) for the Video Client. VideoClientController should also ask VideoClientStateController if an action is allowed based on the current Video Client state.

Inheritors

Functions

Link copied to clipboard
abstract fun bindLifecycleHandler(lifecycleHandler: VideoClientLifecycleHandler)

Bind a handler to handle lifecycle events triggered by Video client state changes.

Link copied to clipboard
abstract fun canAct(minimalRequiredState: VideoClientState): Boolean

Check the current video client state against the minimum required state to determine if the action is permitted.

Link copied to clipboard
abstract fun start()

Moves the video client state to start states. May trigger lifecycle events.

Link copied to clipboard
abstract fun stop()

Moves the video client state to stop states. May trigger lifecycle events.

Link copied to clipboard
abstract fun updateState(newState: VideoClientState)

Update the current Video client state.