RemoteControlConfig

RemoteControlConfig

data class RemoteControlConfig(var receiverStylesheetUrl: String? = null, var customReceiverConfig: Map<String, String?> = emptyMap(), var isCastEnabled: Boolean = true, var sendManifestRequestsWithCredentials: Boolean = false, var sendSegmentRequestsWithCredentials: Boolean = false, var sendDrmLicenseRequestsWithCredentials: Boolean = false, var onConfigureMediaInfo: ConfigureMediaInfoCallback? = null, val stopCastingOnError: Boolean = true) : Parcelable

Configures the remote receiver app.

Constructors

RemoteControlConfigconstructor(receiverStylesheetUrl: String? = null, customReceiverConfig: Map<String, String?> = emptyMap(), isCastEnabled: Boolean = true, sendManifestRequestsWithCredentials: Boolean = false, sendSegmentRequestsWithCredentials: Boolean = false, sendDrmLicenseRequestsWithCredentials: Boolean = false, onConfigureMediaInfo: ConfigureMediaInfoCallback? = null, stopCastingOnError: Boolean = true)

Types

NameSummary
Builderclass Builder

Properties

NameSummary
customReceiverConfigvar customReceiverConfig: Map<String, String?>
A Map containing custom configuration values that are sent to the remote control receiver. Default value is an empty Map.
isCastEnabledvar isCastEnabled: Boolean
Whether casting is enabled. Default value is true.
onConfigureMediaInfovar onConfigureMediaInfo: ConfigureMediaInfoCallback?
Callback providing the possibility to configure the media info object before it is loaded on the cast receiver to change its media/source. Default value is null.
receiverStylesheetUrlvar receiverStylesheetUrl: String?
A URL to a CSS file the receiver app loads to style the receiver app. Default value is null, indicating that the default CSS of the receiver app will be used.
sendDrmLicenseRequestsWithCredentialsvar sendDrmLicenseRequestsWithCredentials: Boolean
Indicates whether cookies and credentials will be sent along DRM licence requests on the cast receiver Default value is false.
sendManifestRequestsWithCredentialsvar sendManifestRequestsWithCredentials: Boolean
Indicates whether cookies and credentials will be sent along manifest requests on the cast receiver Default value is false.
sendSegmentRequestsWithCredentialsvar sendSegmentRequestsWithCredentials: Boolean
Indicates whether cookies and credentials will be sent along segment requests on the cast receiver Default value is false.
stopCastingOnErrorval stopCastingOnError: Boolean
Indicates whether Cast playback should stop on player error.