Open karneaud opened 6 years ago
I'm using web pack to compile my code and I'm import a file playground.Soundcloud.js into my project
playground.Soundcloud.js
PLAYGROUND.Soundcloud = function(app) { this.app = app this.app.audio = Player } PLAYGROUND.Soundcloud.plugin = true PLAYGROUND.Soundcloud.prototype = { } PLAYGROUND.Application.prototype.playTrack = function(url) { this.app.audio.resolve(url, { callback(track) { this.app.audio.audio.play() //clubber.listen(this.app.audio) }, play: true }) } PLAYGROUND.Application.prototype.loadAudio = function(audio, opts) { opts = opts || {} }
The file is included but I'm not seeing the plugin
how do you load and instantiate plugins?
I'm using web pack to compile my code and I'm import a file
playground.Soundcloud.js
into my projectThe file is included but I'm not seeing the plugin
how do you load and instantiate plugins?