mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-20 04:01:20 -08:00
Optimize setBar event and update chapter display in artplayer-plugin-chapter
This commit is contained in:
1 parent
94e34320e0
commit
2e72e0cec2
4 files changed
+69
-61
No files matched your search
@@ -3,16 +3,19 @@ import type Artplayer from 'artplayer';
|
||||
export = artplayerPluginChapter;
|
||||
export as namespace artplayerPluginChapter;
|
||||
|
||||
type Chapters = {
|
||||
start: number;
|
||||
end: number;
|
||||
title: string;
|
||||
}[];
|
||||
|
||||
type Option = {
|
||||
chapters?: {
|
||||
start: number;
|
||||
end: number;
|
||||
title: string;
|
||||
}[];
|
||||
chapters?: Chapters;
|
||||
};
|
||||
|
||||
type Result = {
|
||||
name: 'artplayerPluginChapter';
|
||||
update: (chapters: Chapters) => void;
|
||||
};
|
||||
|
||||
declare const artplayerPluginChapter: (option: Option) => (art: Artplayer) => Result;
|
||||
Reference in new issue
Block a user