as

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

MediaFormatProfileLevel

Class to set the codec profile and level.

Constructors

new MediaFormatProfileLevel()

new MediaFormatProfileLevel(params): MediaFormatProfileLevel

constructs a MediaFormatProfileLevel object.

Refer to https://datatracker.ietf.org/doc/html/rfc6381

Codec Parameters represent the codec major capabilities needed to decode like codec/codec subtype and profiles/levels.

For example string "avc1.640028" represents H264:- – stream-format avc1 – profile 4.0 which is derived from 2 bytes bytes(base16) in the sequence "640028" – profile_idc identified by "64" which indicates "High Profile". – level_idc which is "28" and 40 in decimal which means 4.0.

Parameters

params

string

The codecs

Returns

MediaFormatProfileLevel

Accessors

codecParams

Get Signature

get codecParams(): string

Returns

string

set by the setter.


profileLevel

Get Signature

get profileLevel(): ProfileLevel

Returns

ProfileLevel

set using the setter.

Set Signature

set profileLevel(level): void

Sets the Profile and Level.

For example codec parameters string For video, "codecs=avc1.640028" has profile ID "0x64" which means high profile for H264 and has level Id "0x28" which means level 4.0.

For audio, "codecs=mp4a.40.02" has profile ID "0x02" which means low complexity for AAC.

This method can also be called for dynamic configuration.

Parameters
level

ProfileLevel

Returns

void


Last updated: Oct 02, 2025