ifAudioMetadata

Implemented by

NameDescription
roAudioMetadataThis component provides developers access to audio file metadata included in many audio files

Supported methods

SetUrl(url as String) as Void

Description

Sets the URL to the audio file. Only file URLs are initially supported

Parameters

NameTypeDescription
urlStringThe URL of the audio file.

GetTags() as Object

Description

Returns an associative array that contains a simple set of tags that are common to most audio formats.

Return Value

An associative array that may be set to one of the following values:

NameTypeNotes
titleString
artistStringReturns the first artist found even though many titles have multiple artists
albumString
composerStringReturns the first composer found even though many titles have multiple composers
commentString
genreString
yearInteger
trackInteger

GetAudioProperties() as Object

Description

Returns an associative array with a simple set of audio properties.

Return Value

An associative array that may be set to one of the following values (these are values that may involve reading a larger portion of the file and thus may take longer to retrieve than tags):

NameTypeDescription
lengthIntegerDuration in seconds
bitrateIntegerIn kilobytes per second
samplerateIntegerSamples per second. For example: 44100 for CD sample rate
channelsIntegerNumber of channels. For example: 2 for stereo

GetCoverArt() as Object

Description

Returns the cover art, if available.

Return Value

An associative array with two entries: "bytes" and "type".