Web 播放器 SDK

縮圖跳轉

(以下內容均翻譯自英文版文件,最新資訊及內容敬請切換至英文語系參考原文)

 

縮圖跳轉功能可讓使用者快速瀏覽較長的影片,當他們將游標停在進度列上或跳轉影片時,會顯示與特定時間戳記相關的預覽影像。

 

要啟用縮圖跳轉,請在影片源配置中新增包含縮圖 URL 的 VTT 檔案:

const player = createPlayer('player-container', {
  license, // license is not required when testing in local development environment
  source: [
    {
      type: 'application/dash+xml',
      src: dashUrl,
    },
    {
      type: 'application/x-mpegurl',
      src: hlsUrl,
    },
    {
      type: 'thumbnail',
      src: 'https://example.com/thumbnails.vtt'
    },
  ],
})

更新於