Package-level declarations

Types

Link copied to clipboard

Information about the library such as version and name.

Link copied to clipboard
class CastManager(appContext: Context, logger: Logger = defaultCastLogger)

CastManager uses Google Cast Application Framework's (CAF) SessionManager instance to manage CastSession and coordinate all the Cast interactions. CastManager manages, internally, a custom media channel to facilitate communication between the Sender and the Receiver Applications. CastManager also provides access to CastPlayer, for playing the content on the Web Receiver Application, and enforces policies for accessing Firstlight Platform resources.

Link copied to clipboard

Represents the Sender Application listener for the CastManager and com.google.android.gms.cast.framework.CastSession events.

Link copied to clipboard

Player instance that sends playback commands to the receiver application based on user interactions.

Properties

Link copied to clipboard
const val CAST_TAG: String

Functions

Link copied to clipboard
fun advertBreakDurationsPriorTo(positionMs: Long, timeline: List<AdInfo>): Long
Link copied to clipboard
fun isInAdvertBreak(playheadMs: Long, adBreak: AdInfo): Boolean