Create a gist now

Instantly share code, notes, and snippets.

@jronallo /canvas.json Secret
Last active Feb 5, 2017

What would you like to do?
Sample output of possible IIIF AV Canvas from https://github.com/jronallo/abrizer
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "http://localhost:8088/v/pets/canvas.json",
"type": "Canvas",
"width": 720,
"height": 540,
"duration": 35.603,
"thumbnail": {
"id": "http://localhost:8088/v/pets/poster.jpg",
"type": "Image",
"format": "image/jpeg"
},
"media": [
{
"type": "Annotation",
"motivation": "painting",
"target": "http://localhost:8088/v/pets/canvas.json",
"body": {
"type": "Choice",
"items": [
{
"id": "http://localhost:8088/v/pets/fmp4/stream.mpd",
"type": "Video",
"format": "application/dash+xml",
"width": 720,
"height": 540
},
{
"id": "http://localhost:8088/v/pets/hls/master.m3u8",
"type": "Video",
"format": "application/x-mpegURL",
"width": 720,
"height": 540
},
{
"id": "http://localhost:8088/v/pets/progressive-vp9.webm",
"type": "Video",
"format": "video/webm",
"width": 720,
"height": 540
},
{
"id": "http://localhost:8088/v/pets/progressive.mp4",
"type": "Video",
"format": "video/mp4",
"width": 640,
"height": 480
}
],
"seeAlso": [
{
"id": "http://localhost:8088/v/pets/vtt/captions.vtt",
"format": "application/webvtt",
"label": "English captions",
"language": "en",
"_comments": "How make explicit how whether to use these as captions or subtitles, descriptions, or chapters?"
},
{
"id": "http://localhost:8088/v/pets/sprites/sprites.vtt",
"format": "application/webvtt",
"label": "image sprite metadata",
"_comments": "How to include resources like video image sprites like those created by https://github.com/jronallo/video_sprites and used by various players?"
}
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment