Tracks

Introduction
Tracks are File Objects with a kind
of subtitles
, chapters
, or thumbnails
.
They are used to provide additional information about your media, and to enable features that your users have come to expect from top-tier players.
Media objects can contain one or more Tracks.
Usage
Tracks are placed inside a <video>
1 tag or passed to your Player.
Kinds
Tracks can be one of the following kinds:
subtitles
chapters
thumbnails
Subtitles
Subtitles are essential for accessibility and they enable viewers to watch video and audio media without sound.
They are available in text/vtt
and text/srt
formats.
See the Subtitle Tasks section for more information about creating new subtitle tracks.
Subtitle Tasks
Chapters
Chapters are used to display logical chapter markers for video and audio media.
They are available in text/vtt
format.
See the Chapter Tasks section for more information about creating new chapter tracks.
Chapter Tasks
Thumbnails
A thumbnail track is used to provide preview images as your viewer hovers over the video player progress bar.2
Behind-the-scenes, ittybit will generate a sprite sheet containing all the frames in a grid.
The track then tells the player which section of the sprite sheet to display at any given time.
This approach is more efficient than providing a separate image for each frame because it reduces the number of HTTP requests, and the sprite sheet can be cached by the browser reducing or eliminating latency for subsequent frames.
Thumbnail tracks are available in text/vtt
format.
See the Thumbnail Tasks section for more information about creating new thumbnail tracks.
Thumbnail Tasks
Footnotes
-
Native
<audio>
tags do not support subtitles but you can use a<video>
tag with an audio source to playback the file and display the subtitles e.g.<video src="podcast-001.mp3"><track kind="subtitles" src="podcast-001.vtt"></video>
↩ -
Browsers don't natively understand
kind="thumbnails"
and instead look for tracks withkind="metadata"
. This is a rare occasion where we depart from following a standard naming convention because 1. "thumbnails" is a much more descriptive name, and 2. Metadata is a separate concept in our API. ↩