docs/doc/reference/com/google/android/exoplayer2/ext/cast/DefaultCastOptionsProvider.html
Package com.google.android.exoplayer2.ext.cast
All Implemented Interfaces:com.google.android.gms.cast.framework.OptionsProvider
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classDefaultCastOptionsProviderextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements com.google.android.gms.cast.framework.OptionsProvider
Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
A convenience OptionsProvider to target the default cast receiver app.
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| static String | APP_ID_DEFAULT_RECEIVER_WITH_DRM |
Deprecated.
App id that points to the Default Media Receiver app with basic DRM support. |
Constructors | Constructor | Description |
| --- | --- |
| DefaultCastOptionsProvider() |
Deprecated.
|
All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| List<com.google.android.gms.cast.framework.SessionProvider> | getAdditionalSessionProviders(Context context) |
Deprecated.
|
| com.google.android.gms.cast.framework.CastOptions | getCastOptions(Context context) |
Deprecated.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public static final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")APP_ID_DEFAULT_RECEIVER_WITH_DRM
Deprecated.
App id that points to the Default Media Receiver app with basic DRM support.
Applications that require more complex DRM authentication should create a custom receiver application.
See Also:Constant Field Values
-
public DefaultCastOptionsProvider()
Deprecated.
-
public com.google.android.gms.cast.framework.CastOptions getCastOptions([Context](https://developer.android.com/reference/android/content/Context.html "class or interface in android.content")context)
Deprecated.
Specified by:getCastOptions in interface com.google.android.gms.cast.framework.OptionsProvider
-
public[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<com.google.android.gms.cast.framework.SessionProvider> getAdditionalSessionProviders([Context](https://developer.android.com/reference/android/content/Context.html?is-external=true "class or interface in android.content")context)
Deprecated.
Specified by:getAdditionalSessionProviders in interface com.google.android.gms.cast.framework.OptionsProvider