I'm using web pack to compile my code and I'm import a file playground.Soundcloud.js into my project
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.jsinto my projectThe file is included but I'm not seeing the plugin
how do you load and instantiate plugins?