Class DefaultCastOptionsProvider

  • All Implemented Interfaces:
    com.google.android.gms.cast.framework.OptionsProvider

    @Deprecated
    public final class DefaultCastOptionsProvider
    extends Object
    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.
    • Field Detail

      • APP_ID_DEFAULT_RECEIVER_WITH_DRM

        public static final String 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
    • Constructor Detail

      • DefaultCastOptionsProvider

        public DefaultCastOptionsProvider()
        Deprecated.
    • Method Detail

      • getCastOptions

        public com.google.android.gms.cast.framework.CastOptions getCastOptions​(Context context)
        Deprecated.
        Specified by:
        getCastOptions in interface com.google.android.gms.cast.framework.OptionsProvider
      • getAdditionalSessionProviders

        public List<com.google.android.gms.cast.framework.SessionProvider> getAdditionalSessionProviders​(Context context)
        Deprecated.
        Specified by:
        getAdditionalSessionProviders in interface com.google.android.gms.cast.framework.OptionsProvider