Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IEventInfo

interface IEventInfo
Extends com.amazon.apmf.IStandard Stores the optional extra information about the event which is passed in onEvent callback. When the event doesn’t contain any extra information, this will be set as NULL in onEvent callback. If this is not NULL in onEvent, then clients can query the extra information associated with the event based on the event name and the component that emitted the event. The extra information is described below. MediaEncryptedEvent : Passed along with “encrypted” event. TrackEvent : Passed along with events emitted by AudioTrackList, VideoTrackList and TextTracklist. SourceBufferEvent : Passed along with events emitted by SourceBuffer. ResizeEvent: Passed along with “resize” event. PlaybackQualityEvent: Passed along with frame_drop, frame_freeze and audio_gap events. Only accessible via IEventInfo2.

Methods

getMediaEncryptedEvent()

IMediaEncryptedEvent? getMediaEncryptedEvent()
Gets MediaEncryptedEvent

Returns

IMediaEncryptedEvent? The return value is optional and might be absent. the IMediaEncryptedEvent object instance if the event name is “encrypted”, otherwise NULL.

getTrackEvent()

ITrackEvent? getTrackEvent()
Gets TrackEvent

Returns

ITrackEvent? The return value is optional and might be absent. the ITrackEvent object instance if the event is emitted by AudioTrackList, VideoTrackList or TextTrackList, otherwise NULL. This interface is now updated to return ITrackEvent extension ITrackEvent2.

getSourceBufferEvent()

ISourceBufferEvent? getSourceBufferEvent()
Gets SourceBufferEvent

Returns

ISourceBufferEvent? The return value is optional and might be absent. the ISourceBufferEvent object instance if the event is emitted by SourceBuffer, otherwise NULL.

getResizeEvent()

IResizeEvent? getResizeEvent()
Gets ResizeEvent

Returns

IResizeEvent? The return value is optional and might be absent. the IResizeEvent object instance if the event name is “resize”, otherwise NULL.
Last modified on October 29, 2026