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
Returns
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
associated with this object.
Last updated: Sep 30, 2025