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
| RemoteControlConfig | constructor(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
| Name | Summary |
|---|---|
| Builder | class Builder |
Properties
| Name | Summary |
|---|---|
| customReceiverConfig | var customReceiverConfig: Map<String, String?> A Map containing custom configuration values that are sent to the remote control receiver. Default value is an empty Map. |
| isCastEnabled | var isCastEnabled: Boolean Whether casting is enabled. Default value is true. |
| onConfigureMediaInfo | var 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. |
| receiverStylesheetUrl | var 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. |
| sendDrmLicenseRequestsWithCredentials | var sendDrmLicenseRequestsWithCredentials: Boolean Indicates whether cookies and credentials will be sent along DRM licence requests on the cast receiver Default value is false. |
| sendManifestRequestsWithCredentials | var sendManifestRequestsWithCredentials: Boolean Indicates whether cookies and credentials will be sent along manifest requests on the cast receiver Default value is false. |
| sendSegmentRequestsWithCredentials | var sendSegmentRequestsWithCredentials: Boolean Indicates whether cookies and credentials will be sent along segment requests on the cast receiver Default value is false. |
| stopCastingOnError | val stopCastingOnError: Boolean Indicates whether Cast playback should stop on player error. |