this is the @magic-modules SoundCloud component.
it embeds soundcloud tracks, playlist and user widgets.
npm install @magic-modules/sound-cloudin a page or module View
exportconstView=()=>SoundCloud(props)the track type shows a single track
SoundCloud({type: 'track',src: '599883213'})the playlists type shows a playlist
SoundCloud({type: 'playlist',src: '613360614'})the users type shows a user profile
SoundCloud({type: 'users',src: '613360614'})@magic tries to keep the default arguments for soundcloud sane.
{
visual =true,// set to false to get a smaller view with 166px height
show_teaser =false,// show an overlay with soundcloud ads
show_reposts =false,// show reposts for this track/user/playlist
show_user =true,// show the user that uploaded the track or playlist
show_comments =false,// show comments people left
auto_play =false,// auto play video (will not work in many browsers anyways)
hide_related =true,// hide artists that might match or not
height =300||166,// default height for visual true || false
width ='100%',
scrolling ='no',
frameborder ='no',}first release
- require node 13.5.0
- also accept props in the form of a string
- bump required node version to 14.2.0
- update @magic-libraries/uri
bump required node version to 14.15.4
update dependencies
...