mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-13 07:46:17 -08:00
- Created a new documentation file for the danmuku plugin with code examples. - Added a comprehensive guide for language settings (i18n) including default languages, importing languages, adding new languages, and modifying existing languages. - Included code snippets for initializing the Artplayer with different language configurations.
39 lines
1013 B
TypeScript
39 lines
1013 B
TypeScript
export interface JassubOption {
|
|
workerUrl: string
|
|
wasmUrl: string
|
|
modernWasmUrl: string
|
|
subUrl?: string
|
|
subContent?: string
|
|
timeOffset?: number
|
|
debug?: boolean
|
|
prescaleFactor?: number
|
|
prescaleHeightLimit?: number
|
|
maxRenderHeight?: number
|
|
fonts?: string[] | Uint8Array[]
|
|
availableFonts?: Record<string, Uint8Array | string>
|
|
fallbackFont?: string
|
|
useLocalFonts?: boolean
|
|
libassMemoryLimit?: number
|
|
libassGlyphLimit?: number
|
|
[key: string]: any
|
|
}
|
|
|
|
export interface JassubInstance {
|
|
resize: (force?: boolean, width?: number, height?: number, top?: number, left?: number) => Promise<void>
|
|
setVideo: (video: HTMLVideoElement) => Promise<void>
|
|
destroy: () => Promise<void>
|
|
[key: string]: any
|
|
}
|
|
|
|
interface Result {
|
|
name: 'artplayerPluginJassub'
|
|
instance: JassubInstance
|
|
}
|
|
|
|
declare const artplayerPluginJassub: (option: JassubOption) => (art: Artplayer) => Result
|
|
|
|
export default artplayerPluginJassub
|
|
|
|
export = artplayerPluginJassub
|
|
export as namespace artplayerPluginJassub;
|