as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

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: Oct 02, 2025