Skip to content

Function: getCodec() ​

ts
function getCodec(adaptationSet, representation): string;

Defined in: mapper/dash/mapDashToHam/utils/getCodec.ts:13

Internal

Get the codec value (video and audio). It can be present on adaptationSet or representation.

Parameters ​

adaptationSet ​

AdaptationSet

AdaptationSet to try to get the codec from

representation ​

Representation

Representation to try to get the codec from

Returns ​

string

Content codec

A Streaming Video Technology Alliance project.