diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-11-10 15:43:05 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-11-10 15:43:05 +0100 |
| commit | 7bfafb6f079aab435da01010362b1189645b2249 (patch) | |
| tree | 1de26e0b5106fc10356c4f79eb0bc7764a10a079 /animism-align/frontend/app/views/viewer/player | |
| parent | f66dd644e228592cb72e03b44cb63df1ea27e5f2 (diff) | |
FIX the flicker between audio play and play event firing
Diffstat (limited to 'animism-align/frontend/app/views/viewer/player')
| -rw-r--r-- | animism-align/frontend/app/views/viewer/player/player.fullscreen.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/animism-align/frontend/app/views/viewer/player/player.fullscreen.js b/animism-align/frontend/app/views/viewer/player/player.fullscreen.js index 6ec6e3d..96a428e 100644 --- a/animism-align/frontend/app/views/viewer/player/player.fullscreen.js +++ b/animism-align/frontend/app/views/viewer/player/player.fullscreen.js @@ -5,7 +5,7 @@ import { TransitionGroup, CSSTransition } from 'react-transition-group' import actions from 'app/actions' import { clamp, floatInRange, floatLT } from 'app/utils' -import { PERSISTENT_FULLSCREEN_ELEMENTS } from 'app/constants' +import { PERSISTENT_FULLSCREEN_ELEMENTS, CURTAIN_COLOR_LOOKUP } from 'app/constants' import { fullscreenComponents } from './components.fullscreen' import { makeFullscreenEvent } from '../viewer.actions' @@ -76,6 +76,8 @@ class PlayerFullscreen extends Component { } return e }) + // const sectionColor = currentSection.paragraphs[0].annotations[0].settings.color || 'white' + // CURTAIN_COLOR_LOOKUP[sectionColor], elements.unshift(makeFullscreenEvent(100, { start_ts: seek_ts, end_ts: seek_ts + 1.3, |
