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

@ -70,7 +70,7 @@ class Playlist extends React.Component{
play(){
ReactGA.event({ category: 'Playlist', action: 'Play', label: this.props.playlist.uri })
this.props.mopidyActions.playURIs([this.props.playlist.uri], this.props.params.uri)
this.props.mopidyActions.playPlaylist(this.props.playlist.uri)
}
follow(){