mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-22 21:31:20 -08:00
build:all
This commit is contained in:
1 parent
868af2b230
commit
2824b69174
162 files changed
+453
-448
No files matched your search
Vendored
+5
-2
@@ -205,6 +205,7 @@ export type Setting = {
|
||||
|
||||
|
||||
|
||||
|
||||
export type AspectRatio = 'default' | '4:3' | '16:9' | (`${number}:${number}` & Record<never, never>);
|
||||
export type PlaybackRate = 0.5 | 0.75 | 1.0 | 1.25 | 1.5 | 1.75 | 2.0 | (number & Record<never, never>);
|
||||
export type Flip = 'normal' | 'horizontal' | 'vertical' | (string & Record<never, never>);
|
||||
@@ -215,6 +216,8 @@ export declare class Player {
|
||||
set aspectRatio(ratio: AspectRatio);
|
||||
get state(): State;
|
||||
set state(state: State);
|
||||
get type(): CustomType;
|
||||
set type(name: CustomType);
|
||||
get playbackRate(): PlaybackRate;
|
||||
set playbackRate(rate: PlaybackRate);
|
||||
get autoSize(): boolean;
|
||||
@@ -290,7 +293,7 @@ export declare class Player {
|
||||
|
||||
|
||||
|
||||
type CustomType = 'flv' | 'm3u8' | 'hls' | 'ts' | 'mpd' | 'torrent' | (string & Record<never, never>);
|
||||
export type CustomType = 'flv' | 'm3u8' | 'hls' | 'ts' | 'mpd' | 'torrent' | (string & Record<never, never>);
|
||||
|
||||
export type Option = {
|
||||
/**
|
||||
@@ -750,7 +753,7 @@ export type Events = {
|
||||
screenshot: [dataUri: string];
|
||||
seek: [currentTime: number];
|
||||
subtitleOffset: [offset: number];
|
||||
restart: [];
|
||||
restart: [url: string];
|
||||
loop: [start?: number, end?: number];
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user