Class ConcurrencyClient

  • All Implemented Interfaces:
    Component

    @Emits(events={"gscMaxConcurrencyReached","gscHeartbeatStopped","gscError"})
    @ListensFor(events={"activityPaused","activityResumed","completed","didPlay","fragmentPaused","fragmentResumed","stop","setVideoStill","enterPictureInPictureMode","didEnterPictureInPictureMode","didExitPictureInPictureMode"})
    public class ConcurrencyClient
    extends AbstractComponent
    • Field Detail

      • HEARTBEAT_ACCOUNTID_HEADER_KEY

        public static final java.lang.String HEARTBEAT_ACCOUNTID_HEADER_KEY
        See Also:
        Constant Field Values
      • HEARTBEAT_VIDEO_HEADER_KEY

        public static final java.lang.String HEARTBEAT_VIDEO_HEADER_KEY
        See Also:
        Constant Field Values
    • Constructor Detail

      • ConcurrencyClient

        public ConcurrencyClient​(@NonNull
                                 android.content.Context context,
                                 @NonNull
                                 EventEmitter eventEmitter,
                                 @NonNull
                                 BaseVideoView brightcoveVideoView)
    • Method Detail

      • setRequestHeaders

        public void setRequestHeaders​(java.util.Map<java.lang.String,​java.lang.String> requestHeaders)
        Set the headers that will be included in the request
        Parameters:
        requestHeaders -
      • setSessionsListener

        public void setSessionsListener​(ConcurrencyClient.SessionsListener listener)
        Set a SessionsListener to get the current active sessions
        Parameters:
        listener -
      • requestActiveSessions

        public void requestActiveSessions()
        Request the current active sessions. Set a {#SessionsListener} to get the returned active sessions