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

@@ -0,0 +1,26 @@
import style from 'bundle-text:./style.less';
export default function artplayerPluginChapter(option) {
return (art) => {
return {
name: 'artplayerPluginChapter',
};
};
}
if (typeof document !== 'undefined') {
const id = 'artplayer-plugin-chapter';
const $style = document.getElementById(id);
if ($style) {
$style.textContent = style;
} else {
const $style = document.createElement('style');
$style.id = id;
$style.textContent = style;
document.head.appendChild($style);
}
}
if (typeof window !== 'undefined') {
window['artplayerPluginChapter'] = artplayerPluginChapter;
}
@@ -0,0 +1,3 @@
.artplayer-plugin-chapter {
//
}