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"/>
-
-
Field Summary
Fields Modifier and Type Field Description public static String
DEFAULT_APP_ID
-
Constructor Summary
Constructors Constructor Description DefaultCastOptionsProvider()
-
Method Summary
Modifier and Type Method Description CastOptions
getCastOptions(Context context)
List<SessionProvider>
getAdditionalSessionProviders(Context context)
-
-
Method Detail
-
getCastOptions
CastOptions getCastOptions(Context context)
-
getAdditionalSessionProviders
List<SessionProvider> getAdditionalSessionProviders(Context context)
-
-
-
-