Package com.brightcove.player.event
Class AbstractEvent<PropertyValueType>
java.lang.Object
com.brightcove.player.event.AbstractEvent<PropertyValueType>
- Direct Known Subclasses:
Event,MediaEvent
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe key for Activity on the FRAGMENT_ATTACHED lifecycle event.static final StringThe key for ad id used in advertising events.static final StringKey for the Ad Insights parameters mapstatic final StringThe key for ad title used in advertising events.static final StringThe alignment property of a CAPTION event.static final StringThe event property that specifiesView.static final StringThe key for events accessing audio tracks state.static final StringThe key for the list of audio variants in AUDIO_TRACKS events.static final StringThe key for a general boolean property.static final StringThe event property that specifies theBrightcoveControlBar.static final StringThe event property that specifies theBrightcoveMediaController.static final Stringstatic final StringThe key containing theBrightcoveCaptionFormatselected.static final StringThe key containing the uri for theBrightcoveCaptionFormatselected.static final StringThe key for events accessing caption state.static final StringThe key for catalog urls used in the Analytics catalog request and response events.static final StringThe key for events carrying CEA-608 data.static final StringThe key for events carrying CEA-708 data.static final StringKey for Events that carry a configuration in their payload.static final StringKey for Events that carry a single Cue Point.static final StringKey for Events that carry a list of Cue Points.static final StringVideo for Events that carry a current Video.static final StringWhether components should emit additional debug information.static final StringThe simple name of the source component for an event when running in debug modestatic final StringDeprecated.static final StringThe end of the time range of a list of cue pointsstatic final StringKey for an actual exception associated with a playback errorstatic final StringKey for the error code sent for a non-playable sourcestatic final StringKey for the extra code sent during an error for non-playable sourcestatic final StringUsed to transmit an error message when an error occursstatic final StringKey for the error subcode sent for a non-playable sourcestatic final StringKey for list of error messages in a response.static final StringProperty that specifies the source class where the event originated.static final StringThe key for forward buffer seconds used in the Analytics class.static final StringThe key for the Fragment object on FRAGMENT_ACTIVITY_CREATED event.static final StringDeprecated.static final StringPosition from which a seek began.static final StringKey for the heartbeat stopped messagestatic final StringKey for the max concurrency reached messagestatic final StringThe property name of the unique identifier.static final StringVideo for Events that carry a video index.static final StringThe key for saving and restoring instance state on a lifecycle event.protected booleanprotected booleanstatic final StringThe key for the list of languages in CAPTIONS_LANGUAGES events.static final StringThe setting of the left channel volume for a player (as float: 0.0f-1.0f inclusive).static final StringThe line property of a CAPTION event.static final StringThe line anchor property of a CAPTION event.static final StringThe line type property of a CAPTION event.static final StringThe name of the property for video list.static final StringDeprecated.static final StringThe absolute playable window duration for a live video.static final StringThe key for events carrying a locale code for subtitle tracks.static final StringDeprecated.static final StringThe maximum position for which a seek will be successful.static final StringThe key for measured bps used in the Analytics class.static final StringThe key for total number of bytes transferred by the video player.static final Stringstatic final StringDeprecated.static final StringThe minimum position for which a seek will be successful.static final StringVideo for Events that carry a next Video.static final StringOriginal event used in situations where default behavior is prevented and the original event needs to be re-emitted.static final StringDeprecated.static final StringThe unmapped current playhead position.static final StringDeprecated.static final StringThe unmapped seek position.static final StringPercentage of the video that has buffered so far.static final StringThe key for events accessing Picture-in-Picture state.static final StringThe event property key that specifies thePlaybackLocation.static final StringDeprecated.static final StringCurrent playhead position in milliseconds.static final StringVideo for Events that carry a single Playlist.static final StringThe name of a plugin registered to the SDK.static final StringThe position property of a CAPTION event.static final StringThe position anchor property of a CAPTION event.static final StringDeprecated.static final StringCurrent playhead position in milliseconds, as shown in the Progress Bar.static final StringThe key for the projection format sent in the EventEventType.PROJECTION_FORMAT_CHANGED.static final StringThe key for rendition height used in the Analytics class.static final StringThe key for rendition indicated bps used in the Analytics class.static final StringThe key for rendition mime type used in the Analytics class.static final StringThe key for rendition urls used in the Analytics class.static final StringThe key for rendition width used in the Analytics class.static final StringUsed by the Request/Response setup; marks the id of the listener to get the response.static final StringThe key for the orientation type sent in the EventEventType.CHANGE_ORIENTATION.static final StringThe key for response times in milliseconds used in the Analytics catalog response events.static final StringDeprecated.static final StringPosition to which a seek action brings the playhead, after the player has been restored.static final StringThe setting of the right channel volume for a player (as float: 0.0f-1.0f inclusive).static final StringThe key for accessing a visibility map associating seek controls with visibility state from the event properties.static final StringDeprecated.static final StringThe setting for the default seek time.static final StringThe setting to determine the speed we're seeking when holding down either the rewind or fast-forward button.static final StringThe setting to determine when the rewind or fast-forward buttons are been long-pressed and held.static final StringThe setting used if the seek relative is enabled.static final StringDeprecated.static final StringPosition to which a seek action brings the playhead.static final StringDeprecated.static final StringThe setting that has the amount of time (milliseconds) where the seek indicator must be positioned.static final StringThe setting to enable to seek relatively to the video duration and not by a fixed time.static final StringThe video segment's duration in milliseconds.static final StringThe key for the selected track in AUDIO_TRACKS and SELECT_AUDIO_TRACK events.static final StringKey for the conditional delivery of the analytics video_resumed.static final StringThe SIZE property of a CAPTION event.static final StringWhen added as a key to PLAY/SEEK/VIDEO_COMPLETED events, cue points will be skippedstatic final StringSource for Events that carry a single Source.static final StringDeprecated.static final StringThe beginning of the time range of a list of cue pointsstatic final StringThe key for the Support Fragment object on FRAGMENT_ACTIVITY_CREATED event.static final StringThe text property of a CAPTION event.static final StringThe key for the list of tracks in AUDIO_TRACKS events.static final StringThe key for events carrying DFXP/TTML data.protected final Stringstatic final StringThe property name of the universally unique identifier.static final Stringstatic final StringVideo for Events that carry a single Video.static final StringDeprecated.static final StringThe video's duration in milliseconds.static final StringHeight of video.static final StringURL for Events that carry a Video still image URL.static final StringWidth of video.static final StringThe single setting volume for a player that doesn't use channels.static final StringThe key for events carrying WebVTT data. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetId()intgetIntegerProperty(String propertyName) Convenience method for accessing a property with an integer valuelonggetLongProperty(String propertyName) Convenience method for accessing a property with an long valuestatic intabstract Map<String,PropertyValueType> getProperty(String propertyName) <T> TgetProperty(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.booleanIndicates that a participant of the current Event activity has prevented the default behavior for the current Event.booleanIndicates that a participant of the current Event activity has stopped the processing of any additional Events.voidCauses the Event handling framework to not execute any default behavior that may be defined for a given Event.voidCauses 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 theBrightcoveCaptionFormatselected.- See Also:
-
CAPTION_URI
The key containing the uri for theBrightcoveCaptionFormatselected.- 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
-