Skip to content

zengde/plyr-plugin-thumbnail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plyr-plugin-thumbnail

a easy to use preview thumbnail plugin of plyr player,not use the default preview thumbnail with vtt files

demo

screenshot

Use

1.use modern browser

2.add plyr-plugin-thumbnail.js after main plyr js

<script src="path/to/plyr.js"></script>
<script src="path/to/plyr-plugin-thumbnail.js"></script>
<script>
    const player = new Plyr('#player');
</script>

3.add thumbnail config

// your other configs
thumbnail:{
    enabled:true,
    pic_num: 184,// total thumbnail numbers
    width: 178,// per thumbnail item width
    height: 100,// per thumbnail item height
    col: 7,// per thumbnail image columns
    row: 7,// per thumbnail image rows
    offsetX:0,
    offsetY:0,
    urls: ['https://cdn.plyr.io/static/demo/thumbs/100p-00001.jpg',
    'https://cdn.plyr.io/static/demo/thumbs/100p-00002.jpg',
    'https://cdn.plyr.io/static/demo/thumbs/100p-00003.jpg',
    'https://cdn.plyr.io/static/demo/thumbs/100p-00004.jpg'] // thumbnail images
},

4.mouse hover to progress to see preview image

Other Plugins

  1. video capture
  2. preview thumbnails
  3. generate thumbnail files

About

a easy to use preview thumbnail plugin of plyr player

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published