@Emits(events={"gscMaxConcurrencyReached","gscError"}) @ListensFor(events={"activityPaused","activityResumed","completed","didPlay","fragmentPaused","fragmentResumed","stop","setVideoStill","enterPictureInPictureMode","didEnterPictureInPictureMode","didExitPictureInPictureMode"}) public class ConcurrencyClient extends AbstractComponent
| Modifier and Type | Class and Description |
|---|---|
static interface |
ConcurrencyClient.SessionsListener |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HEARTBEAT_ACCOUNTID_HEADER_KEY |
static java.lang.String |
HEARTBEAT_VIDEO_HEADER_KEY |
eventEmitter, listenerTokens| Constructor and Description |
|---|
ConcurrencyClient(android.content.Context context,
EventEmitter eventEmitter,
BaseVideoView brightcoveVideoView) |
| Modifier and Type | Method and Description |
|---|---|
DefaultConcurrencyHandler |
getDefaultConcurrencyHandler() |
void |
requestActiveSessions()
Request the current active sessions.
|
void |
setRequestHeaders(java.util.Map<java.lang.String,java.lang.String> requestHeaders)
Set the headers that will be included in the request
|
void |
setSessionsListener(ConcurrencyClient.SessionsListener listener)
Set a SessionsListener to get the current active sessions
|
addListener, addOnceListener, getEventEmitter, removeListener, removeListenerspublic static final java.lang.String HEARTBEAT_ACCOUNTID_HEADER_KEY
public static final java.lang.String HEARTBEAT_VIDEO_HEADER_KEY
public ConcurrencyClient(@NonNull
android.content.Context context,
@NonNull
EventEmitter eventEmitter,
@NonNull
BaseVideoView brightcoveVideoView)
public void setRequestHeaders(java.util.Map<java.lang.String,java.lang.String> requestHeaders)
requestHeaders - public void setSessionsListener(ConcurrencyClient.SessionsListener listener)
listener - public void requestActiveSessions()
public final DefaultConcurrencyHandler getDefaultConcurrencyHandler()