mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 10:31:20 -08:00
Artplayer vitepress (#446)
* init * init * update * update * update * update * update * update * add i18n option * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update
This commit is contained in:
1 parent
6a866f88c3
commit
fa7954de0d
295 files changed
+18695
-36337
No files matched your search
+1
@@ -107,6 +107,7 @@ declare class Artplayer extends Player {
|
||||
};
|
||||
|
||||
readonly storage: {
|
||||
name: String;
|
||||
settings: Record<string, any>;
|
||||
get(key: string): any;
|
||||
set(key: string, value: any): void;
|
||||
|
||||
Vendored
+1
-9
@@ -25,7 +25,6 @@ export type Events = {
|
||||
'video:waiting': [event: Event];
|
||||
hotkey: [event: Event];
|
||||
destroy: [];
|
||||
customType: [typeName: string];
|
||||
url: [url: string];
|
||||
subtitleUpdate: [text: string];
|
||||
subtitleLoad: [url: string];
|
||||
@@ -34,8 +33,7 @@ export type Events = {
|
||||
blur: [];
|
||||
dblclick: [];
|
||||
click: [];
|
||||
setBar: [type: 'loaded' | 'played', percentage: number];
|
||||
hover: [state: boolean];
|
||||
hover: [state: boolean, event: Event];
|
||||
mousemove: [event: Event];
|
||||
resize: [];
|
||||
view: [state: boolean];
|
||||
@@ -47,18 +45,12 @@ export type Events = {
|
||||
flip: [flip: Flip];
|
||||
fullscreen: [state: boolean];
|
||||
fullscreenWeb: [state: boolean];
|
||||
loop: [interval: [start: number, end: number]];
|
||||
mini: [state: boolean];
|
||||
pause: [];
|
||||
pip: [state: boolean];
|
||||
playbackRate: [playbackRate: PlaybackRate];
|
||||
play: [];
|
||||
screenshot: [dataUri: string];
|
||||
seek: [currentTime: number];
|
||||
subtitleOffset: [offset: number];
|
||||
switch: [url: string];
|
||||
restart: [];
|
||||
volume: [volume: number];
|
||||
lock: [state: boolean];
|
||||
selector: [selector: Selector, $item: HTMLDivElement];
|
||||
};
|
||||
Vendored
+5
@@ -290,6 +290,11 @@ export type Option = {
|
||||
[key in keyof HTMLVideoElement as HTMLVideoElement[key] extends Function ? never : key]: HTMLVideoElement[key];
|
||||
}>;
|
||||
|
||||
/**
|
||||
* Custom i18n
|
||||
*/
|
||||
i18n?: I18n;
|
||||
|
||||
/**
|
||||
* Custom default icons
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user