Skip to content

react-soundcloud-widget-player is a simple SoundCloud player using the soundcloud widget API.

Notifications You must be signed in to change notification settings

react-z/react-soundcloud-widget-player

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-soundcloud-widget-player

npm version

react-soundcloud-widget-player is a simple SoundCloud player using the Widget API

Installation

yarn add react-soundcloud-widget-player

Usage

Ensure you include the soundcloud widget player API

<script type="text/javascript" src="https://w.soundcloud.com/player/api.js"></script>

Then init your player

import Player from 'react-soundcloud-widget-player'
import ReactDOM from 'react-dom'
import React, { Component } from 'react'

class TestComponent extends Component {
  render() {
    return (
      <div>
        <Player
          title='EASYFUN - Be Your USA feat. Iiris'
          audioUrl="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/449016357"
        />
      </div>
    )
  }
}

ReactDOM.render(<TestComponent />, document.getElementById('root'))

Styles

Uses styled-components 💅 for the base styling.

Development

yarn
yarn dev

Test

yarn test

Build

yarn
yarn build

Publish

npm login
npm version patch
git add -A
git push origin master
npm publish

License

MIT

About

react-soundcloud-widget-player is a simple SoundCloud player using the soundcloud widget API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published