as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support

MediaFormat

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 updated: Sep 30, 2025