Class ConcurrencyClient

java.lang.Object
com.brightcove.player.event.AbstractComponent
com.brightcove.player.concurrency.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 Details

  • Constructor Details

    • ConcurrencyClient

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

    • setRequestHeaders

      public void setRequestHeaders(Map<String,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
    • getDefaultConcurrencyHandler

      public final DefaultConcurrencyHandler getDefaultConcurrencyHandler()