The track element is used as a child of the media elements audio and video.
It lets you specify timed text tracks (or time-based data), for example to automatically handle subtitles.
The tracks are formatted in WebVTT format (.vtt files) — Web Video Text Tracks or Timed Text Markup Language (TTML).
<video controls width="250" src="/media/examples/friday.mp4"> <track default kind="captions"srclang="en"src="/media/examples/friday.vtt"/> Sorry, your browser doesn't support embedded videos.</video>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)