Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Mirador annotations
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
IIIF
Mirador
Mirador annotations
Commits
a3ee421e
Commit
a3ee421e
authored
Jan 24, 2024
by
Anthony
Browse files
Options
Downloads
Plain Diff
Merge branch 'récupération_temps_video' into mui5-tetras-main-stable
parents
002544c3
d0afc0e7
No related branches found
No related tags found
2 merge requests
!18
Récupération du temps de la vidéo
,
!10
Draft: MigratingAnnotationCreation to MUI5.
Pipeline
#1784
failed
Jan 25, 2024
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/AnnotationCreation.js
+4
-9
4 additions, 9 deletions
src/AnnotationCreation.js
with
4 additions
and
9 deletions
src/AnnotationCreation.js
+
4
−
9
View file @
a3ee421e
...
@@ -496,8 +496,8 @@ function AnnotationCreation(props) {
...
@@ -496,8 +496,8 @@ function AnnotationCreation(props) {
valueTime
[
0
]
=
tstart
;
valueTime
[
0
]
=
tstart
;
valueTime
[
1
]
=
tend
;
valueTime
[
1
]
=
tend
;
}
}
const
is
Video
DataLoaded
=
mediaVideo
&&
mediaVideo
.
video
&&
!
isNaN
(
mediaVideo
.
video
.
duration
)
&&
mediaVideo
.
video
.
duration
>
0
;
const
my
Video
=
VideosReferences
.
get
(
windowId
)
const
videoDuration
=
myVideo
.
props
.
canvas
.
__jsonld
.
duration
return
(
return
(
<
CompanionWindow
<
CompanionWindow
title
=
{
title
?
title
.
value
:
'
New Annotation
'
}
title
=
{
title
?
title
.
value
:
'
New Annotation
'
}
...
@@ -551,17 +551,16 @@ function AnnotationCreation(props) {
...
@@ -551,17 +551,16 @@ function AnnotationCreation(props) {
<
Typography
id
=
"
range-slider
"
variant
=
"
overline
"
>
<
Typography
id
=
"
range-slider
"
variant
=
"
overline
"
>
Display
period
Display
period
<
/Typography
>
<
/Typography
>
{
isVideoDataLoaded
?
(
<
div
>
<
div
>
<
Typography
>
<
Typography
>
{
state
.
mediaVideo
.
video
.
d
uration
}
{
video
D
uration
}
<
/Typography
>
<
/Typography
>
<
Slider
<
Slider
value
=
{
valueTime
}
value
=
{
valueTime
}
onChange
=
{
handleChangeTime
}
onChange
=
{
handleChangeTime
}
valueLabelDisplay
=
"
auto
"
valueLabelDisplay
=
"
auto
"
aria
-
labelledby
=
"
range-slider
"
aria
-
labelledby
=
"
range-slider
"
max
=
{
Math
.
round
(
state
.
mediaVideo
.
video
.
d
uration
)}
max
=
{
Math
.
round
(
video
D
uration
)}
color
=
"
secondary
"
color
=
"
secondary
"
windowid
=
{
windowId
}
windowid
=
{
windowId
}
sx
=
{{
sx
=
{{
...
@@ -569,10 +568,6 @@ function AnnotationCreation(props) {
...
@@ -569,10 +568,6 @@ function AnnotationCreation(props) {
}}
}}
/
>
/
>
<
/div
>
<
/div
>
)
:
(
<
Typography
>
Loading
video
data
...
<
/Typography
>
)}
<
/Grid
>
<
/Grid
>
<
div
style
=
{{
<
div
style
=
{{
alignContent
:
'
center
'
,
alignContent
:
'
center
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment