mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-10 12:46:15 -08:00
feat: Add support for video chapters in artplayer-plugin-chapter
This commit is contained in:
1 parent
a59942ca58
commit
3e3e355e34
8 files changed
+411
-19
No files matched your search
@@ -4,9 +4,18 @@
|
||||
var art = new Artplayer({
|
||||
container: '.artplayer-app',
|
||||
url: '/assets/sample/video.mp4',
|
||||
autoSize: true,
|
||||
fullscreen: true,
|
||||
fullscreenWeb: true,
|
||||
plugins: [
|
||||
artplayerPluginChapter({
|
||||
//
|
||||
chapters: [
|
||||
{ start: 0, end: 18, text: 'Chapter 1' },
|
||||
{ start: 18, end: 36, text: 'Chapter 2' },
|
||||
{ start: 36, end: 54, text: 'Chapter 3' },
|
||||
{ start: 54, end: 72, text: 'Chapter 4' },
|
||||
{ start: 72, end: 90, text: 'Chapter 5' },
|
||||
]
|
||||
}),
|
||||
],
|
||||
});
|
||||
Reference in new issue
Block a user