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
Skip to main content
Represents the format of the media.

Constructors

new MediaFormat()

new MediaFormat(mimeType): MediaFormat constructs a MediaFormat object. Refer to https://datatracker.ietf.org/doc/html/rfc6381 MIME is the ability to identify the specific codec.

Parameters

mimeType
CodecMimeType

Returns

MediaFormat

See

for Video/Audio codec mimetypes defined.

Accessors

bitrateKbps

Get Signature

get bitrateKbps(): number
Returns
number the bitrate set by the setter.

Set Signature

set bitrateKbps(bitrate): void Sets the target bitrate in kbps. This can also be used for dynamic configuration.
Parameters
bitrate
number
Returns
void

mimeType

Get Signature

get mimeType(): CodecMimeType
Returns
CodecMimeType associated with this object.
Last modified on October 2, 2025