HeartbeatManager
Manager that manages playback session's heartbeat lifecycle that covers checking stream concurrency and blackout boundary conditions For example stream would be aborted for the following cases:
- heartbeat update fails on the server
- heartbeat update fails for consecutive attempts as per [HeartbeatConfiguration.heartbeatMaxAllowedFailures]
- content is blacked out
Properties
HeartbeatService instance to set, if custom one, and get if previously set and if not then the default one is returned.
The token that encodes additional information of the content. This token is part of the payload provided by content authorization service response.
Allows to override the HeartbeatConfiguration.multiStreamMode value.
ComposablePlayer instance that provides PlaybackState information and used to abort the playback in case of errors.
StreamConcurrencyService instance to set, if custom one, and get if previously set and if not then the default one is returned.
Functions
Updates the heartbeatToken and this will be used in the future heartbeat update calls.