mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 10:31:20 -08:00
feat: add danmuku plugin and i18n setup documentation
- Created a new documentation file for the danmuku plugin with code examples. - Added a new documentation file for language settings (i18n) with detailed instructions on language imports, default languages, and how to add or modify languages.
This commit is contained in:
1 parent
7dffd99cfd
commit
17042867fc
81 files changed
+160
-878
No files matched your search
Vendored
+34
-2
@@ -126,6 +126,8 @@ export interface Subtitle {
|
||||
onVttLoad?: (vtt: string) => string
|
||||
}
|
||||
|
||||
|
||||
|
||||
export interface SettingOption extends Omit<Setting, 'html' | 'icon' | 'tooltip'> {
|
||||
html: string
|
||||
icon: string | undefined
|
||||
@@ -237,6 +239,10 @@ export interface Quality {
|
||||
url: string
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
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>)
|
||||
@@ -346,6 +352,15 @@ export declare class Player {
|
||||
reset(): void
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export type CustomType
|
||||
= | 'flv'
|
||||
| 'm3u8'
|
||||
@@ -754,6 +769,9 @@ declare module 'artplayer/i18n/*' {
|
||||
export default lang
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
export type Bar = 'loaded' | 'played' | 'hover'
|
||||
|
||||
export interface Events {
|
||||
@@ -977,6 +995,8 @@ export interface Config {
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
|
||||
export interface Selector {
|
||||
/**
|
||||
* Whether the default is selected
|
||||
@@ -1108,6 +1128,18 @@ export interface ComponentOption {
|
||||
onSelect?: (this: Artplayer, selector: Selector, element: HTMLElement, event: Event) => void
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export type {
|
||||
Config,
|
||||
Events,
|
||||
@@ -1297,5 +1329,5 @@ export default class Artplayer extends Player {
|
||||
} & Record<string, unknown>
|
||||
}
|
||||
|
||||
export = Artplayer
|
||||
export as namespace Artplayer;
|
||||
export = Artplayer;
|
||||
export as namespace Artplayer;
|
||||
Reference in new issue
Block a user