mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 17:01:20 -08:00
Optimize setBar event and add lazy loading for thumbnails in artplayer-plugin-chapter
This commit is contained in:
1 parent
aaa5ef310e
commit
d99fa9447a
6 files changed
+47
-25
No files matched your search
Vendored
+3
-1
@@ -1,5 +1,7 @@
|
||||
import { AspectRatio, Flip } from './player';
|
||||
|
||||
export type Bar = 'loaded' | 'played' | 'hover';
|
||||
|
||||
export type Events = {
|
||||
'video:canplay': [event: Event];
|
||||
'video:canplaythrough': [event: Event];
|
||||
@@ -64,5 +66,5 @@ export type Events = {
|
||||
subtitleOffset: [offset: number];
|
||||
restart: [url: string];
|
||||
muted: [state: boolean];
|
||||
setBar: [type: 'loaded' | 'played' | 'hover', event: Event];
|
||||
setBar: [type: Bar, percentage: number, event?: Event];
|
||||
};
|
||||
Reference in new issue
Block a user