Displays a Soundcloud clip
Example Visual Mode:
<amp-soundcloud height=657
layout="fixed-height"
data-trackid="243169232"
data-visual="true"></amp-soundcloud>
Example Classic Mode:
<amp-soundcloud height=657
layout="fixed-height"
data-trackid="243169232"
data-color="ff5500"></amp-soundcloud>
data-trackid
The ID of the track.
data-visual
Displays full width "Visual" mode.
data-color
Custom color override. Only works with "Classic" Mode. Will be ignored in "Visual" Mode.
width and height
Layout is fixed-height
and will fill all the available horizontal space. This is ideal for classic mode
, but for visual-mode
, height is recommended to be 300px, 450px or 600px, as per Soundcloud embed code. This will allow the clip's internal elements to resize properly on mobile.