sampotts / plyr

A simple HTML5, YouTube and Vimeo player
https://plyr.io
MIT License
26.6k stars 2.94k forks source link

Preview Thumbnails via source setter #1369

Open sampotts opened 5 years ago

sampotts commented 5 years ago

It should be possible to set the preview thumbs via the source setter so that they are easily updated along with the media source and tracks.

Reqrefusion commented 1 year ago

And there should be a separate source section within the pictures. Like:

plyr.source = {
  type: "video",
  sources: [{src:"https://some.video.mp4", type: "video/mp4"}],
  poster: "https://some.poster.jpg",
  previewThumbnails: { src: "https://some.thumbnail.webvtt", imageSrc: "https://some.com/images/" }
};

Or is there any other way for this? I need something like this because I have to host all the media files on other servers.