as

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

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