How Plugins Work With Playlists
Prev
Next

How Plugins Work With Playlists

To help understand these limitations, you must know how Noatun actually loads plugins. You should also know that you can't create playlistitems until napp->playlist() is correct. The below list shows how a playlist is loaded.

  1. create_plugin is called, and noatun gets the Plugin object.

  2. Plugin::playlist is called, it's not null, so napp->playlist() is now correct. You have to create the playlist object before this is called. And there's no guarantee it'l only be called once.

  3. Plugin::init() is called, in here, you can fill your playlist. init() is only called once, like a secondary constructor.

Prev
Next
Home