jwplayer / jwplayer-react-native

MIT License
32 stars 9 forks source link

[ASK] Are video thumbnails tracks supported? #57

Closed fdobre closed 4 months ago

fdobre commented 4 months ago

Are video tracks with thumbnails supported?

tracks: [{
                file: "https://cdn.jwplayer.com/strips/xzxKu91o-120.vtt",
                label: 'track1',
                default: true,
                kind: "thumbnails",
              }].

Web seems to support such feature when user moves the current position of timeslider.

Screenshot 2024-07-09 at 20 11 24
Jmilham21 commented 4 months ago

Hi @fdobre, yes you can use thumbnail tracks. See the below config to be used in our Example app.

This should also work in legacy configs on both platforms.

  let jwConfig = {
    "title": "Single Inline Linear Preroll",
    "playlist": [
      {
        "file": "https://content.bitsontherun.com/videos/q1fx20VZ-52qL9xLP.mp4",
        "tracks": [
          {
            file: "https://cdn.jwplayer.com/strips/xzxKu91o-120.vtt",
            label: 'track1',
            default: true,
            kind: "thumbnails",
          }
        ]
      }
    ]
  }
fdobre commented 4 months ago

@Jmilham21 Tested, it works great! Thank you!