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

File download component #132

Merged
merged 4 commits into from
Jun 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const App = () => {

return (
<IIIFPlayer manifestUrl={manifestUrl}>
<MediaPlayer />
<MediaPlayer enableFileDownload={false} />
<StructuredNavigation />
<Transcript {...props} />
</IIIFPlayer>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "http://localhost:6060/manifests/rendering-manifest.json",
"id": "http://localhost:6060/manifests/invalid-annotation.json",
"type": "Manifest",
"label": {
"en": [
Expand All @@ -9,18 +9,18 @@
},
"items": [
{
"id": "http://localhost:6060/manifests/rendering-manifest/canvas/1",
"id": "http://localhost:6060/manifests/invalid-annotation/canvas/1",
"type": "Canvas",
"height": 360,
"width": 480,
"duration": 572.034,
"items": [
{
"id": "http://localhost:6060/manifests/rendering-manifest/canvas/1/page/1",
"id": "http://localhost:6060/manifests/invalid-annotation/canvas/1/page/1",
"type": "AnnotationPage",
"items": [
{
"id": "http://localhost:6060/manifests/rendering-manifest/canvas/1/page/1/annotation/1",
"id": "http://localhost:6060/manifests/invalid-annotation/canvas/1/page/1/annotation/1",
"type": "Annotation",
"motivation": "painting",
"body": [
Expand All @@ -33,15 +33,19 @@
"type": "Video",
"format": "video/mp4",
"label": {
"en": ["High"]
"en": [
"High"
]
}
},
{
"id": "http://localhost:6060/lunchroom_manners/medium/lunchroom_manners_512kb.mp4",
"type": "Video",
"format": "video/mp4",
"label": {
"en": ["Medium"]
"en": [
"Medium"
]
}
}
]
Expand All @@ -51,30 +55,32 @@
"type": "Text",
"format": "text/vtt",
"label": {
"en": ["Captions in WebVTT format"]
"en": [
"Captions in WebVTT format"
]
},
"language": "en"
}
],
"target": "http://localhost:6060/manifests/rendering-manifest/canvas/1"
"target": "http://localhost:6060/manifests/invalid-annotation/canvas/1"
}
]
}
],
"annotations": [
{
"id": "http://localhost:6060/manifests/rendering-manifest/canvas/1/page/2",
"id": "http://localhost:6060/manifests/invalid-annotation/canvas/1/page/2",
"type": "AnnotationPage",
"items": [
{
"id": "http://localhost:6060/manifests/rendering-manifest/canvas/1/page/2/annotation/1",
"id": "http://localhost:6060/manifests/invalid-annotation/canvas/1/page/2/annotation/1",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "http://localhost:6060/lunchroom_manners/lunchroom_manners_poster.jpg",
"type": "Image"
},
"target": "http://localhost:6060/manifests/rendering-manifest/canvas/1"
"target": "http://localhost:6060/manifests/invalid-annotation/canvas/1"
}
]
}
Expand All @@ -87,4 +93,4 @@
"type": "Image"
}
]
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "https://samvera-labs.github.io/iiif-react-media-player/manifests/rendering-manifest.json",
"id": "https://samvera-labs.github.io/iiif-react-media-player/manifests/invalid-annotation.json",
"type": "Manifest",
"label": {
"en": [
Expand All @@ -9,18 +9,18 @@
},
"items": [
{
"id": "https://samvera-labs.github.io/iiif-react-media-player/manifests/rendering-manifest/canvas/1",
"id": "https://samvera-labs.github.io/iiif-react-media-player/manifests/invalid-annotation/canvas/1",
"type": "Canvas",
"height": 360,
"width": 480,
"duration": 572.034,
"items": [
{
"id": "https://samvera-labs.github.io/iiif-react-media-player/manifests/rendering-manifest/canvas/1/page/1",
"id": "https://samvera-labs.github.io/iiif-react-media-player/manifests/invalid-annotation/canvas/1/page/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://samvera-labs.github.io/iiif-react-media-player/manifests/rendering-manifest/canvas/1/page/1/annotation/1",
"id": "https://samvera-labs.github.io/iiif-react-media-player/manifests/invalid-annotation/canvas/1/page/1/annotation/1",
"type": "Annotation",
"motivation": "painting",
"body": [
Expand All @@ -33,15 +33,19 @@
"type": "Video",
"format": "video/mp4",
"label": {
"en": ["High"]
"en": [
"High"
]
}
},
{
"id": "https://samvera-labs.github.io/iiif-react-media-player/lunchroom_manners/medium/lunchroom_manners_512kb.mp4",
"type": "Video",
"format": "video/mp4",
"label": {
"en": ["Medium"]
"en": [
"Medium"
]
}
}
]
Expand All @@ -51,30 +55,32 @@
"type": "Text",
"format": "text/vtt",
"label": {
"en": ["Captions in WebVTT format"]
"en": [
"Captions in WebVTT format"
]
},
"language": "en"
}
],
"target": "https://samvera-labs.github.io/iiif-react-media-player/manifests/rendering-manifest/canvas/1"
"target": "https://samvera-labs.github.io/iiif-react-media-player/manifests/invalid-annotation/canvas/1"
}
]
}
],
"annotations": [
{
"id": "https://samvera-labs.github.io/iiif-react-media-player/manifests/rendering-manifest/canvas/1/page/2",
"id": "https://samvera-labs.github.io/iiif-react-media-player/manifests/invalid-annotation/canvas/1/page/2",
"type": "AnnotationPage",
"items": [
{
"id": "https://samvera-labs.github.io/iiif-react-media-player/manifests/rendering-manifest/canvas/1/page/2/annotation/1",
"id": "https://samvera-labs.github.io/iiif-react-media-player/manifests/invalid-annotation/canvas/1/page/2/annotation/1",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://samvera-labs.github.io/iiif-react-media-player/lunchroom_manners/lunchroom_manners_poster.jpg",
"type": "Image"
},
"target": "https://samvera-labs.github.io/iiif-react-media-player/manifests/rendering-manifest/canvas/1"
"target": "https://samvera-labs.github.io/iiif-react-media-player/manifests/invalid-annotation/canvas/1"
}
]
}
Expand All @@ -87,4 +93,4 @@
"type": "Image"
}
]
}
}
2 changes: 0 additions & 2 deletions docs/build/bundle.42dd1c4d.js

