mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 14:41: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
Vendored
+7
-9
@@ -95,6 +95,7 @@ declare class Artplayer extends Player {
|
||||
};
|
||||
|
||||
readonly storage: {
|
||||
name: String;
|
||||
settings: Record<string, any>;
|
||||
get(key: string): any;
|
||||
set(key: string, value: any): void;
|
||||
@@ -368,7 +369,6 @@ export type Events = {
|
||||
'video:waiting': [event: Event];
|
||||
hotkey: [event: Event];
|
||||
destroy: [];
|
||||
customType: [typeName: string];
|
||||
url: [url: string];
|
||||
subtitleUpdate: [text: string];
|
||||
subtitleLoad: [url: string];
|
||||
@@ -377,8 +377,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];
|
||||
@@ -390,20 +389,14 @@ 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];
|
||||
};
|
||||
|
||||
type I18nKeys = 'en' | 'zh-cn' | 'zh-tw' | 'pl' | 'cs' | 'es' | 'fa' | (string & Record<never, never>);
|
||||
@@ -772,6 +765,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