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 IMediaQualityData

interface IMediaQualityData
Extends com.amazon.apmf.IStandard Payload carried by playback quality events (frame_drop, frame_freeze, audio_gap) emitted with EventSource::HTML_MEDIA_ELEMENT. Whether the event is video-side or audio-side is determined by the event name passed to onEvent.

Methods

getPtsMs()

i64 getPtsMs()
Gets the presentation timestamp associated with the event, in milliseconds.

Returns

i64 the PTS in milliseconds.

getDurationMs()

i64 getDurationMs()
Gets the duration associated with the event, in milliseconds.

Returns

i64 the duration in milliseconds.

getOrigin()

string? getOrigin()
Gets the origin identifying the producer of the event.

Returns

string? The return value is optional and might be absent. the origin string (e.g. “gfx”, “decoder”, “audiosink”), or NULL if not set.
Last modified on October 29, 2026