From d46d47ee9c79dce950bd149c4c5097476e6ce060 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 29 Oct 2020 17:30:22 +0100 Subject: getting scrubber working with the new start ts --- .../annotationForms/annotationForm.video.js | 14 ++++++++++- .../components.fullscreen/fullscreen.video.js | 20 ++++++++++++++- .../player/components.media/video.scrubber.js | 29 ++++++++++++++++------ 3 files changed, 54 insertions(+), 9 deletions(-) (limited to 'animism-align/frontend') diff --git a/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.video.js b/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.video.js index 70d42f2..12a322c 100644 --- a/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.video.js +++ b/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.video.js @@ -1,7 +1,7 @@ import React, { Component } from 'react' import { CURTAIN_COLOR_SELECT_OPTIONS, IMAGE_BACKGROUND_SIZE_OPTIONS } from 'app/constants' -import { Select, Checkbox } from 'app/common' +import { Select, Checkbox, TextInput, LabelDescription } from 'app/common' import { AnnotationFormFullscreen } from './annotationForm.utility' export const AnnotationFormVideo = ({ annotation, media, handleSettingsSelect, handleSettingsChange }) => { @@ -92,6 +92,18 @@ export const AnnotationFormVideo = ({ annotation, media, handleSettingsSelect, h defaultOption='Select size' onChange={handleSettingsSelect} /> + + + {'Auto-advances the video to this point when starting'} + {(annotation.settings.fullscreen && !annotation.settings.inline) && ( 1.0) { // handle seek @@ -44,7 +60,7 @@ class FullscreenVideo extends Component { render() { const { element, media, transitionDuration, playing } = this.props - const { duration, percent, seconds } = this.state + const { duration, seconds } = this.state const { color } = element const item = media.lookup[element.settings.media_id] const style = { @@ -52,6 +68,7 @@ class FullscreenVideo extends Component { color: color.textColor, transitionDuration, } + // return (
@@ -93,11 +108,11 @@ class VideoScrubber extends Component {
{timestampText}
-- cgit v1.2.3-70-g09d2