Skip to content

zengde/plyr-plugin-capture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plyr-plugin-capture

a capture plugin of plyr player

demo

screenshot

Use

1.use modern browser

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

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

3.add capture to controls and capture label to i18n

// your other configs
controls: [
    // your other controls
    'capture'
],
i18n:{
    // your other i18n
    capture: '截图'
}

4.click capture button to download capture image

About

a capture plugin of plyr player

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published