首页 > 解决方案 > 为什么对 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.

原来的意思是它会在同一时间范围内分成两张标题卡和三张?如果是这样的话,为什么不把它分成更多的提示而不是一个带有更多连字符的提示呢?或者它是否意味着在标题卡中有多行,一次全部显示?

标签: html5-videocaptionwebvtt

解决方案


抓住一个玩家,每一个破折号都是一条新线:

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

在此处输入图像描述

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


推荐阅读