From 91c47c22f2c71c524fd665f19186bb014c94ab31 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 4 Jun 2018 04:50:27 +0200 Subject: audioplayer you can toggle --- app/client/common/audioPlayer/audioPlayer.actions.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 app/client/common/audioPlayer/audioPlayer.actions.js (limited to 'app/client/common/audioPlayer/audioPlayer.actions.js') diff --git a/app/client/common/audioPlayer/audioPlayer.actions.js b/app/client/common/audioPlayer/audioPlayer.actions.js new file mode 100644 index 0000000..3d3ea10 --- /dev/null +++ b/app/client/common/audioPlayer/audioPlayer.actions.js @@ -0,0 +1,15 @@ + +import types from '../../types' + +export const play = (file) => { + return { type: types.audioPlayer.play, file } +} +export const pause = () => { + return { type: types.audioPlayer.pause } +} +export const resume = () => { + return { type: types.audioPlayer.resume } +} +export const enqueue = (file) => { + return { type: types.audioPlayer.enqueue, file} +} \ No newline at end of file -- cgit v1.2.3-70-g09d2