为什么要对WebVTT提示使用多个连字符?

时间:2019-03-19 15:53:36

标签: html5-video caption webvtt

我在看https://developer.mozilla.org/en-US/docs/Web/API/WebVTT_API

相关示例是这样:

WEBVTT - This file has cues.

14
00:01:14.815 --> 00:01:18.114
- What?
- Where are we now?

15
00:01:18.171 --> 00:01:20.991
- This is big bat country.

16
00:01:21.058 --> 00:01:23.868
- [ Bats Screeching ]
- They won't get in your hair. They're after the bugs.

我不明白为什么我会用一个连字符They won't get in your hair. They're after the bugs而不是这样做:

- [ Bats Screeching ]
- They won't get in your hair.
- They're after the bugs.

最初的意思是它将在同一时间范围内分成两张标题卡,而不是三张吗?如果是这样,为什么不将其分解为更多的提示,而不是包含更多连字符的提示?还是要在标题卡中同时显示多行?

1 个答案:

答案 0 :(得分:0)

抓住玩家的每个破折号是换行符:

00:01.000 --> 00:10.000
- It will do something.
- It will do another thing.

enter image description here

因此,由工程师决定什么是合适的句子长度以及是否需要多行。