From 0a2bc7f1bf214b2099c1f8139a67288c10249565 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 21 May 2018 22:05:51 +0200 Subject: better messaging when saving video --- app/client/live/reducer.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'app/client/live/reducer.js') diff --git a/app/client/live/reducer.js b/app/client/live/reducer.js index 2a6782c..8fa6edd 100644 --- a/app/client/live/reducer.js +++ b/app/client/live/reducer.js @@ -96,6 +96,14 @@ const liveReducer = (state = liveInitialState, action) => { ) return state + case 'SAVING_VIDEO': + return { + ...state, + opt: { + ...state.opt, + savingVideo: true, + } + } case 'SAVE_VIDEO': FileSaver.saveAs( action.blob, @@ -108,6 +116,8 @@ const liveReducer = (state = liveInitialState, action) => { opt: { ...state.opt, recording: false, + savingVideo: false, + recordFrames: 0, } } -- cgit v1.2.3-70-g09d2