Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video support with MUI5 React 17 #3889

Draft
wants to merge 122 commits into
base: master
Choose a base branch
from

Conversation

geourjoa
Copy link

@geourjoa geourjoa commented Feb 12, 2024

Hi, this PR is to add support for annotated videos into Mirador.
An example of such a video is given in this Manifest :
https://dzkimgs.l.u-tokyo.ac.jp/videos/cat2020/manifest.json

We started from the work done at Tokyo University :
https://github.com/2SC1815J/mirador

We now merged the recent updates to React 17 and MUI5 and plan to follow up on React 18.

A demo instance is available with a pre-release of an annotation plugin supporting video too.
https://scene.tetras-libre.fr/

Two tests are failing at the moment and I might need help to fix this.
Please let me know if a merge could happen, maybe when you will be less busy with React updates and all.

Best regards :-)

2SC1815J and others added 30 commits January 10, 2021 23:10
OSDReferences is a list of ref to OpenSeadragon instances, used in
Mirador as an image viewer. This commit exposes a VideoViewerReferences,
to allows the annotations plugins to get video canvas dimensions and DOM
element

+ removed build warning
+ disable "prepare" script to speed up build
- dont ignore package-lock (needed for npm ci)
- use puppeteer container
- use junit for proper gitlab tests reports integration
- chrome without sandbox to not require SYS_ADMIN docker cap (cf
  https://pptr.dev/guides/docker)
babel.config.json:
comment was false, it was not a warning ignored when building
dependencies; but an option that babel expects to be at the same value
for these 3 plugins

cf this commit from mirador original repo : ProjectMirador@c79d878

AnnotationItem.js: cf issue ProjectMirador#5
Expose VideoViewerReferences like OSDReferences

See merge request iiif/mirador-video-annotation!1
Integrate upstream tests into gitlab ci

Closes #4

See merge request iiif/mirador-video-annotation!4
Expose VideoViewerReferences like OSDReferences

See merge request iiif/mirador-video-annotation!5
- build before integration tests
- also logs tests results in job output
- remove online google fonts to speed up tests
- run test serially to avoid timeouts (cf
  https://github.com/smooth-code/jest-puppeteer#running-puppeteer-in-ci-environments)
- use Manifesto Utils.parseManifest to feed data to component
- add integrations tests for captions
- remove component captions tests (cf ProjectMirador#13)
- extend expect-puppeteer timeout to 2s
Fix CI configuration

Closes ProjectMirador#6

See merge request iiif/mirador-video-annotation!6
Fix VideoViewer component tests

Closes ProjectMirador#9

See merge request iiif/mirador-video-annotation!7
For a ref to video size/position, use AnnotationsOverlayVideo canvas instead
of video element
+ always show this overlay, even if there is no annotations to display
…deo'

Adapt API for edition of annotations on Video

Closes ProjectMirador#15

See merge request iiif/mirador-video-annotation!8
- read all body to find images
- show both FragmentSelector and SVG Selector
Creating component for manifest detail
…ideo'

WIP thumbnail on accordion.

See merge request iiif/mirador-video-annotation!17
Reorganize import for MUI5
Theme, style and classes migrating
Theme, style and classes migrating
…-video-stable'

Fix ref forwarding from Mirador to Mirador CanvasAnnotationPlugin

See merge request iiif/mirador/mirador-video!20
@geourjoa geourjoa marked this pull request as draft February 12, 2024 15:15
@geourjoa geourjoa changed the title Mui5 annotation on video stable Video support with MUI5 React 17 Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants