Package com.brightcove.player.event
Class AbstractEvent<PropertyValueType>
java.lang.Object
com.brightcove.player.event.AbstractEvent<PropertyValueType>
- Direct Known Subclasses:
Event
,MediaEvent
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The key for Activity on the FRAGMENT_ATTACHED lifecycle event.static final String
The key for ad id used in advertising events.static final String
Key for the Ad Insights parameters mapstatic final String
The key for ad title used in advertising events.static final String
The alignment property of a CAPTION event.static final String
The event property that specifiesView
.static final String
The key for events accessing audio tracks state.static final String
The key for the list of audio variants in AUDIO_TRACKS events.static final String
The key for a general boolean property.static final String
The event property that specifies theBrightcoveControlBar
.static final String
The event property that specifies theBrightcoveMediaController
.static final String
static final String
The key containing theBrightcoveCaptionFormat
selected.static final String
The key containing the uri for theBrightcoveCaptionFormat
selected.static final String
The key for events accessing caption state.static final String
The key for catalog urls used in the Analytics catalog request and response events.static final String
The key for events carrying CEA-608 data.static final String
The key for events carrying CEA-708 data.static final String
Key for Events that carry a configuration in their payload.static final String
Key for Events that carry a single Cue Point.static final String
Key for Events that carry a list of Cue Points.static final String
Video for Events that carry a current Video.static final String
Whether components should emit additional debug information.static final String
The simple name of the source component for an event when running in debug modestatic final String
Deprecated.static final String
The end of the time range of a list of cue pointsstatic final String
Key for an actual exception associated with a playback errorstatic final String
Key for the error code sent for a non-playable sourcestatic final String
Key for the extra code sent during an error for non-playable sourcestatic final String
Used to transmit an error message when an error occursstatic final String
Key for the error subcode sent for a non-playable sourcestatic final String
Key for list of error messages in a response.static final String
Property that specifies the source class where the event originated.static final String
The key for forward buffer seconds used in the Analytics class.static final String
The key for the Fragment object on FRAGMENT_ACTIVITY_CREATED event.static final String
Deprecated.static final String
Position from which a seek began.static final String
Key for the heartbeat stopped messagestatic final String
Key for the max concurrency reached messagestatic final String
The property name of the unique identifier.static final String
Video for Events that carry a video index.static final String
The key for saving and restoring instance state on a lifecycle event.protected boolean
protected boolean
static final String
The key for the list of languages in CAPTIONS_LANGUAGES events.static final String
The setting of the left channel volume for a player (as float: 0.0f-1.0f inclusive).static final String
The line property of a CAPTION event.static final String
The line anchor property of a CAPTION event.static final String
The line type property of a CAPTION event.static final String
The name of the property for video list.static final String
Deprecated.static final String
The absolute playable window duration for a live video.static final String
The key for events carrying a locale code for subtitle tracks.static final String
Deprecated.static final String
The maximum position for which a seek will be successful.static final String
The key for measured bps used in the Analytics class.static final String
The key for total number of bytes transferred by the video player.static final String
static final String
Deprecated.static final String
The minimum position for which a seek will be successful.static final String
Video for Events that carry a next Video.static final String
Original event used in situations where default behavior is prevented and the original event needs to be re-emitted.static final String
Deprecated.static final String
The unmapped current playhead position.static final String
Deprecated.static final String
The unmapped seek position.static final String
Percentage of the video that has buffered so far.static final String
The key for events accessing Picture-in-Picture state.static final String
The event property key that specifies thePlaybackLocation
.static final String
Deprecated.static final String
Current playhead position in milliseconds.static final String
Video for Events that carry a single Playlist.static final String
The name of a plugin registered to the SDK.static final String
The position property of a CAPTION event.static final String
The position anchor property of a CAPTION event.static final String
Deprecated.static final String
Current playhead position in milliseconds, as shown in the Progress Bar.static final String
The key for the projection format sent in the EventEventType.PROJECTION_FORMAT_CHANGED
.static final String
The key for rendition height used in the Analytics class.static final String
The key for rendition indicated bps used in the Analytics class.static final String
The key for rendition mime type used in the Analytics class.static final String
The key for rendition urls used in the Analytics class.static final String
The key for rendition width used in the Analytics class.static final String
Used by the Request/Response setup; marks the id of the listener to get the response.static final String
The key for the orientation type sent in the EventEventType.CHANGE_ORIENTATION
.static final String
The key for response times in milliseconds used in the Analytics catalog response events.static final String
Deprecated.static final String
Position to which a seek action brings the playhead, after the player has been restored.static final String
The setting of the right channel volume for a player (as float: 0.0f-1.0f inclusive).static final String
The key for accessing a visibility map associating seek controls with visibility state from the event properties.static final String
Deprecated.static final String
The setting for the default seek time.static final String
The setting to determine the speed we're seeking when holding down either the rewind or fast-forward button.static final String
The setting to determine when the rewind or fast-forward buttons are been long-pressed and held.static final String
The setting used if the seek relative is enabled.static final String
Deprecated.static final String
Position to which a seek action brings the playhead.static final String
Deprecated.static final String
The setting that has the amount of time (milliseconds) where the seek indicator must be positioned.static final String
The setting to enable to seek relatively to the video duration and not by a fixed time.static final String
The video segment's duration in milliseconds.static final String
The key for the selected track in AUDIO_TRACKS and SELECT_AUDIO_TRACK events.static final String
Key for the conditional delivery of the analytics video_resumed.static final String
The SIZE property of a CAPTION event.static final String
When added as a key to PLAY/SEEK/VIDEO_COMPLETED events, cue points will be skippedstatic final String
Source for Events that carry a single Source.static final String
Deprecated.static final String
The beginning of the time range of a list of cue pointsstatic final String
The key for the Support Fragment object on FRAGMENT_ACTIVITY_CREATED event.static final String
The text property of a CAPTION event.static final String
The key for the list of tracks in AUDIO_TRACKS events.static final String
The key for events carrying DFXP/TTML data.protected final String
static final String
The property name of the universally unique identifier.static final String
static final String
Video for Events that carry a single Video.static final String
Deprecated.static final String
The video's duration in milliseconds.static final String
Height of video.static final String
URL for Events that carry a Video still image URL.static final String
Width of video.static final String
The single setting volume for a player that doesn't use channels.static final String
The key for events carrying WebVTT data. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getId()
int
getIntegerProperty
(String propertyName) Convenience method for accessing a property with an integer valuelong
getLongProperty
(String propertyName) Convenience method for accessing a property with an long valuestatic int
abstract Map<String,
PropertyValueType> getProperty
(String propertyName) <T> T
getProperty
(String eventPropertyId, Class<T> type) Returns the casted value of the eventPropertyId.getType()
The event type, typically specified from a constant value defined in EventType.boolean
Indicates that a participant of the current Event activity has prevented the default behavior for the current Event.boolean
Indicates that a participant of the current Event activity has stopped the processing of any additional Events.void
Causes the Event handling framework to not execute any default behavior that may be defined for a given Event.void
Causes the Event handling framework to stop processing any additional Events.toString()
-
Field Details
-
CONFIGURATION
Key for Events that carry a configuration in their payload.- See Also:
-
CUE_POINT
Key for Events that carry a single Cue Point.- See Also:
-
CUE_POINTS
Key for Events that carry a list of Cue Points.- See Also:
-
PLAYLIST
Video for Events that carry a single Playlist.- See Also:
-
VIDEO
Video for Events that carry a single Video.- See Also:
-
SOURCE
Source for Events that carry a single Source.- See Also:
-
CURRENT_VIDEO
Video for Events that carry a current Video.- See Also:
-
NEXT_VIDEO
Video for Events that carry a next Video.- See Also:
-
INDEX
Video for Events that carry a video index.- See Also:
-
VIDEO_STILL
URL for Events that carry a Video still image URL.- See Also:
-
FROM_SEEK_POSITION
Deprecated.Position from which a seek began.- See Also:
-
FROM_SEEK_POSITION_LONG
Position from which a seek began. This is used to reference long values- See Also:
-
SEEK_POSITION
Deprecated.Position to which a seek action brings the playhead.- See Also:
-
SEEK_POSITION_LONG
Position to which a seek action brings the playhead. This is used to reference long values- See Also:
-
RESTORE_SEEK_POSITION
Deprecated.Position to which a seek action brings the playhead, after the player has been restored.- See Also:
-
RESTORE_SEEK_POSITION_LONG
Position to which a seek action brings the playhead, after the player has been restored. This is used to reference long values- See Also:
-
ORIGINAL_SEEK_POSITION
Deprecated.The unmapped seek position. Used by the OnceUX plugin.- See Also:
-
ORIGINAL_SEEK_POSITION_LONG
The unmapped seek position. Used by the OnceUX plugin. This is used to reference long values- See Also:
-
PLAYHEAD_POSITION
Deprecated.Current playhead position in milliseconds.- See Also:
-
PLAYHEAD_POSITION_LONG
Current playhead position in milliseconds. This is used to reference long values- See Also:
-
VIDEO_DURATION
Deprecated.The video's duration in milliseconds.- See Also:
-
VIDEO_DURATION_LONG
The video's duration in milliseconds. This is used to reference long values- See Also:
-
SEGMENT_DURATION
The video segment's duration in milliseconds.- See Also:
-
MAX_POSITION
Deprecated.The maximum position for which a seek will be successful.- See Also:
-
MAX_POSITION_LONG
The maximum position for which a seek will be successful.- See Also:
-
MIN_POSITION
Deprecated.The minimum position for which a seek will be successful.- See Also:
-
MIN_POSITION_LONG
The minimum position for which a seek will be successful.- See Also:
-
LIVE_WINDOW_DURATION
Deprecated.The absolute playable window duration for a live video.- See Also:
-
LIVE_WINDOW_DURATION_LONG
The absolute playable window duration for a live video.- See Also:
-
PERCENT_COMPLETE
Percentage of the video that has buffered so far.- See Also:
-
ERROR_MESSAGE
Used to transmit an error message when an error occurs- See Also:
-
ERROR_CODE
Key for the error code sent for a non-playable source- See Also:
-
ERROR_SUBCODE
Key for the error subcode sent for a non-playable source- See Also:
-
ERROR_EXTRA
Key for the extra code sent during an error for non-playable source- See Also:
-
ERROR
Key for an actual exception associated with a playback error- See Also:
-
ERRORS
Key for list of error messages in a response.- See Also:
-
VIDEO_WIDTH
Width of video. Used for VIDEO_SIZE_KNOWN.- See Also:
-
VIDEO_HEIGHT
Height of video. Used for VIDEO_SIZE_KNOWN.- See Also:
-
REQUEST_TOKEN
Used by the Request/Response setup; marks the id of the listener to get the response.- See Also:
-
DEBUG
Whether components should emit additional debug information.- See Also:
-
EMITTER
The simple name of the source component for an event when running in debug mode- See Also:
-
ORIGINAL_EVENT
Original event used in situations where default behavior is prevented and the original event needs to be re-emitted.- See Also:
-
EVENT_SOURCE
Property that specifies the source class where the event originated.- See Also:
-
LIST
The name of the property for video list.- See Also:
-
UUID
The property name of the universally unique identifier.- See Also:
-
ID
The property name of the unique identifier.- See Also:
-
START_TIME
Deprecated.The beginning of the time range of a list of cue points- See Also:
-
START_TIME_LONG
The beginning of the time range of a list of cue points- See Also:
-
END_TIME
Deprecated.The end of the time range of a list of cue points- See Also:
-
END_TIME_LONG
The end of the time range of a list of cue points- See Also:
-
SKIP_CUE_POINTS
When added as a key to PLAY/SEEK/VIDEO_COMPLETED events, cue points will be skipped- See Also:
-
PLUGIN_NAME
The name of a plugin registered to the SDK.- See Also:
-
LEFT_VOLUME
The setting of the left channel volume for a player (as float: 0.0f-1.0f inclusive).- See Also:
-
RIGHT_VOLUME
The setting of the right channel volume for a player (as float: 0.0f-1.0f inclusive).- See Also:
-
VOLUME
The single setting volume for a player that doesn't use channels. (as float: 0.0f-1.0f inclusive).- See Also:
-
SEEK_CONTROLS_VISIBILITY
The key for accessing a visibility map associating seek controls with visibility state from the event properties.- See Also:
-
SEEK_PROGRESS
Deprecated.The setting that has the amount of time (milliseconds) where the seek indicator must be positioned.- See Also:
-
SEEK_PROGRESS_LONG
The setting that has the amount of time (milliseconds) where the seek indicator must be positioned.- See Also:
-
SEEK_DEFAULT
Deprecated.The setting for the default seek time.- See Also:
-
SEEK_DEFAULT_LONG
The setting for the default seek time.- See Also:
-
SEEK_RELATIVE_ENABLED
The setting to enable to seek relatively to the video duration and not by a fixed time.- See Also:
-
SEEK_PERCENTAGE
The setting used if the seek relative is enabled. Is used to calculate the see time for each video duration.- See Also:
-
SEEK_ON_HOLD_WAIT_TIME
The setting to determine when the rewind or fast-forward buttons are been long-pressed and held.- See Also:
-
SEEK_ON_HOLD_UPDATE_FREQ
The setting to determine the speed we're seeking when holding down either the rewind or fast-forward button.- See Also:
-
BUILD_VERSION
- See Also:
-
INSTANCE_STATE
The key for saving and restoring instance state on a lifecycle event. Provides access to the Bundle object in which state is saved or from which state is restored.- See Also:
-
ACTIVITY
The key for Activity on the FRAGMENT_ATTACHED lifecycle event.- See Also:
-
FRAGMENT
The key for the Fragment object on FRAGMENT_ACTIVITY_CREATED event.- See Also:
-
SUPPORT_FRAGMENT
The key for the Support Fragment object on FRAGMENT_ACTIVITY_CREATED event.- See Also:
-
BOOLEAN
The key for a general boolean property.- See Also:
-
TTML_DOCUMENT
The key for events carrying DFXP/TTML data.- See Also:
-
WEBVTT_DOCUMENT
The key for events carrying WebVTT data.- See Also:
-
VALUE
- See Also:
-
CEA608_DOCUMENT
The key for events carrying CEA-608 data.- See Also:
-
CEA708_DOCUMENT
The key for events carrying CEA-708 data.- See Also:
-
LOCALE_CODE
The key for events carrying a locale code for subtitle tracks.- See Also:
-
CAPTION_FORMAT
The key containing theBrightcoveCaptionFormat
selected.- See Also:
-
CAPTION_URI
The key containing the uri for theBrightcoveCaptionFormat
selected.- See Also:
-
ALIGNMENT
The alignment property of a CAPTION event.- See Also:
-
LINE
The line property of a CAPTION event.- See Also:
-
LINE_TYPE
The line type property of a CAPTION event.- See Also:
-
LINE_ANCHOR
The line anchor property of a CAPTION event.- See Also:
-
SIZE
The SIZE property of a CAPTION event.- See Also:
-
POSITION
The position property of a CAPTION event.- See Also:
-
POSITION_ANCHOR
The position anchor property of a CAPTION event.- See Also:
-
TEXT
The text property of a CAPTION event.- See Also:
-
CAPTIONS_STATE
The key for events accessing caption state. Saved and restored for configuration change or Activity restart.- See Also:
-
LANGUAGES
The key for the list of languages in CAPTIONS_LANGUAGES events.- See Also:
-
AUDIO_TRACKS_STATE
The key for events accessing audio tracks state. Saved and restored for configuration change or Activity restart..- See Also:
-
PICTURE_IN_PICTURE_STATE
The key for events accessing Picture-in-Picture state. Saved and restored for configuration change or Activity restart.- See Also:
-
TRACKS
The key for the list of tracks in AUDIO_TRACKS events.- See Also:
-
SELECTED_TRACK
The key for the selected track in AUDIO_TRACKS and SELECT_AUDIO_TRACK events.- See Also:
-
AUDIO_VARIANT
The key for the list of audio variants in AUDIO_TRACKS events.- See Also:
-
ORIGINAL_PLAYHEAD_POSITION
Deprecated.The unmapped current playhead position. Used by the OnceUX plugin and the BrightcoveClosedCaptioningView.- See Also:
-
ORIGINAL_PLAYHEAD_POSITION_LONG
The unmapped current playhead position. Used by the OnceUX plugin and the BrightcoveClosedCaptioningView. This is used to reference long values- See Also:
-
PROGRESS_BAR_PLAYHEAD_POSITION
Deprecated.Current playhead position in milliseconds, as shown in the Progress Bar.- See Also:
-
PROGRESS_BAR_PLAYHEAD_POSITION_LONG
Current playhead position in milliseconds, as shown in the Progress Bar. This is used to reference long values- See Also:
-
CATALOG_URL
The key for catalog urls used in the Analytics catalog request and response events.- See Also:
-
RENDITION_URL
The key for rendition urls used in the Analytics class.- See Also:
-
RENDITION_INDICATED_BPS
The key for rendition indicated bps used in the Analytics class.- See Also:
-
RENDITION_MIME_TYPE
The key for rendition mime type used in the Analytics class.- See Also:
-
RENDITION_HEIGHT
The key for rendition height used in the Analytics class.- See Also:
-
RENDITION_WIDTH
The key for rendition width used in the Analytics class.- See Also:
-
FORWARD_BUFFER_SECONDS
The key for forward buffer seconds used in the Analytics class.- See Also:
-
MEASURED_BPS
The key for measured bps used in the Analytics class.- See Also:
-
MEDIA_BYTES_TRANSFERRED
The key for total number of bytes transferred by the video player.- See Also:
-
RESPONSE_TIME_MS
The key for response times in milliseconds used in the Analytics catalog response events.- See Also:
-
AD_ID
The key for ad id used in advertising events.- See Also:
-
AD_TITLE
The key for ad title used in advertising events.- See Also:
-
PROJECTION_FORMAT
The key for the projection format sent in the EventEventType.PROJECTION_FORMAT_CHANGED
.- See Also:
-
REQUESTED_ORIENTATION
The key for the orientation type sent in the EventEventType.CHANGE_ORIENTATION
.- See Also:
-
PLAYBACK_LOCATION
The event property key that specifies thePlaybackLocation
. Currently used when using the Cast plugin.- See Also:
-
MEDIA_CONTROLLER_CONFIG
- See Also:
-
BRIGHTCOVE_CONTROL_BAR
The event property that specifies theBrightcoveControlBar
.- See Also:
-
BRIGHTCOVE_MEDIA_CONTROLLER
The event property that specifies theBrightcoveMediaController
.- See Also:
-
ANDROID_VIEW
The event property that specifiesView
.- See Also:
-
GSC_MAX_CONCURRENCY_REACHED_MESSAGE
Key for the max concurrency reached message- See Also:
-
GSC_HEARTBEAT_STOPPED_MESSAGE
Key for the heartbeat stopped message- See Also:
-
AD_INSIGHTS
Key for the Ad Insights parameters map- See Also:
-
SEND_VIDEO_RESUMED_ANALYTICS
Key for the conditional delivery of the analytics video_resumed.- See Also:
-
type
-
isStopped
protected boolean isStopped -
isPrevented
protected boolean isPrevented
-
-
Constructor Details
-
AbstractEvent
-
-
Method Details
-
getNextId
public static int getNextId()- Returns:
- The next unique id.
-
getId
public int getId()- Returns:
- The unique id.
-
getType
The event type, typically specified from a constant value defined in EventType.- Returns:
- the String indicating the type of Event
-
preventDefault
public void preventDefault()Causes the Event handling framework to not execute any default behavior that may be defined for a given Event. -
stopPropagation
public void stopPropagation()Causes the Event handling framework to stop processing any additional Events. -
isPrevented
public boolean isPrevented()Indicates that a participant of the current Event activity has prevented the default behavior for the current Event.- Returns:
- true if the default behavior has been prevented
-
isStopped
public boolean isStopped()Indicates that a participant of the current Event activity has stopped the processing of any additional Events.- Returns:
- true if Event processing was stopped
-
toString
-
getProperty
-
getProperty
Returns the casted value of the eventPropertyId.- Type Parameters:
T
- the expected type.- Parameters:
eventPropertyId
- the id of the property to retrieve.type
- the class to be casted.- Returns:
- the casted value of the eventPropertyId.
-
getIntegerProperty
Convenience method for accessing a property with an integer value- Parameters:
propertyName
- Name of property to access- Returns:
- value of the integer, will be -1 if not found or error
-
getLongProperty
Convenience method for accessing a property with an long value- Parameters:
propertyName
- Name of property to access- Returns:
- value of the long, will be -1 if not found or error
-
getProperties
-