Search code examples
spotifylibspotify

multiple session spotify


Our app runs on a multi audio zoned PC that distributes music to various parts of ones home etc. Does anyone know if Libspotify supports multiple sessions? It appears to be structured to do so , but I've had no luck getting it to work. If so any pointers on how to get it work.


Solution

  • Do you mean simultaneous playback on multiple devices or having multiple session instances in one process?

    Either way, the answer is no:

    • While you can be logged in using as many devices as you like, libspotify (and all other Spotify clients) will only allow you to stream to one machine at once.

    • libSpotify only supports one session instance per process. If you want multiple users logged on one machine, you'll need a different process for each logged-in user.