feat: add markers (#2386)

Co-authored-by: fengshuo <fengshuo@bilibili.com>
This commit is contained in:
ForeverSc
2022-02-12 17:35:52 +08:00
committed by GitHub
parent 01c5428fc4
commit 4632614ced
6 changed files with 161 additions and 0 deletions

View File

@ -65,6 +65,23 @@ import toggleClass from './toggle-class';
// Prevent Vimeo blocking plyr.io demo site
referrerPolicy: 'no-referrer',
},
markers: {
enabled: true,
points: [
{
time: 10,
tip: 'first marker',
},
{
time: 40,
tip: 'second marker',
},
{
time: 120,
tipHTML: '<strong>third</strong> marker',
},
],
},
});
// Expose for tinkering in the console