Aspect ratio (#534)

* update

* update

* Create video2.mp4

* add art.quality

* fix art.theme
This commit is contained in:
Harvey Zack authored and GitHub committed 2023-05-13 21:23:05 +08:00
1 parent 1beff2c7fa
commit 4902322808
233 files changed
+2405 -2182

No files matched your search

+2 -16
View File
@@ -3,6 +3,7 @@ import { Setting } from './setting';
import { Icons } from './icons';
import { I18n } from './i18n';
import { CssVar } from './cssVar';
import { quality } from './quality';
import { ComponentOption } from './component';
import Artplayer = require('./artplayer');
@@ -207,22 +208,7 @@ export type Option = {
/**
* Custom video quality list
*/
quality?: {
/**
* Whether the default is selected
*/
default?: boolean;
/**
* Html string of quality
*/
html: string | HTMLElement;
/**
* Video quality url
*/
url: string;
}[];
quality?: quality[];
/**
* Custom highlight list
+2
View File
@@ -1,5 +1,6 @@
import { CssVar } from './cssVar';
import { CustomType } from './option';
import { quality } from './quality';
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>);
@@ -63,6 +64,7 @@ export declare class Player {
get subtitleOffset(): number;
set subtitleOffset(time: number);
set switch(url: string);
set quality(quality: quality[]);
pause(): void;
play(): Promise<void>;
toggle(): void;
+16
View File
@@ -0,0 +1,16 @@
export type quality = {
/**
* Whether the default is selected
*/
default?: boolean;
/**
* Html string of quality
*/
html: string | HTMLElement;
/**
* Video quality url
*/
url: string;
};