mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 08:51:20 -08:00
update docs
This commit is contained in:
1 parent
3f1e033152
commit
55ca351b60
119 files changed
+1882
-1882
No files matched your search
@@ -13,7 +13,8 @@
|
||||
background-size: 100% var(--art-bottom-height);
|
||||
.art-bottom-gradient();
|
||||
|
||||
.art-controls, .art-progress {
|
||||
.art-controls,
|
||||
.art-progress {
|
||||
transform: translateY(var(--art-bottom-offset));
|
||||
transition: transform var(--art-transition-duration) ease;
|
||||
}
|
||||
@@ -23,7 +24,8 @@
|
||||
&.art-hover {
|
||||
.art-bottom {
|
||||
opacity: 1;
|
||||
.art-controls, .art-progress {
|
||||
.art-controls,
|
||||
.art-progress {
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -61,6 +61,6 @@ export type Events = {
|
||||
screenshot: [dataUri: string];
|
||||
seek: [currentTime: number];
|
||||
subtitleOffset: [offset: number];
|
||||
restart: [];
|
||||
restart: [url: string];
|
||||
loop: [start?: number, end?: number];
|
||||
};
|
||||
Vendored
+1
-1
@@ -6,7 +6,7 @@ import { CssVar } from './cssVar';
|
||||
import { ComponentOption } from './component';
|
||||
import Artplayer = require('./artplayer');
|
||||
|
||||
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 = {
|
||||
/**
|
||||
|
||||
Vendored
+3
@@ -1,4 +1,5 @@
|
||||
import { CssVar } from './cssVar';
|
||||
import { CustomType } from './option';
|
||||
|
||||
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>);
|
||||
@@ -10,6 +11,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;
|
||||
|
||||
Reference in new issue
Block a user