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

Data object MediaFrameMetadata

interface struct MediaFrameMetadata
Media Properties associated with every frame

Fields

presentationTimeUs

u64 — Required
Presentation timestamp of the frame This timestamp represents the time at which this frame should be rendered. This timestamp is not based on any specific clock rather this timestamp is derived based on what was attached to its corresponding input frame

length

i32 — Required
filled length of the data in the frame.

hasFormatChanged

bool — Required
hasFormatChanged if the format has changed in this frame This is set to indicate that starting this frame the frame has new format e.g. in case of video adapative rate playback, if the resolution changes from 1920x1080 to 720x480, then the first frame with 720x480 resolution will have this set. In case of video buffers refer to GraphcisFrameMetadata.Roi to get the updated height, width. Whereas in case of audio buffers, AudioFrameMetadata will have the updated format details

isSyncFrame

bool — Required
isSyncFrame is true if this is a sync frame This is the set to indicate that the frame is a sync frame.

isLastFrame

bool — Required
isLastFrame is true if this is a lastFrame This is set to indicate this is the last frame.

hasCodecConfig

bool — Required
hasCodecConfig is true if the frame as codecConfig This is set to indicate this frame has codec config

Constants

TIMESTAMP_UNSET

i32 = -1
Last modified on October 29, 2026