Event

Represents a single Event, that is designed to be passed down a chain of listeners.

Constructors

Link copied to clipboard
constructor(type: String)
Creates an Event with the given type.

Properties

Link copied to clipboard
val ACTIVITY: String = "activity"
The key for Activity on the FRAGMENT_ATTACHED lifecycle event.
Link copied to clipboard
val AD_ID: String = "adId"
The key for ad id used in advertising events.
Link copied to clipboard
val AD_INSIGHTS: String = "adInsights"
Key for the Ad Insights parameters map
Link copied to clipboard
val AD_TITLE: String = "adTitle"
The key for ad title used in advertising events.
Link copied to clipboard
val ALIGNMENT: String = "alignment"
The alignment property of a CAPTION event.
Link copied to clipboard
val ANDROID_VIEW: String = "androidView"
The event property that specifies android.view.
Link copied to clipboard
val AUDIO_TRACKS_STATE: String = "audioTracksState"
The key for events accessing audio tracks state.
Link copied to clipboard
val AUDIO_VARIANT: String = "audioVariant"
The key for the list of audio variants in AUDIO_TRACKS events.
Link copied to clipboard
val BOOLEAN: String = "boolean"
The key for a general boolean property.
Link copied to clipboard
val BRIGHTCOVE_CONTROL_BAR: String = "brightcoveControlBar"
The event property that specifies the com.brightcove.player.mediacontroller.BrightcoveControlBar.
Link copied to clipboard
val BRIGHTCOVE_MEDIA_CONTROLLER: String = "brightcoveMediaController"
Link copied to clipboard
val BUILD_VERSION: String = "buildVersion"
Link copied to clipboard
val CAPTION_FORMAT: String = "captionFormat"
Link copied to clipboard
val CAPTION_URI: String = "captionUri"
The key containing the uri for the com.brightcove.player.captioning.BrightcoveCaptionFormat selected.
Link copied to clipboard
val CAPTIONS_STATE: String = "captionsState"
The key for events accessing caption state.
Link copied to clipboard
val CATALOG_URL: String = "catalogUrl"
The key for catalog urls used in the Analytics catalog request and response events.
Link copied to clipboard
val CEA608_DOCUMENT: String = "cea608Document"
The key for events carrying CEA-608 data.
Link copied to clipboard
val CEA708_DOCUMENT: String = "cea708Document"
The key for events carrying CEA-708 data.
Link copied to clipboard
val CONFIGURATION: String = "configuration"
Key for Events that carry a configuration in their payload.
Link copied to clipboard
val CUE_POINT: String = "cue_point"
Key for Events that carry a single Cue Point.
Link copied to clipboard
val CUE_POINTS: String = "cue_points"
Key for Events that carry a list of Cue Points.
Link copied to clipboard
val CURRENT_VIDEO: String = "currentVideo"
Video for Events that carry a current Video.
Link copied to clipboard
val DEBUG: String = "debug"
Whether components should emit additional debug information.
Link copied to clipboard
val EMITTER: String = "emitter"
The simple name of the source component for an event when running in debug mode
Link copied to clipboard
val END_TIME: String = "endTime"
The end of the time range of a list of cue points
Link copied to clipboard
val END_TIME_LONG: String = "endTimeLong"
The end of the time range of a list of cue points
Link copied to clipboard
val ERROR: String = "error"
Key for an actual exception associated with a playback error
Link copied to clipboard
val ERROR_CODE: String = "errorCode"
Key for the error code sent for a non-playable source
Link copied to clipboard
val ERROR_EXTRA: String = "errorExtra"
Key for the extra code sent during an error for non-playable source
Link copied to clipboard
val ERROR_MESSAGE: String = "errorMessage"
Used to transmit an error message when an error occurs
Link copied to clipboard
val ERROR_SUBCODE: String = "errorSubcode"
Key for the error subcode sent for a non-playable source
Link copied to clipboard
val ERRORS: String = "errors"
Key for list of error messages in a response.
Link copied to clipboard
val EVENT_SOURCE: String = "eventSource"
Property that specifies the source class where the event originated.
Link copied to clipboard
val FORWARD_BUFFER_SECONDS: String = "forwardBufferSeconds"
The key for forward buffer seconds used in the Analytics class.
Link copied to clipboard
val FRAGMENT: String = "fragment"
The key for the Fragment object on FRAGMENT_ACTIVITY_CREATED event.
Link copied to clipboard
val FROM_SEEK_POSITION: String = "fromSeekPosition"
Position from which a seek began.
Link copied to clipboard
val FROM_SEEK_POSITION_LONG: String = "fromSeekPositionLong"
Position from which a seek began.
Link copied to clipboard
val GSC_HEARTBEAT_STOPPED_MESSAGE: String = "gscHeartbeatStoppedMessage"
Key for the heartbeat stopped message
Link copied to clipboard
val GSC_MAX_CONCURRENCY_REACHED_MESSAGE: String = "gscMaxConcurrencyReachedMessage"
Key for the max concurrency reached message
Link copied to clipboard
val ID: String = "id"
The property name of the unique identifier.
Link copied to clipboard
val INDEX: String = "index"
Video for Events that carry a video index.
Link copied to clipboard
val INSTANCE_STATE: String = "instanceState"
The key for saving and restoring instance state on a lifecycle event.
Link copied to clipboard
val LANGUAGES: String = "languages"
The key for the list of languages in CAPTIONS_LANGUAGES events.
Link copied to clipboard
val LEFT_VOLUME: String = "leftVolume"
The setting of the left channel volume for a player (as float: 0.0f-1.0f inclusive).
Link copied to clipboard
val LINE: String = "line"
The line property of a CAPTION event.
Link copied to clipboard
val LINE_ANCHOR: String = "lineAnchor"
The line anchor property of a CAPTION event.
Link copied to clipboard
val LINE_TYPE: String = "lineType"
The line type property of a CAPTION event.
Link copied to clipboard
val LIST: String = "list"
The name of the property for video list.
Link copied to clipboard
val LIVE_WINDOW_DURATION: String = "liveWindowDuration"
The absolute playable window duration for a live video.
Link copied to clipboard
val LIVE_WINDOW_DURATION_LONG: String = "liveWindowDurationLong"
The absolute playable window duration for a live video.
Link copied to clipboard
val LOCALE_CODE: String = "localeCode"
The key for events carrying a locale code for subtitle tracks.
Link copied to clipboard
val MAX_POSITION: String = "maxPosition"
The maximum position for which a seek will be successful.
Link copied to clipboard
val MAX_POSITION_LONG: String = "maxPositionLong"
The maximum position for which a seek will be successful.
Link copied to clipboard
val MEASURED_BPS: String = "measuredBps"
The key for measured bps used in the Analytics class.
Link copied to clipboard
val MEDIA_BYTES_TRANSFERRED: String = "mediaBytesTransferred"
The key for total number of bytes transferred by the video player.
Link copied to clipboard
val MEDIA_CONTROLLER_CONFIG: String = "mediaControllerConfig"
Link copied to clipboard
val MIN_POSITION: String = "minPosition"
The minimum position for which a seek will be successful.
Link copied to clipboard
val MIN_POSITION_LONG: String = "minPositionLong"
The minimum position for which a seek will be successful.
Link copied to clipboard
val NEXT_VIDEO: String = "nextVideo"
Video for Events that carry a next Video.
Link copied to clipboard
val ORIGINAL_EVENT: String = "original"
Original event used in situations where default behavior is prevented and the original event needs to be re-emitted.
Link copied to clipboard
val ORIGINAL_PLAYHEAD_POSITION: String = "originalPlayheadPosition"
The unmapped current playhead position.
Link copied to clipboard
val ORIGINAL_PLAYHEAD_POSITION_LONG: String = "originalPlayheadPositionLong"
The unmapped current playhead position.
Link copied to clipboard
val ORIGINAL_SEEK_POSITION: String = "originalSeekPosition"
The unmapped seek position.
Link copied to clipboard
val ORIGINAL_SEEK_POSITION_LONG: String = "originalSeekPositionLong"
The unmapped seek position.
Link copied to clipboard
val PERCENT_COMPLETE: String = "percentComplete"
Percentage of the video that has buffered so far.
Link copied to clipboard
val PICTURE_IN_PICTURE_STATE: String = "pictureInPictureState"
The key for events accessing Picture-in-Picture state.
Link copied to clipboard
val PLAYBACK_LOCATION: String = "playbackLocation"
The event property key that specifies the com.brightcove.player.model.PlaybackLocation.
Link copied to clipboard
val PLAYHEAD_POSITION: String = "playheadPosition"
Current playhead position in milliseconds.
Link copied to clipboard
val PLAYHEAD_POSITION_LONG: String = "playheadPositionLong"
Current playhead position in milliseconds.
Link copied to clipboard
val PLAYLIST: String = "playlist"
Video for Events that carry a single Playlist.
Link copied to clipboard
val PLUGIN_NAME: String = "pluginName"
The name of a plugin registered to the SDK.
Link copied to clipboard
val POSITION: String = "position"
The position property of a CAPTION event.
Link copied to clipboard
val POSITION_ANCHOR: String = "positionAnchor"
The position anchor property of a CAPTION event.
Link copied to clipboard
val PROGRESS_BAR_PLAYHEAD_POSITION: String = "progressBarPlayheadPosition"
Current playhead position in milliseconds, as shown in the Progress Bar.
Link copied to clipboard
val PROGRESS_BAR_PLAYHEAD_POSITION_LONG: String = "progressBarPlayheadPositionLong"
Current playhead position in milliseconds, as shown in the Progress Bar.
Link copied to clipboard
val PROJECTION_FORMAT: String = "projectionFormat"
The key for the projection format sent in the Event PROJECTION_FORMAT_CHANGED.
Link copied to clipboard
A dynamic set of properties containing data that accompanies specific Events.
Link copied to clipboard
val RENDITION_HEIGHT: String = "renditionHeight"
The key for rendition height used in the Analytics class.
Link copied to clipboard
val RENDITION_INDICATED_BPS: String = "renditionIndicatedBps"
The key for rendition indicated bps used in the Analytics class.
Link copied to clipboard
val RENDITION_MIME_TYPE: String = "renditionMimeType"
The key for rendition mime type used in the Analytics class.
Link copied to clipboard
val RENDITION_URL: String = "renditionUrl"
The key for rendition urls used in the Analytics class.
Link copied to clipboard
val RENDITION_WIDTH: String = "renditionWidth"
The key for rendition width used in the Analytics class.
Link copied to clipboard
val REQUEST_TOKEN: String = "requestToken"
Used by the Request/Response setup; marks the id of the listener to get the response.
Link copied to clipboard
val REQUESTED_ORIENTATION: String = "requestedOrientation"
The key for the orientation type sent in the Event CHANGE_ORIENTATION.
Link copied to clipboard
val RESPONSE_TIME_MS: String = "responseTimeMs"
The key for response times in milliseconds used in the Analytics catalog response events.
Link copied to clipboard
val RESTORE_SEEK_POSITION: String = "restoreSeekPosition"
Position to which a seek action brings the playhead, after the player has been restored.
Link copied to clipboard
val RESTORE_SEEK_POSITION_LONG: String = "restoreSeekPositionLong"
Position to which a seek action brings the playhead, after the player has been restored.
Link copied to clipboard
val RIGHT_VOLUME: String = "rightVolume"
The setting of the right channel volume for a player (as float: 0.0f-1.0f inclusive).
Link copied to clipboard
val SEEK_CONTROLS_VISIBILITY: String = "seekControlsVisibility"
The key for accessing a visibility map associating seek controls with visibility state from the event properties.
Link copied to clipboard
val SEEK_DEFAULT: String = "seekDefault"
The setting for the default seek time.
Link copied to clipboard
val SEEK_DEFAULT_LONG: String = "seekDefaultLong"
The setting for the default seek time.
Link copied to clipboard
val SEEK_ON_HOLD_UPDATE_FREQ: String = "seekOnHoldUpdateFreq"
The setting to determine the speed we're seeking when holding down either the rewind or fast-forward button.
Link copied to clipboard
val SEEK_ON_HOLD_WAIT_TIME: String = "seekOnHoldWaitTime"
The setting to determine when the rewind or fast-forward buttons are been long-pressed and held.
Link copied to clipboard
val SEEK_PERCENTAGE: String = "seekPercentage"
The setting used if the seek relative is enabled.
Link copied to clipboard
val SEEK_POSITION: String = "seekPosition"
Position to which a seek action brings the playhead.
Link copied to clipboard
val SEEK_POSITION_LONG: String = "seekPositionLong"
Position to which a seek action brings the playhead.
Link copied to clipboard
val SEEK_PROGRESS: String = "seekProgress"
The setting that has the amount of time (milliseconds) where the seek indicator must be positioned.
Link copied to clipboard
val SEEK_PROGRESS_LONG: String = "seekProgressLong"
The setting that has the amount of time (milliseconds) where the seek indicator must be positioned.
Link copied to clipboard
val SEEK_RELATIVE_ENABLED: String = "seekRelativeEabled"
The setting to enable to seek relatively to the video duration and not by a fixed time.
Link copied to clipboard
val SEGMENT_DURATION: String = "segmentDuration"
The video segment's duration in milliseconds.
Link copied to clipboard
val SELECTED_TRACK: String = "track"
The key for the selected track in AUDIO_TRACKS and SELECT_AUDIO_TRACK events.
Link copied to clipboard
val SEND_VIDEO_RESUMED_ANALYTICS: String = "sendVideoResumed"
Key for the conditional delivery of the analytics video_resumed.
Link copied to clipboard
val SIZE: String = "size"
The SIZE property of a CAPTION event.
Link copied to clipboard
val SKIP_CUE_POINTS: String = "skipCuePoints"
When added as a key to PLAY/SEEK/VIDEO_COMPLETED events, cue points will be skipped
Link copied to clipboard
val SOURCE: String = "source"
Source for Events that carry a single Source.
Link copied to clipboard
val START_TIME: String = "startTime"
The beginning of the time range of a list of cue points
Link copied to clipboard
val START_TIME_LONG: String = "startTimeLong"
The beginning of the time range of a list of cue points
Link copied to clipboard
val STITCHED_POSITION: String = "stitchedPosition"
The stitched position.
Link copied to clipboard
val SUPPORT_FRAGMENT: String = "supportFragment"
The key for the Support Fragment object on FRAGMENT_ACTIVITY_CREATED event.
Link copied to clipboard
val TEXT: String = "text"
The text property of a CAPTION event.
Link copied to clipboard
val TRACKS: String = "tracks"
The key for the list of tracks in AUDIO_TRACKS events.
Link copied to clipboard
val TTML_DOCUMENT: String = "ttmlDocument"
The key for events carrying DFXP/TTML data.
Link copied to clipboard
val UUID: String = "uuid"
The property name of the universally unique identifier.
Link copied to clipboard
val VALUE: String = "value"
Link copied to clipboard
val VIDEO: String = "video"
Video for Events that carry a single Video.
Link copied to clipboard
val VIDEO_DURATION: String = "duration"
The video's duration in milliseconds.
Link copied to clipboard
val VIDEO_DURATION_LONG: String = "durationLong"
The video's duration in milliseconds.
Link copied to clipboard
val VIDEO_HEIGHT: String = "height"
Height of video.
Link copied to clipboard
val VIDEO_STILL: String = "video_still"
URL for Events that carry a Video still image URL.
Link copied to clipboard
val VIDEO_WIDTH: String = "width"
Width of video.
Link copied to clipboard
val VOLUME: String = "volume"
The single setting volume for a player that doesn't use channels.
Link copied to clipboard
val WEBVTT_DOCUMENT: String = "webvttDocument"
The key for events carrying WebVTT data.

