Class DefaultCastOptionsProvider

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

    
    public class DefaultCastOptionsProvider
     implements OptionsProvider
                        

    The default cast option provider.

    • Needs to be registered in the AndroidManifest to enable Chromecast on Android.
    • Sets THEOplayer Chromecast receiver as the Chromecast receiver.
    • Only supports CAF receivers.
    • To select your own receiver, you can create your own implementation of OptionsProvider.

    Example:

    <meta-data android:name="com.google.android.gms.cast.framework.OPTIONS_PROVIDER_CLASS_NAME" android:value="com.theoplayer.chromecast.CastOptionsProvider"/>
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      CastOptions getCastOptions(Context context)
      List<SessionProvider> getAdditionalSessionProviders(Context context)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait