Implementing a Spotify player without opening the Spotify app
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello fellow developers,
I am currently working on a NextJS web app that uses "spotify-web-api-node" package to make use of several Spotify API endpoints. One of the required features is to implement a Spotify player where songs are fetched automatically and played to the user. I was successful in implementing the said functionality, but the overall experience is hindered by the fact that Spotify requires an active instance of its official app in order for the playback features to work on the user's web app. In case the Spotify app is not active, the user would get a "No Active Device Found" error referenced below.
Is there any other way of implementing the aforementioned playback functionality without having to open a separate Spotify app and to have the music played from the web app instead?
Thank you for your time,
PS: the app I am developing will not be used commercially I am just doing it to learn and have some fun, thanks.
Error reference:
Unhandled Runtime Error
WebapiPlayerError: An error occurred while communicating with Spotify's Web API. Details: Player command failed: No active device found NO_ACTIVE_DEVICE.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page