-
- All Implemented Interfaces:
-
com.brightcove.player.event.Component
@Emits(events = {GoogleCastEventType.LOAD_MEDIA_INFO, GoogleCastEventType.ADD_MEDIA_INFO, EventType.SET_MEDIA_CONTROLLER_CONFIG, EventType.REMOVE_VIDEO_STILL, EventType.SET_VIDEO_STILL, EventType.SET_SOURCE, EventType.PAUSE, EventType.STOP, EventType.PLAY, EventType.RESTORE_DEFAULT_MEDIA_CONTROLLER})@ListensFor(events = {EventType.COMPLETED, EventType.DID_SEEK_TO, EventType.DID_SET_VIDEO, EventType.PROGRESS, EventType.SET_SOURCE, EventType.PLAY, GoogleCastEventType.CAST_SESSION_STARTED, GoogleCastEventType.CAST_SESSION_ENDED, EventType.ACTIVITY_STARTED}) public class BrightcoveCastMediaManager extends AbstractComponent
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
autoCastIfPlaying
-
Constructor Summary
Constructors Constructor Description BrightcoveCastMediaManager(Context context, EventEmitter eventEmitter)
BrightcoveCastMediaManager(Context context, EventEmitter eventEmitter, MediaControllerConfig mediaControllerConfig)
-
Method Summary
Modifier and Type Method Description void
setAutoCastIfPlaying(boolean autoCastIfPlaying)
If enabled, the video playing locally will be automatically loaded to your Chromecast app receiveras soon as you get connected. boolean
isSessionAvailable()
void
updateBrightcoveMediaController(boolean isRemote)
boolean
isAutoCastIfPlaying()
If enabled, the video playing locally will be automatically loaded to your Chromecast app receiveras soon as you get connected. void
setCustomData(@Nullable() CustomData customData)
The Brightcove CustomData to be used when sending custom data to the Cast receiver app. CustomData
getCustomData()
void
enableCustomData(boolean enableCustomData)
If enabled, custom data is added to the MediaInfo object when sending information to theCast receiver app. void
setQueueingSupported(boolean isQueueingSupported)
Whether queueing is supported in the cast receiver app. boolean
isCustomDataEnabled()
Whether custom data is enabled or not. -
-
Method Detail
-
setAutoCastIfPlaying
void setAutoCastIfPlaying(boolean autoCastIfPlaying)
If enabled, the video playing locally will be automatically loaded to your Chromecast app receiveras soon as you get connected.
- Parameters:
autoCastIfPlaying
- true to enable auto cast if playing.
-
isSessionAvailable
boolean isSessionAvailable()
-
updateBrightcoveMediaController
void updateBrightcoveMediaController(boolean isRemote)
-
isAutoCastIfPlaying
boolean isAutoCastIfPlaying()
If enabled, the video playing locally will be automatically loaded to your Chromecast app receiveras soon as you get connected.
-
setCustomData
void setCustomData(@Nullable() CustomData customData)
The Brightcove CustomData to be used when sending custom data to the Cast receiver app.
-
getCustomData
@Nullable() CustomData getCustomData()
-
enableCustomData
void enableCustomData(boolean enableCustomData)
If enabled, custom data is added to the MediaInfo object when sending information to theCast receiver app. Otherwise, custom data is not added.
- Parameters:
enableCustomData
- Whether to enable or disable custom data.
-
setQueueingSupported
void setQueueingSupported(boolean isQueueingSupported)
Whether queueing is supported in the cast receiver app.
If true, queueing option is not displayer to the user. Otherwise, the is shown.
- Parameters:
isQueueingSupported
- Whether queuing is supported in the Cast receiver app.
-
isCustomDataEnabled
boolean isCustomDataEnabled()
Whether custom data is enabled or not.
-
-
-
-