Skip to content

Loading plugins #55

@karneaud

Description

@karneaud

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions