翻译:羊牧东岭
原文地址:https://iiif.io/api/cookbook/recipe/0026-toc-opera/
用例
与书籍一样,音视频内容也可以划分成一个个代表着感兴趣单元的部分。为用户提供对这些单个单元的便捷访问是非常重要的。因此,考虑到仅使用播放器滑块很难跳转到指定位置,如果将音视频项目的结构以目录形式来体现,会更加便于导航。
歌剧是一种以音乐为主导的戏剧形式。歌剧的录像就是结构化音视频的一个很好的例子:一部歌剧由若干幕组成;每一幕由若干场组成;一场之中可能包含多个咏叹调。Range(范围)非常适合于模拟歌剧的层次结构。
实施说明
我们的具体实现类似于书籍的章节,只是嵌套关系可能更深。
我们结构中的 Range 使用时间维度的媒体片段(例如“t=0,100”)来指向同一画布(Canvas)的不同部分。这与 Book Chapters 方案形成了对比,在 Book Chapters 方案中,每个 Range 是使用空间维度的媒体片段,分别指向不同的画布(Canvas)。
当结束时间与画布本身的结束时间重合时,时间维度的媒体片段不再需要明确指定结束时间,就如本例中 Atto Secondo 部分的示例。
限制因素
结构中的 Leaf Range 节点是线性播放的,因此它们应该是连续的,否则其间隙会造成短暂的静音,导致用户体验不佳。
例子
如下所示,这部歌剧涵盖了画布(Canvas)的整个长度,并为两幕而分为两个范围(Range)。Atto Primo部分继续划分,首先创建了一个范围(Range)对应前奏曲和第一首歌曲,然后为该幕的其余部分创建了另一个范围(Range)。简单起见,本例未对 Atto Secondo 部分予以划分。
JSON-LD | 在Universal Viewer中查看
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "https://iiif.io/api/cookbook/recipe/0026-toc-opera/manifest.json",
"type": "Manifest",
"label": {
"it": [
"L'Elisir D'Amore"
],
"en": [
"The Elixir of Love"
]
},
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0026-toc-opera/canvas/1",
"type": "Canvas",
"width": 1920,
"height": 1080,
"duration": 7278.422,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0026-toc-opera/canvas/1/annotation_page/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0026-toc-opera/canvas/1/annotation_page/1/annotation/1",
"type": "Annotation",
"motivation": "painting",
"target": "https://iiif.io/api/cookbook/recipe/0026-toc-opera/canvas/1",
"body": {
"id": "https://fixtures.iiif.io/video/indiana/donizetti-elixir/vae0637_accessH264_low.mp4",
"type": "Video",
"format": "video/mp4",
"height": 1080,
"width": 1920,
"duration": 7278.422
}
}
]
}
]
}
],
"structures": [
{
"type": "Range",
"id": "https://iiif.io/api/cookbook/recipe/0026-toc-opera/range/1",
"label": {
"it": [
"Gaetano Donizetti, L'Elisir D'Amore"
]
},
"items": [
{
"type": "Range",
"id": "https://iiif.io/api/cookbook/recipe/0026-toc-opera/range/2",
"label": {
"it": [
"Atto Primo"
]
},
"items": [
{
"type": "Range",
"id": "https://iiif.io/api/cookbook/recipe/0026-toc-opera/range/3",
"label": {
"it": [
"Preludio e Coro d'introduzione – Bel conforto al mietitore"
]
},
"items": [
{
"type": "Canvas",
"id": "https://iiif.io/api/cookbook/recipe/0026-toc-opera/canvas/1#t=0,302.05"
}
]
},
{
"type": "Range",
"id": "https://iiif.io/api/cookbook/recipe/0026-toc-opera/range/4",
"label": {
"en": [
"Remainder of Atto Primo"
]
},
"items": [
{
"type": "Canvas",
"id": "https://iiif.io/api/cookbook/recipe/0026-toc-opera/canvas/1#t=302.05,3971.24"
}
]
}
]
},
{
"type": "Range",
"id": "https://iiif.io/api/cookbook/recipe/0026-toc-opera/range/5",
"label": {
"it": [
"Atto Secondo"
]
},
"items": [
{
"type": "Canvas",
"id": "https://iiif.io/api/cookbook/recipe/0026-toc-opera/canvas/1#t=3971.24"
}
]
}
]
}
]
}
相关专题
- 最简单的清单 - 视频
- 国际化和多语言价值观-配方解释像标签这部歌剧在文本中使用多种语言。
- 目录(范围) - 书籍章节
- 单个画布上多个 A/V 文件的目录- 本示例中的相同歌剧,但扩展为现实世界示例。
- 多个画布上多个 A/V 文件的目录- 本示例中的相同歌剧,但扩展为跨多个画布的音频格式的真实示例