Package 

Class BrightcoveCastMediaManager

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean autoCastIfPlaying
    • 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.
      • Methods inherited from class com.brightcove.player.event.AbstractComponent

        addListener, addOnceListener, getEventEmitter, removeListener, removeListeners
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BrightcoveCastMediaManager

        BrightcoveCastMediaManager(Context context, EventEmitter eventEmitter)
      • BrightcoveCastMediaManager

        BrightcoveCastMediaManager(Context context, EventEmitter eventEmitter, MediaControllerConfig mediaControllerConfig)
    • 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.
      • isAutoCastIfPlaying

         boolean isAutoCastIfPlaying()

        If enabled, the video playing locally will be automatically loaded to your Chromecast app receiveras soon as you get connected.

      • 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.