Package com.theoplayer.android.api.cast
Object CastIntegrationFactory
-
- All Implemented Interfaces:
-
com.theoplayer.android.internal.integration.IntegrationFactory
public class CastIntegrationFactory implements IntegrationFactoryFactory class for creating CastIntegration instance.
-
-
Field Summary
Fields Modifier and Type Field Description public final static CastIntegrationFactoryINSTANCE
-
Method Summary
Modifier and Type Method Description final static CastIntegrationcreateCastIntegration(THEOplayerView theoplayerView, CastConfiguration castConfiguration)Creates a CastIntegration instance. final static CastIntegrationcreateCastIntegration(THEOplayerView theoplayerView)Creates a CastIntegration instance. CastIntegrationcreateIntegration(THEOplayerView theoplayerView)-
-
Method Detail
-
createCastIntegration
final static CastIntegration createCastIntegration(THEOplayerView theoplayerView, CastConfiguration castConfiguration)
Creates a CastIntegration instance.
Will return null if:
CastStrategy is set to DISABLED.
OptionsProvider is not set in the AndroidManifest.xml.
GooglePlayServices is not available.
- Parameters:
theoplayerView- The THEOplayerView which will handle the Cast session (NonNull).castConfiguration- The cast configuration.- Returns:
The CastIntegration (Nullable).
-
createCastIntegration
final static CastIntegration createCastIntegration(THEOplayerView theoplayerView)
Creates a CastIntegration instance.
This uses the CastConfiguration specified in THEOplayerConfig.cast.
- Parameters:
theoplayerView- The THEOplayerView which will handle the Cast session (NonNull).- Returns:
The CastIntegration (Nullable).
-
createIntegration
CastIntegration createIntegration(THEOplayerView theoplayerView)
-
-
-
-