跳到主要内容

💥 track

定时字幕

场景用例

<!-- HTML 代码 -->

属性

属性(Attribute)说明(Description)值(Value)
defaultEnable the track if no other text track is more suitableBoolean attribute
kindThe type of text track"subtitles"; "captions"; "descriptions"; "chapters"; "metadata"
labelUser-visible labelText
srcAddress of the resourceValid non-empty URL potentially surrounded by spaces
srclangLanguage of the text trackValid BCP 47 language tag

事件

事件属性(Attribute)说明(Description)事件(Event)目标对象(target)接口(Interface)
oncuechange-cuechangetrack elementsEvent
onload-loadtrack elementsEvent
onerror-errortrack elementsEvent

参考