media.spotify ViewHelper <vhs:media.spotify> 

Renders HTML code to embed a Spotify play button.

Arguments 

additionalAttributes 

DataType
mixed
Required
false
Description
Additional tag attributes. They will be added directly to the resulting HTML tag.

data 

DataType
mixed
Required
false
Description
Additional data-* attributes. They will each be added with a "data-" prefix.

aria 

DataType
mixed
Required
false
Description
Additional aria-* attributes. They will each be added with a "aria-" prefix.

spotifyUri 

DataType
string
Required
true
Description
Spotify URI to create the play button for. Right click any song, album or playlist in Spotify and select Copy Spotify URI.

width 

DataType
mixed
Default
300
Required
false
Description
Width of the play button in pixels. Defaults to 300

height 

DataType
mixed
Default
380
Required
false
Description
Height of the play button in pixels. Defaults to 380

compact 

DataType
boolean
Required
false
Description
Whether to render the compact button with a fixed height of 80px.

theme 

DataType
string
Default
'black'
Required
false
Description
Theme to use. Can be "black" or "white" and is not available in compact mode. Defaults to "black".

view 

DataType
string
Default
'list'
Required
false
Description
View to use. Can be "list" or "coverart" and is not available in compact mode. Defaults to "list".