Ending of track flushes out the current playing track
This commit is contained in:
@ -171,6 +171,14 @@ export function getCurrentTrack(){
|
||||
}
|
||||
}
|
||||
|
||||
export function clearCurrentTrack(){
|
||||
return {
|
||||
type: 'CURRENT_TRACK_LOADED',
|
||||
current_track: null,
|
||||
current_track_uri: null
|
||||
}
|
||||
}
|
||||
|
||||
export function currentTrackLoaded(tl_track){
|
||||
return {
|
||||
type: 'MOPIDY_CURRENT_TRACK_LOADED',
|
||||
|
||||
@ -91,6 +91,7 @@ const MopidyMiddleware = (function(){
|
||||
break;
|
||||
|
||||
case 'event:trackPlaybackEnded':
|
||||
store.dispatch(mopidyActions.clearCurrentTrack());
|
||||
store.dispatch(mopidyActions.getTimePosition());
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user