Slider; Queue

This commit is contained in:
James Barnsley
2016-11-03 18:22:26 +13:00
parent 8f5e61a8f9
commit 6cee0a9daf
26 changed files with 799 additions and 299 deletions

View File

@ -77,6 +77,10 @@ export function pause(){
return instruct('playback.pause');
}
export function stop(){
return instruct('playback.stop');
}
export function next(){
return instruct('playback.next');
}
@ -85,6 +89,21 @@ export function previous(){
return instruct('playback.previous');
}
export function seek( time_position ){
return {
type: 'MOPIDY_INSTRUCT',
call: 'playback.seek',
value: { time_position: time_position }
}
}
export function getTimePosition(){
return {
type: 'MOPIDY_INSTRUCT',
call: 'playback.getTimePosition'
}
}
/**