mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 18:41: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
+9
-6
@@ -4,15 +4,18 @@ declare global {
|
||||
}
|
||||
}
|
||||
|
||||
type PlayUrlFn = (url: string) => void
|
||||
type PlayResFn = (res: string) => void
|
||||
type PlayUrlFn = (url: string, config?: any) => void
|
||||
type PlayResFn = (res: string, config?: any) => void
|
||||
|
||||
interface VastPluginContext {
|
||||
art: Artplayer
|
||||
ima: any // Replace 'any' with a more specific type if available, or declare google.ima type above
|
||||
imaPlayer: Player
|
||||
ima: any
|
||||
imaPlayer: Player | null
|
||||
playUrl: PlayUrlFn
|
||||
playRes: PlayResFn
|
||||
init: () => Player
|
||||
adsRenderingSettings: any
|
||||
playerOptions: PlayerOptions
|
||||
container: HTMLDivElement | null
|
||||
}
|
||||
|
||||
@@ -29,5 +32,5 @@ declare function artplayerPluginVast(
|
||||
|
||||
export default artplayerPluginVast
|
||||
|
||||
export = artplayerPluginVast
|
||||
export as namespace artplayerPluginVast;
|
||||
export = artplayerPluginVast;
|
||||
export as namespace artplayerPluginVast;
|
||||
Reference in new issue
Block a user