Fe-interview: [html] 第118天 有使用过HTML5的跟踪元素吗?说说你对它的理解

Created on 11 Aug 2019  ·  3Comments  ·  Source: haizlin/fe-interview

第118天 有使用过HTML5的跟踪元素吗?说说你对它的理解

html

Most helpful comment

“跟踪元素”这个名字不是很恰当。虽然“跟踪”和“轨道”都可以体现出其包含的数据随时间变化,但考虑在已有的术语中,"audio track" 被翻译成 “音频轨道”/“音轨”,对于 <track> 元素(包含的内容为“text track”)的翻译应该为“轨道元素”/“文字轨道元素”更为恰当(MDN 也采取了“轨道”这个名称)。

All 3 comments

没用过,查询资料得知,跟踪元素向视频和音频提供字幕和说明文字的方法

<video width="320" height="240" controls>
  <source src="forrest_gump.mp4" type="video/mp4">
  <source src="forrest_gump.ogg" type="video/ogg">
  <track src="subtitles_en.vtt" kind="subtitles" srclang="en" label="English">
  <track src="subtitles_no.vtt" kind="subtitles" srclang="no" label="Norwegian">
</video>

第一次了解 跟踪元素 向视频和音频提供字幕和说明文字的方法
文档链接https://www.html5rocks.com/zh/tutorials/track/basics/

“跟踪元素”这个名字不是很恰当。虽然“跟踪”和“轨道”都可以体现出其包含的数据随时间变化,但考虑在已有的术语中,"audio track" 被翻译成 “音频轨道”/“音轨”,对于 <track> 元素(包含的内容为“text track”)的翻译应该为“轨道元素”/“文字轨道元素”更为恰当(MDN 也采取了“轨道”这个名称)。

Was this page helpful?
0 / 5 - 0 ratings

Related issues

haizhilin2013 picture haizhilin2013  ·  3Comments

haizhilin2013 picture haizhilin2013  ·  3Comments

haizhilin2013 picture haizhilin2013  ·  3Comments

haizhilin2013 picture haizhilin2013  ·  3Comments

haizhilin2013 picture haizhilin2013  ·  3Comments