This file was deleted.

2 changes: 2 additions & 0 deletions docs/build/bundle.b3664b96.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ object-assign
* @license MIT
*/

/*!
* mime-db
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015-2022 Douglas Christopher Wilson
* MIT Licensed
*/

/*!
* regjsgen 0.5.2
* Copyright 2014-2020 Benjamin Tan <https://ofcr.se/>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
</head>
<body>
<div id="rsg-root"></div>
<script src="build/bundle.42dd1c4d.js"></script>
<script src="build/bundle.b3664b96.js"></script>
</body>
</html>
96 changes: 96 additions & 0 deletions docs/manifests/development/invalid-annotation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "http://localhost:6060/manifests/invalid-annotation.json",
"type": "Manifest",
"label": {
"en": [
"Beginning Reponsibility: Lunchroom Manners [motion picture] Coronet Films"
]
},
"items": [
{
"id": "http://localhost:6060/manifests/invalid-annotation/canvas/1",
"type": "Canvas",
"height": 360,
"width": 480,
"duration": 572.034,
"items": [
{
"id": "http://localhost:6060/manifests/invalid-annotation/canvas/1/page/1",
"type": "AnnotationPage",
"items": [
{
"id": "http://localhost:6060/manifests/invalid-annotation/canvas/1/page/1/annotation/1",
"type": "Annotation",
"motivation": "painting",
"body": [
{
"type": "Choice",
"choiceHint": "user",
"items": [
{
"id": "http://localhost:6060/lunchroom_manners/high/lunchroom_manners_1024kb.mp4",
"type": "Video",
"format": "video/mp4",
"label": {
"en": [
"High"
]
}
},
{
"id": "http://localhost:6060/lunchroom_manners/medium/lunchroom_manners_512kb.mp4",
"type": "Video",
"format": "video/mp4",
"label": {
"en": [
"Medium"
]
}
}
]
},
{
"id": "http://localhost:6060/lunchroom_manners/lunchroom_manners.vtt",
"type": "Text",
"format": "text/vtt",
"label": {
"en": [
"Captions in WebVTT format"
]
},
"language": "en"
}
],
"target": "http://localhost:6060/manifests/invalid-annotation/canvas/1"
}
]
}
],
"annotations": [
{
"id": "http://localhost:6060/manifests/invalid-annotation/canvas/1/page/2",
"type": "AnnotationPage",
"items": [
{
"id": "http://localhost:6060/manifests/invalid-annotation/canvas/1/page/2/annotation/1",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "http://localhost:6060/lunchroom_manners/lunchroom_manners_poster.jpg",
"type": "Image"
},
"target": "http://localhost:6060/manifests/invalid-annotation/canvas/1"
}
]
}
]
}
],
"thumbnail": [
{
"id": "http://localhost:6060/lunchroom_manners/lunchroom_manners_poster.jpg",
"type": "Image"
}
]
}
Loading