Functions

Link copied to clipboard
open fun getId(): Int
Link copied to clipboard
open fun getIntegerProperty(propertyName: String): Int
Convenience method for accessing a property with an integer value
Link copied to clipboard
open fun getLongProperty(propertyName: String): Long
Convenience method for accessing a property with an long value
Link copied to clipboard
open fun getNextId(): Int
Link copied to clipboard
open fun getProperties(): Map<String, Any>
Link copied to clipboard
open fun getProperty(propertyName: String): PropertyValueType

open fun <T> getProperty(eventPropertyId: String, type: Class<T>): T
Returns the casted value of the eventPropertyId.
Link copied to clipboard
open fun getType(): String
The event type, typically specified from a constant value defined in EventType.
Link copied to clipboard
open fun isPrevented(): Boolean
Indicates that a participant of the current Event activity has prevented the default behavior for the current Event.
Link copied to clipboard
open fun isStopped(): Boolean
Indicates that a participant of the current Event activity has stopped the processing of any additional Events.
Link copied to clipboard
open fun preventDefault()
Causes the Event handling framework to not execute any default behavior that may be defined for a given Event.
Link copied to clipboard
open fun stopPropagation()
Causes the Event handling framework to stop processing any additional Events.
Link copied to clipboard
open fun toString(): String