Default Art

If you have audio that doesn't have a specific piece of album art, you can define a default image url using the "default_album_art" key. The value can be set on initialization or through a public method. You can also set the default playlist art for metadata. If you don't define a piece of album art for your playlist you can also set that on initialization through the "default_playlist_art" key or through a public method.

Initialization Default Album Art

Set default album art

Amplitude.init({
    "songs": [...],
    "default_album_art": "/url/to/default.jpg"
});

Public Set Method Default Album Art

Set default album art through a public method

Amplitude.setDefaultAlbumArt( "/url/to/default.jpg" );

Initialization Default Playlist Album Art

Set default playlist art

Amplitude.init({
    "songs": [...],
    "playlists": {
        ...
    },
    "default_playlist_art": "/url/to/default.jpg"
});

Public Set Method Default Playlist Art

Set default playlist art through public method

Amplitude.setDefaultPlaylistArt( "/url/to/default.jpg" );