Skip to content

Ringobot/ringoapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ringoapi

User can create a station, auth Spotify, start playing anything, share a link. They are now the station owner. Friend clicks link, auths with Spotify, presses play on Spotify, Ringo syncs them with station. They are now a listener. More friends join, same process. Owner changes what they are playing, clicks "Sync", all listeners are re-synced. Owner decides to change owner to another listener. They become new owner and old owner becomes listener. Owner stops playing or quits Spotify. Any listener can now make themself the new owner.

API

Home

GET /settings 

Start

POST /users
POST /stations

Player

PUT /stations/Friyay_List/start (owner)
PUT /stations/Friyay_List/join (listener)
PUT /stations/Friyay_List/owner (owner or listener)

Sockets ⚡

RoomEffects (airhorn)
NowListening
RoomChat
Playhead

TODO

  1. CORS http://localhost:8080/
  2. I think CalculateError() is around the wrong way
  3. Cookie UserId should not be User.UserId. 1:Many relationship between User and cookie.
  4. Spotify User Profile
  5. Timer function, clean up Stations that have not been modified since 1 hour

Links

https://en.wikipedia.org/wiki/Cristian%27s_algorithm

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages