public static class GoogleCastComponent.Builder
extends java.lang.Object
GoogleCastComponent
.Constructor and Description |
---|
Builder(EventEmitter eventEmitter,
android.content.Context context)
Constructor of the Builder.
|
Modifier and Type | Method and Description |
---|---|
GoogleCastComponent |
build()
Creates an instance of the GoogleCastComponent.
|
GoogleCastComponent.Builder |
setAutoPlay(boolean autoPlay)
Whether playback on the Cast device should start immediately.
|
GoogleCastComponent.Builder |
setBrightcoveCastMediaManager(BrightcoveCastMediaManager brightcoveCastMediaManager)
Customizable
BrightcoveCastMediaManager . |
GoogleCastComponent.Builder |
setCustomData(CustomData customData)
The Brightcove
CustomData to be used when sending custom data to the Cast receiver app. |
GoogleCastComponent.Builder |
setEnableCustomData(boolean enableCustomData)
Whether to send custom data to the Cast receiver app.
|
GoogleCastComponent.Builder |
setQueuingSupported(boolean isQueuingSupported)
Whether queueing is supported in the cast receiver app.
|
public Builder(@NonNull EventEmitter eventEmitter, @NonNull android.content.Context context)
eventEmitter
- the event emitter of the current player.context
- the context.public GoogleCastComponent.Builder setBrightcoveCastMediaManager(@Nullable BrightcoveCastMediaManager brightcoveCastMediaManager)
BrightcoveCastMediaManager
.public GoogleCastComponent.Builder setCustomData(@Nullable CustomData customData)
CustomData
to be used when sending custom data to the Cast receiver app.public GoogleCastComponent.Builder setEnableCustomData(boolean enableCustomData)
public GoogleCastComponent.Builder setQueuingSupported(boolean isQueuingSupported)
isQueuingSupported
- Whether queuing is supported in the Cast receiver app.public GoogleCastComponent.Builder setAutoPlay(boolean autoPlay)
autoPlay
- Whether playback on the Cast device should start immediately.public GoogleCastComponent build()