Skip to content

Commit

Permalink
Expose iiif video info for MAE
Browse files Browse the repository at this point in the history
Publish in 1.0.12
  • Loading branch information
geourjoa committed Nov 29, 2024
1 parent ac34fe9 commit c6ccf03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mirador-video",
"version": "1.0.11",
"version": "1.0.12",
"description": "Mirador IIIF Viewer with annotation on video support",
"main": "dist/cjs/src/index.js",
"module": "dist/es/src/index.js",
Expand Down
3 changes: 2 additions & 1 deletion src/components/VideoViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ export class VideoViewer extends Component {
maxHeight: '100%',
maxWidth: '100%',
width: playerStyle.width,
position: 'relative',

Check failure on line 200 in src/components/VideoViewer.js

View workflow job for this annotation

GitHub Actions / build (18.x)

Expected object keys to be in insensitive ascending order. 'position' should be before 'width'

Check failure on line 200 in src/components/VideoViewer.js

View workflow job for this annotation

GitHub Actions / build (22.x)

Expected object keys to be in insensitive ascending order. 'position' should be before 'width'
}}
>
<ReactPlayer
Expand All @@ -220,7 +221,7 @@ export class VideoViewer extends Component {
modestbranding: 0,
},
}}
iiifVideoInfos={{ height: video.getHeight(), width: video.getWidth() }}
iiifVideoInfos={video}
style={{
aspectRatio: `${videoAspectRatio}`,
border: debug ? '6px solid pink' : 'none', // 'absolute' or 'block
Expand Down

0 comments on commit c6ccf03

Please sign in to comment.