1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-26 13:26:40 +07:00

AudioPlayer initial

This commit is contained in:
Fedor Katurov 2019-10-13 17:47:13 +07:00
parent d1e369f723
commit f66825a9ea
12 changed files with 190 additions and 26 deletions

View file

@ -0,0 +1,20 @@
import { IPlayerState } from './reducer';
import { PLAYER_ACTIONS } from './constants';
export const playerSetFile = (file: IPlayerState['file']) => ({
type: PLAYER_ACTIONS.SET_FILE,
file,
});
export const playerSetStatus = (status: IPlayerState['status']) => ({
type: PLAYER_ACTIONS.SET_STATUS,
status,
});
export const playerPlay = () => ({
type: PLAYER_ACTIONS.PLAY,
});
export const playerPause = () => ({
type: PLAYER_ACTIONS.PAUSE,
});