diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-10-22 15:35:02 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-10-22 15:35:02 +0200 |
| commit | d94ac6fa8509a883f4f51f62887da9b9b5084740 (patch) | |
| tree | 61bf1584b9da19ab31abb8813ce101f9e3b0de03 /animism-align/frontend/app/views/viewer/viewer.actions.js | |
| parent | ccbad5ac735bcde3119c041de6420b0a73af185c (diff) | |
add uploadable poster image to videos and make them auto inline
Diffstat (limited to 'animism-align/frontend/app/views/viewer/viewer.actions.js')
| -rw-r--r-- | animism-align/frontend/app/views/viewer/viewer.actions.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/animism-align/frontend/app/views/viewer/viewer.actions.js b/animism-align/frontend/app/views/viewer/viewer.actions.js index f3e3465..3fbe47b 100644 --- a/animism-align/frontend/app/views/viewer/viewer.actions.js +++ b/animism-align/frontend/app/views/viewer/viewer.actions.js @@ -128,6 +128,10 @@ export const loadSections = () => dispatch => { if ((FULLSCREEN_UTILITY_ANNOTATION_TYPES.has(annotation.type) || annotation.settings.fullscreen) && !annotation.settings.inline) { const event = makeFullscreenEvent(eventIndex++, annotation) currentSection.fullscreenTimeline.push(event) + // for videos, we probably want to show a poster image + if (annotation.type === 'video' && !annotation.settings.hide_poster_inline) { + sectionTextAnnotationOrder.push(annotation.id) + } } // add text annotations to section annotation order |
