Package 

Class GoogleCastComponent

    • Constructor Detail

      • GoogleCastComponent

        GoogleCastComponent(EventEmitter emitter, String applicationId, Context context, boolean autoPlay)
        Parameters:
        emitter - The current event emitter.
        applicationId - The application ID for the receiver application on the Chromecast.
        context - The top-level application context.
        autoPlay - Boolean for deciding whether or not to auto play local playback on returnfrom the Chromecast.
      • GoogleCastComponent

        GoogleCastComponent(EventEmitter emitter, String applicationId, Context context)
        Parameters:
        emitter - The current event emitter.
        applicationId - The application ID for the receiver application on the Chromecast.
        context - The top-level application context.
      • GoogleCastComponent

        GoogleCastComponent(EventEmitter emitter, Context context)
        Instantiates a new Google Cast Component.
        Parameters:
        emitter - The current event emitter.
        context - The top-level application context.
      • GoogleCastComponent

        GoogleCastComponent(EventEmitter emitter, Context context, BrightcoveCastMediaManager brightcoveCastMediaManager)
        Instantiates a new Google Cast Component.
        Parameters:
        emitter - The current event emitter.
        context - The top-level application context.
        brightcoveCastMediaManager - The Brightcove Cast Media Manager.
    • Method Detail

      • loadMediaInfo

         void loadMediaInfo(MediaInfo mediaInfo)

        Load the Google Cast MediaInfo object.

        Parameters:
        mediaInfo - the media info
      • loadMediaInfo

         void loadMediaInfo(MediaInfo mediaInfo, long positionMs)

        Load the Google Cast MediaInfo object.This will load and auto play the video by default.To change this, you can set autoPlay to false with setAutoPlay.

        Parameters:
        mediaInfo - the media info
        positionMs - the position in millis
      • setAutoPlay

         void setAutoPlay(boolean autoPlayEnabled)

        Sets auto play.It is enabled by default.This only applies when using loadMediaInfo or loadMediaInfo.

        Parameters:
        autoPlayEnabled - true enabled
      • enableCustomData

         void enableCustomData(boolean enableCustomData)

        Enables/Disables custom data in the current BrightcoveCastMediaManager instance. Ifenabled, custom data is added to the MediaInfo object when sending information to the Castreceiver app. Otherwise, custom data is not added.

        Parameters:
        enableCustomData - Whether to enable custom data.
      • setIsQueuingSupported

         void setIsQueuingSupported(boolean isQueuingSupported)

        Enables/Disables queuing support in the current BrightcoveCastMediaManager instance.If enabled, it is expected that the Receiver will support queuing, and so an Add To Queue menu item will be shown tothe user in the play menu when a cast session is in progress.If disabled, it is expected that the Receiver will not support queuing, and so only a Play Now menu item will beshown to the user in the play menu when a cast session is in progress.

        Parameters:
        isQueuingSupported - Whether the receiver is expected to support queuing.
      • loadItem

         void loadItem(MediaQueueItem mediaQueue, int playheadPosition)