mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 19:06:15 -08:00
update player.d.ts
This commit is contained in:
1 parent
a6a9e93517
commit
782a828758
2 files changed
+4
-3
No files matched your search
+1
-1
@@ -6,7 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
- 使用 `switchUrl` 或者 `switchQuality` 方法切换播放器地址后会保持原有的调整:`aspectRatio`, `playbackRate`, `flip`, `autoSize`
|
||||
- 使用 `switchUrl` 或者 `switchQuality` 方法切换地址后会保持原有的调整如:`aspectRatio`, `playbackRate`, `flip`, `autoSize`
|
||||
- 删除 `switchUrl` 方法和 `switchQuality` 方法的第二个 `name` 参数
|
||||
|
||||
## [5.0.6] - 2023-5-3
|
||||
|
||||
Vendored
+3
-2
@@ -66,13 +66,14 @@ export declare class Player {
|
||||
set theme(theme: string);
|
||||
get subtitleOffset(): number;
|
||||
set subtitleOffset(time: number);
|
||||
set switch(url: string);
|
||||
pause(): void;
|
||||
play(): Promise<void>;
|
||||
toggle(): void;
|
||||
attr(key: string, value?: any): unknown;
|
||||
cssVar<T extends keyof CssVar>(key: T, value?: CssVar[T]): CssVar[T];
|
||||
switchUrl(url: string): Promise<string>;
|
||||
switchQuality(url: string): Promise<string>;
|
||||
switchUrl(url: string): Promise<void>;
|
||||
switchQuality(url: string): Promise<void>;
|
||||
getDataURL(): Promise<string>;
|
||||
getBlobUrl(): Promise<string>;
|
||||
screenshot(): Promise<string>;
|
||||
|
||||
Reference in new issue
Block a user