summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/align/components/annotations/annotationForms
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-11-19 16:35:06 +0100
committerJules Laplace <julescarbon@gmail.com>2020-11-19 16:35:06 +0100
commit2db75c958876dca7e301ea387180342fc11d25a6 (patch)
treee3206e8e33487dab02138e3b50b14ff5e1fa9467 /animism-align/frontend/app/views/align/components/annotations/annotationForms
parent17438f18e5943e5cdb12f2d4f9aed284c867e034 (diff)
implement audio volume fades within the skeleton dance video
Diffstat (limited to 'animism-align/frontend/app/views/align/components/annotations/annotationForms')
-rw-r--r--animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.video.js25
-rw-r--r--animism-align/frontend/app/views/align/components/annotations/annotationForms/index.js2
2 files changed, 27 insertions, 0 deletions
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 56bb4ab..a947e2a 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
@@ -125,3 +125,28 @@ export const AnnotationFormVideo = ({ annotation, media, handleSettingsSelect, h
</div>
)
}
+
+export const AnnotationFormVideoSetVolume = ({ annotation, handleSettingsChange }) => {
+ return (
+ <div className='options'>
+ <TextInput
+ title="Volume"
+ name="volume"
+ className="number"
+ placeholder="1.0"
+ data={annotation.settings}
+ onChange={handleSettingsChange}
+ autoComplete="off"
+ />
+ <TextInput
+ title="Fade Time"
+ name="duration"
+ className="number"
+ placeholder="0:01"
+ data={annotation.settings}
+ onChange={handleSettingsChange}
+ autoComplete="off"
+ />
+ </div>
+ )
+} \ No newline at end of file
diff --git a/animism-align/frontend/app/views/align/components/annotations/annotationForms/index.js b/animism-align/frontend/app/views/align/components/annotations/annotationForms/index.js
index 7b95332..8a1be48 100644
--- a/animism-align/frontend/app/views/align/components/annotations/annotationForms/index.js
+++ b/animism-align/frontend/app/views/align/components/annotations/annotationForms/index.js
@@ -7,6 +7,7 @@ import {
import {
AnnotationFormVideo,
+ AnnotationFormVideoSetVolume,
} from './annotationForm.video'
import {
@@ -31,6 +32,7 @@ export const annotationFormLookup = {
image: AnnotationFormImage,
video: AnnotationFormVideo,
+ video_set_volume: AnnotationFormVideoSetVolume,
gallery: AnnotationFormGallery,
carousel: AnnotationFormGallery,