react-simple-soundcloud-widget
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

react-simple-soundcloud-widget

Basically this is a rewrite of the simple https://github.com/troybetz/react-soundcloud-widget, which was unfortunately not being maintained any more.

dependencies

This library assumes you are using React and manage the React dependency by yourself.

use

install:

npm i react-simple-soundcloud-widget

using:

import SoundCloudWidget from 'react-simple-soundcloud-widget'
 
<SoundCloudWidget
    url="https://soundcloud.com/timo-vaerigjarson/i-searched-myself"
/>

This is all that is truly necessary. Everything else is optional. Here is an example with all possible props for reference:

<SoundCloud
    url="https://soundcloud.com/timo-vaerigjarson/i-searched-myself"
    config={{
        auto_play: true // default
        visual: false // default
        buying: true // default
        liking: true // default
        download: true // default
        sharing: true // default
        show_artwork: true // default
        show_comments: true // default
        show_playcount: true // default
        show_user: true // default
        show_reposts: false // default
        hide_related: false // default
    }}
    onPlay={info => console.log('on play called', info)}
    onPause={info => console.log('on pause called', info)}
    onEnd={info => console.log('on end called', info)}
    onReady={() => console.log('on ready called')}
/>

develop

npm i
npm run start

Readme

Keywords

none

Package Sidebar

Install

npm i react-simple-soundcloud-widget

Weekly Downloads

117

Version

0.0.5

License

MIT

Unpacked Size

21.6 kB

Total Files

23

Last publish

Collaborators

  • jsphweid