Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading plugins #55

Open
karneaud opened this issue Feb 11, 2018 · 0 comments
Open

Loading plugins #55

karneaud opened this issue Feb 11, 2018 · 0 comments

Comments

@karneaud
Copy link

karneaud commented Feb 11, 2018

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant