mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-16 17:46:17 -08:00
feat: Add support for video chapters in artplayer-plugin-chapter
This commit is contained in:
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 {
|
||||
//
|
||||
}
|
||||
Reference in new issue
Block a user