-
public class GoogleCastComponent.Builder
The Builder to create a GoogleCastComponent.
-
-
Field Summary
Fields Modifier and Type Field Description private BrightcoveCastMediaManager
brightcoveCastMediaManager
private CustomData
customData
private boolean
enableCustomData
private boolean
autoPlay
-
Constructor Summary
Constructors Constructor Description GoogleCastComponent.Builder(EventEmitter eventEmitter, Context context)
Constructor of the Builder.
-
Method Summary
Modifier and Type Method Description GoogleCastComponent.Builder
setBrightcoveCastMediaManager(@Nullable() BrightcoveCastMediaManager brightcoveCastMediaManager)
Customizable BrightcoveCastMediaManager. GoogleCastComponent.Builder
setCustomData(@Nullable() 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
setAutoPlay(boolean autoPlay)
Whether playback on the Cast device should start immediately. GoogleCastComponent.Builder
setQueuingSupported(boolean isQueuingSupported)
Whether queueing is supported in the cast receiver app.Please note that queueing is not supported in the Brightcove Cast receiver appIf true, the Add To Queue menu item is displayed to the user.If false, only the Play Now menu item is shown. GoogleCastComponent
build()
Creates an instance of the GoogleCastComponent. -
-
Constructor Detail
-
GoogleCastComponent.Builder
GoogleCastComponent.Builder(EventEmitter eventEmitter, Context context)
Constructor of the Builder.- Parameters:
eventEmitter
- the event emitter of the current player.context
- the context.
-
-
Method Detail
-
setBrightcoveCastMediaManager
GoogleCastComponent.Builder setBrightcoveCastMediaManager(@Nullable() BrightcoveCastMediaManager brightcoveCastMediaManager)
Customizable BrightcoveCastMediaManager.
-
setCustomData
GoogleCastComponent.Builder setCustomData(@Nullable() CustomData customData)
The Brightcove CustomData to be used when sending custom data to the Cast receiver app.
-
setEnableCustomData
GoogleCastComponent.Builder setEnableCustomData(boolean enableCustomData)
Whether to send custom data to the Cast receiver app. The value is set to false by default.
-
setAutoPlay
GoogleCastComponent.Builder setAutoPlay(boolean autoPlay)
Whether playback on the Cast device should start immediately.
- Parameters:
autoPlay
- Whether playback on the Cast device should start immediately.
-
setQueuingSupported
GoogleCastComponent.Builder setQueuingSupported(boolean isQueuingSupported)
Whether queueing is supported in the cast receiver app.Please note that queueing is not supported in the Brightcove Cast receiver appIf 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.
-
build
GoogleCastComponent build()
Creates an instance of the GoogleCastComponent.
-
-
-
-