mirror of
https://github.com/IrosTheBeggar/mStream.git
synced 2025-10-27 07:31:02 +00:00
1.1 KiB
1.1 KiB
Push Message To Jukebox Instance
Send a message to a client running in Jukebox Mode
-
URL
/jukebox/push-to-client
-
Method:
POST -
JSON Params
Required:
code- This is the code generated when starting Jukebox Mode
command- Command to push to clientOptional:
file- filepath for adding files to playlist -
JSON Example
{ 'code': '59305', 'command': 'addSong', 'file': '/path/to/file.flac' } -
List Of Commands
If the command does not match one of the following, the server will return an error
nextpreviousplayPauseaddSonggetPlaylist(not currently implemented)removeSong(not currently implemented)
Users with Guest Codes will only have access to
addSongandgetPlaylist -
Success Response:
-
Code: 200
Content:{ status: 'done' }
-
-
NOTES:
- Additional functions to limit guest access will be added in the future
- Returns a 500 error if the client code could not be found