Skip to content

Instantly share code, notes, and snippets.

@mcwhitaker
Created February 10, 2021 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcwhitaker/2fd887ddaf4bcca137db68103cffdc31 to your computer and use it in GitHub Desktop.
Save mcwhitaker/2fd887ddaf4bcca137db68103cffdc31 to your computer and use it in GitHub Desktop.
option for dealing with multiple subtitles
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "https://preview.iiif.io/cookbook/0219-using-caption-file/recipe/0219-using-caption-file/manifest.json",
"type": "Manifest",
"label": {
"en": [
"Lunchroom Manners"
]
},
"items": [
{
"id": "https://preview.iiif.io/cookbook/0219-using-caption-file/recipe/0219-using-caption-file/canvas",
"type": "Canvas",
"height": 360,
"width": 480,
"duration": 572.034,
"items": [
{
"id": "https://preview.iiif.io/cookbook/0219-using-caption-file/recipe/0219-using-caption-file/canvas/page",
"type": "AnnotationPage",
"items": [
{
"id": "https://preview.iiif.io/cookbook/0219-using-caption-file/recipe/0219-using-caption-file/canvas/page/annotation",
"type": "Annotation",
"motivation": "painting",
"body": [
{
"id": "https://fixtures.iiif.io/video/indiana/lunchroom_manners/high/lunchroom_manners_1024kb.mp4",
"type": "Video",
"height": 360,
"width": 480,
"duration": 572.034,
"format": "video/mp4"
},
{
"type": "Choice",
"items": [
{
"id":"https://fixtures.iiif.io/video/indiana/lunchroom_manners/lunchroom_manners.vtt",
"type": "Text",
"format": "text/vtt",
"label": {
"en": [
"Captions in WebVTT format"
]
},
"language": "en"
},
{
"id":"https://fixtures.iiif.io/video/indiana/lunchroom_manners/lunchroom_manners_fr.vtt",
"type": "Text",
"format": "text/vtt",
"label": {
"fr": [
"Légendes au format WebVTT"
]
},
"language": "fr"
}
]
}
],
"target": "https://preview.iiif.io/cookbook/0219-using-caption-file/recipe/0219-using-caption-file/canvas"
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment