Coder Social home page Coder Social logo

spotbox's Introduction

Spotbox

A .NET Spotify Server.

Very early stages at the moment.

The goal is to create a windows-based spotify instance that can be controlled over the web via http calls.

Installation

Rename App.example.config to App.config and replace spotify username, password and key location with your own account details.

In order to open the appropriate port, Spotbox will need to be run as adminstrator.

(Nuget packages should be restored automatically when the solution is built)

API

Rough documentation

Controls

Used for controlling the playing music

POST /play - Starts the current track playing. Returns a 404 if no track is set.

POST /pause - Pauses the current track.

POST /next - Skips to the next track in the current playlist. Playback state will be the same on the new track (paused if previous track was paused)

POST /prev - Skips to the previous track in the current playlist.

Playing

Used for getting the current track which is playing

GET /playing - Returns a JSON representation of the current track.

GET /playing/cover.jpeg - Returns a jpeg of the current track's album cover.

Playlist

Used for getting, adding to, and changing the current playlist

GET /playlist - Returns a JSON representation of the current playlist

POST /playlist - Accepts JSON in the form {"Value" : "track query string"} searches for a track and adds it to the end of the current playlist

PUT /playlist - Accepts JSON in the form {"Value" : "Playlist Name"} searches for a playlist with a matching name and replaces the current playlist with it (setting the position to 0)

Playlists

Used for getting a list of available playlists

GET /playlists - Returns a JSON representation of all the available playlists

Speak

For a bit of fun, you can get Spotbox to talk

POST /speak - Accepts JSON in the form {"Value" : "Text to read out"} and pauses the audio, reads the text and restarts the audio

spotbox's People

Contributors

jonfinerty avatar

Watchers

James Cloos avatar Paul Simmons avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.