summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/viewer/player/components.inline/inline.video.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-11-03 18:17:03 +0100
committerJules Laplace <julescarbon@gmail.com>2020-11-03 18:17:03 +0100
commit3684497c695edb23748d007564a3a6f8c46b403c (patch)
tree3970258df0c81abb7cc3a6b8ca07ba7ba0688da2 /animism-align/frontend/app/views/viewer/player/components.inline/inline.video.js
parentc89b17daf372c1cc6f83e5b456f888676990e721 (diff)
fullscreen images in the inline flow
Diffstat (limited to 'animism-align/frontend/app/views/viewer/player/components.inline/inline.video.js')
-rw-r--r--animism-align/frontend/app/views/viewer/player/components.inline/inline.video.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/animism-align/frontend/app/views/viewer/player/components.inline/inline.video.js b/animism-align/frontend/app/views/viewer/player/components.inline/inline.video.js
index 513293a..f831078 100644
--- a/animism-align/frontend/app/views/viewer/player/components.inline/inline.video.js
+++ b/animism-align/frontend/app/views/viewer/player/components.inline/inline.video.js
@@ -36,9 +36,14 @@ export class MediaVideo extends Component {
// if this is a fullscreen video, display the poster image
if (annotation.settings.fullscreen && !annotation.settings.inline) {
- const color = CURTAIN_COLOR_LOOKUP[annotation.settings.poster_background_color || annotation.settings.color] || CURTAIN_COLOR_LOOKUP.white
- style.color = color.textColor
- style.backgroundColor = color.backgroundColor
+ const colorName = annotation.settings.poster_background_color || annotation.settings.color || 'white'
+ const color = CURTAIN_COLOR_LOOKUP[colorName]
+ const elementStyle = {
+ color: color.textColor,
+ backgroundColor: color.backgroundColor,
+ }
+ style.color = color.textColor,
+ style.backgroundColor = color.backgroundColor,
style.backgroundImage = 'url(' + posterURL(item) + ')'
if (annotation.settings.poster_size) {
style.backgroundSize = annotation.settings.poster_size