Better SpotifyWebComponent
In this moment, spotify can query devices and current playing song.
The characteristic features of:
- Query songs
- Playing song on device
- Parse input commands (example
send_command("PLAY_SONG", "artist - song", device_name))
So we probably want to support most player functionality, am I right?: Spotify API - Player
Done so far:
- SET_VOLUME - Set volume on current or specified device. (was already there)
- PAUSE - Pauses playing on current device.
- PLAY_TRACK - Play a track on current or specified device.
- PLAY_CONTEXT - Play an artist/album/playlist on current or specified device.
- RESUME - Resume playing on current or specified device.
What's left:
- NEXT - Skip to next track.
- PREVIOUS - Skip to previous track.
- SET_REPEAT - Set repeat mode.
- SET_SHUFFLE - Set shuffle mode.
If I'm missing something, please let me know.
Hi @bkardol, Yes is correct! I also think the possibility of searching for songs is useful, What do you think about it?
Thank you!
@tgiachi , good one, I will include search functionality aswell.
Thanks for the quick reply!
Regarding the search functionality: Should it be implemented with a command that puts its result in an event? Or should it be returned immediately from the command. If this is the case I think we need some adjustments in the EventBridge and DispatcherService.
Thanks!
Hi @bkardol ! In my last commit (on master branch) i've added on SendCommand object result. Please try if works! Have a nice day
Nice, I'll try it out. Thanks @tgiachi !