DefaultOptionsProvider

This class configures three key components of the Google Cast: The Cast Receiver App Id, the Expanded Controller Activity and the Notification Target Activity. By Default, only the Cast Receiver App Id is set, which is under the strings.xml file with the key cast_receiver_app_id. You can replace this id by overriding the same key in your strings.xmk file. You need to set the ExpandedControllerActivity through the AndroidManifest as meta-data as shown below: <meta-data android:name="com.brightcove.cast.DefaultOptionsProvider.EXPANDED_CONTROLLER_ACTIVITY_CLASS_NAME" android:value="com.brightcove.cast.DefaultExpandedControllerActivity" /> In the same way, you can set the Notification Target Activity, for example: <meta-data android:name="com.brightcove.cast.DefaultOptionsProvider.OPTIONS_PROVIDER_CLASS_NAME" android:value="com.brightcove.cast.DefaultExpandedControllerActivity" />

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val EXPANDED_CONTROLLER_ACTIVITY_CLASS_NAME: String = "com.brightcove.cast.DefaultOptionsProvider.EXPANDED_CONTROLLER_ACTIVITY_CLASS_NAME"
Link copied to clipboard
val NOTIFICATION_TARGET_ACTIVITY_CLASS_NAME: String = "com.brightcove.cast.DefaultOptionsProvider.NOTIFICATION_TARGET_ACTIVITY_CLASS_NAME"
Link copied to clipboard
val TAG: String

Functions

Link copied to clipboard
open fun getAdditionalSessionProviders(context: Context): List<SessionProvider>
Link copied to clipboard
open fun getCastOptions(context: Context): CastOptions