troybetz / react-soundcloud-widget Goto Github PK
View Code? Open in Web Editor NEWreact.js powered SoundCloud player component
Home Page: http://troybetz.github.io/react-soundcloud-widget/
License: MIT License
react.js powered SoundCloud player component
Home Page: http://troybetz.github.io/react-soundcloud-widget/
License: MIT License
Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types
package from npm instead.
Currently widget only accepts visual
parameter, but sometimes I need a playlist view but without visual.
So it should be like this:
{
height: this.props.height || (this.props.opts.visual ? "450" : "166"),
}
Pare it down to simple wrapper over SoundCloud's widget.
I tried to use the widget providing as url prop all different urls on the /tracks soundcloud API https://developers.soundcloud.com/docs/api/reference#tracks and I couldn't make it work what is expecting on url prop which exact value? Is in /tracks API? thank you in advance for your response.
The Soundcloud Widget API allows a callback function to be specified in widget opts that is fired when the widget is loaded and ready. Invaluable for any interactions between React & the player. But this wrapper doesn't allow a callback to be passed in opts; PropTypes only allows Boolean values for opts.
Link from readme http://troybetz.com/react-soundcloud-widget/ returns 404
This line https://github.com/troybetz/react-soundcloud-widget/blob/master/src/SoundCloud.js#L119 is causing lots of 404 errors to be dumped to console:
src="https://w.soundcloud.com/player/?url="
You need to open IFRAME
with some other URL that is more safe.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.