@svta/common-media-library
    Preparing search index...

    Function decodeCmcd

    • Beta

      Decode a CMCD string to an object.

      Type Parameters

      Parameters

      • cmcd: string

        The CMCD string to decode.

      Returns T

      The decoded CMCD object.

      deepEqual(decodeCmcd('br=1000,com.example-hello="world",ec=("ERR001" "ERR002"),su'), {
      br: 1000,
      'com.example-hello': 'world',
      ec: ['ERR001', 'ERR002'],
      su: true,
      });