【问题标题】:Why use multiple hyphens for WebVTT cue?为什么对 WebVTT 提示使用多个连字符?
【发布时间】:2019-03-20 01:35:01
【问题描述】:

我在看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-video caption webvtt


    【解决方案1】:

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

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-04-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-28
      • 2016-10-26
      • 2021-10-31
      • 1970-01-01
      相关资源
      最近更新 更多