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()
Gets MediaEncryptedEventIMediaEncryptedEvent?getMediaEncryptedEvent()
Returns
IMediaEncryptedEvent?
The return value is optional and might be absent.
the IMediaEncryptedEvent object instance
if the event name is “encrypted”, otherwise NULL.
getTrackEvent()
Gets TrackEventITrackEvent?getTrackEvent()
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()
Gets SourceBufferEventISourceBufferEvent?getSourceBufferEvent()
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()
Gets ResizeEventIResizeEvent?getResizeEvent()
Returns
IResizeEvent?
The return value is optional and might be absent.
the IResizeEvent object instance if the
event name is “resize”, otherwise NULL.

