Playlists have their own play() function; If HTTP API, then preload and then enqueue in batches

This commit is contained in:
James Barnsley
2017-04-07 10:33:54 +12:00
parent b052cd09f5
commit 5816853787
5 changed files with 137 additions and 42 deletions

View File

@ -67,6 +67,20 @@ export function enqueueURIs( uris, from_uri = null, next = false, at_position =
}
}
export function playPlaylist(uri){
return {
type: 'MOPIDY_PLAY_PLAYLIST',
uri: uri
}
}
export function playAlbum(uri){
return {
type: 'MOPIDY_PLAY_ALBUM',
uri: uri
}
}
export function removeTracks( tlids ){
return {
type: 'MOPIDY_INSTRUCT',