SoundCloud
@magic-modules/sound-cloud
this is the @magic-modules SoundCloud component.
embeds soundcloud tracks, playlist and user widgets.
installation
npm install @magic-modules/sound-cloudusage
in a page or module View
javascript
SoundCloud(599883213)markdown / html
<SoundCloud>599883213</SoundCloud>renders
tracks
the track type shows a single track
javascript
SoundCloud({ type: 'track', id: 599883213 })markdown / html
<SoundCloud type="track" id="599883213"></SoundCloud>renders
playlists
the playlists type shows a playlist of songs
javascript
SoundCloud({ type: 'playlist', id: 641153793 })markdown / html
<SoundCloud type="playlist" id="641153793"></SoundCloud>renders
users
the users type shows a user profile.
javascript
SoundCloud({ type: 'user', id: 151832569 })markdown / html
<SoundCloud type="user" id="151832569"></SoundCloud>renders
default arguments
@magic tries to keep the default arguments for soundcloud sane.
markdown
<SoundCloudvisual ="true" // set to false to get a smaller view with 166px heightshow_teaser ="false" // show an overlay with soundcloud adsshow_reposts ="false" // show reposts for this track/user/playlistshow_user ="true" // show the user that uploaded the track or playlistshow_comments ="false" // show comments people leftauto_play ="false" // auto play video (will not work in many browsers anyways)hide_related ="true" // hide artists that might match or notheight ="300" || "166" // default height for visual true || falsewidth ="100%"scrolling ="no"frameborder ="no"><SoundCloud>}
javascript
SoundCloud({visual: true, // set to false to get a smaller view with 166px heightshow_teaser: false, // show an overlay with soundcloud adsshow_reposts: false, // show reposts for this track/user/playlistshow_user: true, // show the user that uploaded the track or playlistshow_comments: false, // show comments people leftauto_play: false, // auto play video (will not work in many browsers anyways)hide_related: true, // hide artists that might match or notheight: 300 || 166, // default height for visual true || falsewidth: '100%',scrolling: "no",frameborder: "no",}),
source
the source for this page is in the example directory and gets built and published to github using @magic/core