Codec

The Codec class contains static methods and values for Media Codecs. This class should not be instantiated.

Table of Contents

Members

(static) FLAC

Returns the FLAC codec string

(static) MP3

Returns the MP3 codec string

(static) OGG

Returns the OGG codec string

Methods

(static) get(label) → {string|null}

Returns a Homey codec string corresponding to the given codec label or null if no corresponding codec is found

Parameters:
Name Type Description
label

The string representation of the codec e.g. mp3

Returns:
Type:
string | null

A codec string or null if none is found