summaryrefslogtreecommitdiff
path: root/app/client/common/audioPlayer/audioPlayer.actions.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/client/common/audioPlayer/audioPlayer.actions.js')
-rw-r--r--app/client/common/audioPlayer/audioPlayer.actions.js15
1 files changed, 15 insertions, 0 deletions
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