Package com.brightcove.cast
Class GoogleCastComponent.Builder
java.lang.Object
com.brightcove.cast.GoogleCastComponent.Builder
- Enclosing class:
- GoogleCastComponent
The Builder to create a
GoogleCastComponent
.-
Constructor Summary
ConstructorDescriptionBuilder
(EventEmitter eventEmitter, android.content.Context context) Constructor of the Builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates an instance of the GoogleCastComponent.setAutoPlay
(boolean autoPlay) Whether playback on the Cast device should start immediately.setBrightcoveCastMediaManager
(BrightcoveCastMediaManager brightcoveCastMediaManager) CustomizableBrightcoveCastMediaManager
.setCustomData
(CustomData customData) The BrightcoveCustomData
to be used when sending custom data to the Cast receiver app.setEnableCustomData
(boolean enableCustomData) Whether to send custom data to the Cast receiver app.setQueuingSupported
(boolean isQueuingSupported) Whether queueing is supported in the cast receiver app.
-
Constructor Details
-
Builder
Constructor of the Builder.- Parameters:
eventEmitter
- the event emitter of the current player.context
- the context.
-
-
Method Details
-
setBrightcoveCastMediaManager
public GoogleCastComponent.Builder setBrightcoveCastMediaManager(@Nullable BrightcoveCastMediaManager brightcoveCastMediaManager) CustomizableBrightcoveCastMediaManager
. -
setCustomData
The BrightcoveCustomData
to be used when sending custom data to the Cast receiver app. -
setEnableCustomData
Whether to send custom data to the Cast receiver app. The value is set to false by default.- Returns:
- this builder instance.
-
setQueuingSupported
Whether queueing is supported in the cast receiver app. Please note that queueing is not supported in the Brightcove Cast receiver app If true, the Add To Queue menu item is displayed to the user. If false, only the Play Now menu item is shown.- Parameters:
isQueuingSupported
- Whether queuing is supported in a custom Cast receiver app.- Returns:
- this builder instance.
-
setAutoPlay
Whether playback on the Cast device should start immediately.- Parameters:
autoPlay
- Whether playback on the Cast device should start immediately.- Returns:
- this builder instance
-
build
Creates an instance of the GoogleCastComponent.
-