feat: Add support for video chapters in artplayer-plugin-chapter

This commit is contained in:
Harvey Zack committed 2024-06-02 13:07:26 +08:00
1 parent 502865ef65
commit eef1d675df
8 files changed
+98 -2

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
// npm i artplayer-plugin-chapter
// import artplayerPluginChapter from 'artplayer-plugin-chapter';
var art = new Artplayer({
container: '.artplayer-app',
url: '/assets/sample/video.mp4',
plugins: [
artplayerPluginChapter({
//
}),
],
});
+4
View File
@@ -65,6 +65,10 @@
<a
href="/?libs=./uncompiled/artplayer-plugin-vast/index.js&example=vast">artplayer-plugin-vast</a>
</li>
<li>
<a
href="/?libs=./uncompiled/artplayer-plugin-chapter/index.js&example=chapter">artplayer-plugin-chapter</a>
</li>
</ul>
<ul>
<li class="title">Library</li>