Queue changes broadcast notifications in browser

This commit is contained in:
James Barnsley
2018-02-25 17:24:24 +13:00
parent 2c0d75612f
commit 536fead38d
3 changed files with 47 additions and 17 deletions

View File

@ -42,7 +42,10 @@ export function debug(call, value){
**/
export function changeTrack(tlid){
return instruct('playback.play', {tlid: tlid})
return {
type: 'MOPIDY_CHANGE_TRACK',
tlid: tlid
}
}
export function playURIs(uris, from_uri = null){
@ -85,7 +88,10 @@ export function playAlbum(uri){
}
export function removeTracks(tlids){
return instruct('tracklist.remove', {tlid: tlids})
return {
type: 'MOPIDY_REMOVE_TRACKS',
tlids: tlids
}
}
export function reorderTracklist(indexes, insert_before){