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

@ -391,6 +391,10 @@ const defaults = {
scrubbingContainer: 'plyr__preview-scrubbing',
scrubbingContainerShown: 'plyr__preview-scrubbing--is-shown',
},
markers: {
points: 'plyr__marker__points',
tip: 'plyr__marker__tip',
},
},
// Embed attributes
@ -441,6 +445,12 @@ const defaults = {
customControls: true,
noCookie: false, // Whether to use an alternative version of YouTube without cookies
},
// markers
markers: {
enabled: false,
points: [],
},
};
export default defaults;