From af8b8d4a7bd58d6355665a962e587c149f03cf16 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 7 Jun 2018 10:36:40 +0200 Subject: display status message and stuff --- app/client/live/live.reducer.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'app/client/live/live.reducer.js') diff --git a/app/client/live/live.reducer.js b/app/client/live/live.reducer.js index 83beb03..d2b4788 100644 --- a/app/client/live/live.reducer.js +++ b/app/client/live/live.reducer.js @@ -11,12 +11,13 @@ const liveInitialState = { sequences: [], fps: 0, playing: false, + last_message: '', frame: { i: 0, sequence_i: 0, sequence_len: '1' } } const liveReducer = (state = liveInitialState, action) => { let results; - +console.log(action.type) switch(action.type) { case types.socket.load_params: if (! action.opt || ! Object.keys(action.opt).length) { @@ -65,6 +66,17 @@ const liveReducer = (state = liveInitialState, action) => { fps: action.fps, } + case types.system.stdout: + console.log(action) + if (action.data.processor === 'gpu') { + console.log('boo>', action.data) + return { + ...state, + last_message: action.data.data, + } + } + return state + case types.player.current_frame: return action.meta ? { ...state, -- cgit v1.2.3-70-g09d2