メインコンテンツまでスキップ

Thumbnail Seeking

Thumbnail seeking allows users to quickly navigate through longer videos by displaying preview images associated with specific timestamps as they hover over the progress bar or seek through the video.

To enable thumbnail seeking, add a VTT file with thumbnail image URLs to the sourceConfig :

if let thumbnailString = "https://example/web.vtt", let thumbnailUrl = URL(string: thumbnailString) {
sourceConfig.thumbnailTrack = UniThumbnailTrack(
url: thumbnailUrl,
label: "thumbnail",
identifier: UUID().uuidString,
isDefaultTrack: false
)
}