Adding URIs as a queue, #105

This commit is contained in:
James Barnsley
2017-05-05 03:56:55 +12:00
parent 2e48e0ad64
commit fe01461b7b
3 changed files with 101 additions and 59 deletions

View File

@ -49,7 +49,7 @@ export function changeTrack( tlid ){
}
}
export function playURIs( uris, from_uri = null ){
export function playURIs(uris, from_uri = null){
return {
type: 'MOPIDY_PLAY_URIS',
uris: uris,
@ -57,7 +57,7 @@ export function playURIs( uris, from_uri = null ){
}
}
export function enqueueURIs( uris, from_uri = null, next = false, at_position = null ){
export function enqueueURIs(uris, from_uri = null, next = false, at_position = null){
return {
type: 'MOPIDY_ENQUEUE_URIS',
uris: uris,
@ -67,6 +67,18 @@ export function enqueueURIs( uris, from_uri = null, next = false, at_position =
}
}
export function enqueueURIsBatchDone(){
return {
type: 'MOPIDY_ENQUEUE_URIS_BATCH_DONE'
}
}
export function enqueueUrisProcessor(){
return {
type: 'MOPIDY_ENQUEUE_URIS_PROCESSOR'
}
}
export function playPlaylist(uri){
return {
type: 'MOPIDY_PLAY_PLAYLIST',