时间轴标签
使用TimelineLabels标签对视频帧进行分类。可以是单帧或一段连续帧。
首先选择一个标签,然后单击一次标注单个帧。点击并拖动可标注多个帧。

与控制标签一起使用。
提示
您可以通过在标签上使用timelineHeight参数来增加时间轴的高度。
参数
| 参数 | 类型 | 描述 |
|---|---|---|
| name | string |
Name of the element |
| toName | string |
Name of the video element |
结果参数
| 名称 | 类型 | 描述 |
|---|---|---|
| value | Object |
|
| value.ranges | Array.<object> |
Array of ranges, each range is an object with start and end properties. One range per region. |
| [value.timelinelabels] | Array.<string> |
Regions are created by TimelineLabels, and the corresponding label is listed here. |
示例JSON
{
"value": {
"ranges": [{"start": 3, "end": 5}],
"timelinelabels": ["Moving"]
}
}
示例
<View>
<Header>Label timeline spans:</Header>
<Video name="video" value="$video" />
<TimelineLabels name="timelineLabels" toName="video">
<Label value="Nothing" background="#944BFF"/>
<Label value="Movement" background="#98C84E"/>
</TimelineLabels>
</View>