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
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.brightcove.player.event.AbstractComponent
eventEmitter, listenerTokens
-
Constructor Summary
ConstructorDescriptionConcurrencyClient
(android.content.Context context, EventEmitter eventEmitter, BaseVideoView brightcoveVideoView) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Request the current active sessions.void
setRequestHeaders
(Map<String, String> requestHeaders) Set the headers that will be included in the requestvoid
Set a SessionsListener to get the current active sessionsMethods inherited from class com.brightcove.player.event.AbstractComponent
addListener, addOnceListener, getEventEmitter, removeListener, removeListeners
-
Field Details
-
HEARTBEAT_ACCOUNTID_HEADER_KEY
- See Also:
-
HEARTBEAT_VIDEO_HEADER_KEY
- See Also:
-
-
Constructor Details
-
ConcurrencyClient
public ConcurrencyClient(@NonNull android.content.Context context, @NonNull EventEmitter eventEmitter, @NonNull BaseVideoView brightcoveVideoView)
-
-
Method Details
-
setRequestHeaders
Set the headers that will be included in the request- Parameters:
requestHeaders
-
-
setSessionsListener
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
-