Skip to content

Commit c24d847

Browse files
committed
first version of updated simplest video recipe for v4
1 parent 16875c4 commit c24d847

File tree

5 files changed

+87
-24
lines changed

5 files changed

+87
-24
lines changed

recipe/0003-mvm-video/index.md

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,14 @@ viewers:
1212
- Aviary
1313
- Theseus
1414
- Glycerine Viewer
15+
v4-viewers:
16+
- Mirador
17+
- UV
18+
- Aviary
1519
topic:
1620
- basic
1721
- AV
1822
code:
1923
- iiif-prezi3
2024
---
2125

22-
23-
## Use Case
24-
25-
The simplest viable manifest for video content. This pattern presents a single video file in a IIIF Presentation resource.
26-
27-
## Implementation Notes
28-
29-
The implementation is identical to the [image example][0001], except that the content is video and the canvas has the `duration` property instead of the `height` and `width` properties. The value of the `duration` property [must be a floating point number](https://iiif.io/api/presentation/3.0/#duration). If the duration value you have is an integer, it therefore needs to be written with at least a decimal point and a trailing zero: `1985.0` rather than `1985`.
30-
31-
## Example
32-
33-
This example shows a Manifest with a single Canvas that lasts for 572 seconds, or just under 10 minutes. It has a single video file (lunchroom_manners_1024kb.mp4) which is associated with it. The mp4 also has a duration of 572 seconds.
34-
35-
{% include manifest_links.html viewers="UV, Mirador, Clover, Ramp, Aviary, Theseus, Glycerine Viewer" manifest="manifest.json" %}
36-
37-
{% include jsonviewer.html src="manifest.json" %}
38-
39-
# Related Recipes
40-
41-
* [Simplest Manifest - Image][0001] and [Simplest Manifest - Audio][0002] are equivalent to this example.
42-
43-
{% include acronyms.md %}
44-
{% include links.md %}

recipe/0003-mvm-video/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"@context": "http://iiif.io/api/presentation/3/context.json",
33
"id": "{{ id.url }}",
44
"type": "Manifest",
5-
"label": { "en": [ "Video Example 3" ] },
5+
"label": { "en": [ "Simplest Video Example (IIIF Presentation 3)" ] },
66
"items": [
77
{
88
"id": "{{ id.path }}/canvas",

recipe/0003-mvm-video/recipe.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## Use Case
2+
3+
The simplest viable manifest for video content. This pattern presents a single video file in a IIIF Presentation resource.
4+
5+
## Implementation Notes
6+
7+
The implementation is identical to the [image example][0001], except that the content is video and the canvas has the `duration` property additional to the `height` and `width` properties. The value of the `duration` property [must be a floating point number](https://iiif.io/api/presentation/3.0/#duration). If the duration value you have is an integer, it therefore needs to be written with at least a decimal point and a trailing zero: `1985.0` rather than `1985`.
8+
9+
## Example
10+
11+
This example shows a Manifest with a single Canvas that lasts for 572 seconds, or just under 10 minutes. It has a single video file (lunchroom_manners_1024kb.mp4) which is associated with it. The mp4 also has a duration of 572 seconds.
12+
13+
{% include manifest_links.html viewers="UV, Mirador, Clover, Ramp, Aviary, Theseus, Glycerine Viewer" manifest="manifest.json" %}
14+
15+
{% include jsonviewer.html src="manifest.json" %}
16+
17+
# Related Recipes
18+
19+
* [Simplest Manifest - Image][0001] and [Simplest Manifest - Audio][0002] are equivalent to this example.
20+
21+
{% include acronyms.md %}
22+
{% include links.md %}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"@context": "http://iiif.io/api/presentation/4/context.json",
3+
"id": "{{ id.url }}",
4+
"type": "Manifest",
5+
"label": { "en": [ "Simplest Video Example (IIIF Presentation 4)" ] },
6+
"items": [
7+
{
8+
"id": "{{ id.path }}/canvas",
9+
"type": "Canvas",
10+
"height": 360,
11+
"width": 480,
12+
"duration": 572.034,
13+
"items": [
14+
{
15+
"id": "{{ id.path }}/canvas/page",
16+
"type": "AnnotationPage",
17+
"items": [
18+
{
19+
"id": "{{ id.path }}/canvas/page/annotation",
20+
"type": "Annotation",
21+
"motivation": "painting",
22+
"body": {
23+
"id": "https://fixtures.iiif.io/video/indiana/lunchroom_manners/high/lunchroom_manners_1024kb.mp4",
24+
"type": "Video",
25+
"height": 360,
26+
"width": 480,
27+
"duration": 572.034,
28+
"format": "video/mp4"
29+
},
30+
"target": "{{ id.path }}/canvas"
31+
}
32+
]
33+
}
34+
]
35+
}
36+
]
37+
}

recipe/0003-mvm-video/v4/recipe.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## Use Case
2+
3+
You have some digital or digitized video that you would like to present on the web using IIIF.
4+
5+
## Implementation Notes
6+
7+
The implementation is identical to the [image example][0001], except that the content is video and the canvas has the `duration` property additional to the `height` and `width` properties. The value of the `duration` property [must be a floating point number](https://iiif.io/api/presentation/4.0/model/#duration). If the duration value you have is an integer, it therefore needs to be written with at least a decimal point and a trailing zero: `1985.0` rather than `1985`.
8+
9+
## Example
10+
11+
This example shows a Manifest with a single Canvas that lasts for 572 seconds, or just under 10 minutes. It has a single video file (lunchroom_manners_1024kb.mp4) which is associated with it. The mp4 also has a duration of 572 seconds.
12+
13+
{% include manifest_links.html viewers="UV, Mirador, Clover, Ramp, Aviary, Theseus, Glycerine Viewer" manifest="manifest.json" %}
14+
15+
{% include jsonviewer.html src="manifest.json" %}
16+
17+
# Related Recipes
18+
19+
* [Simplest Manifest - Image][0001] for the most minimal image Manifest
20+
* [Simplest Manifest - Audio][0002] for the most minimal audio Manifest
21+
22+
{% include acronyms.md %}
23+
{% include links.md %}

0 commit comments

Comments
 (0)