Type Method

generateEmbedCode

Generates Apple Music web player markup.

Declaration

static string generateEmbedCode(string url, any options);

Parameters

url

The iTunes URL for the Apple Music content.

options

The object containing the height and width of the player. The default value is {height: '450px', width: '660px'}

Return Value

A string containing the Apple Music web player markup.

See Also

Utilities

formatArtworkURL

Returns a formatted artwork URL.

formattedMilliseconds

Returns an object with milliseconds formatted into hours and minutes.

formattedSeconds

Returns an object with seconds formatted into hours and minutes.

MusicKit.Events

A dictionary containing events for a MusicKit instance.