feat: update version to 1.1.0 and enhance VAST plugin with new event handling and configuration options

This commit is contained in:
Harvey Zhao committed 2026-01-04 23:31:30 +08:00
1 parent 4a980971f7
commit 486231f04b
3 files changed
+31 -12

No files matched your search

@@ -1,4 +1,4 @@
import type { Player } from '@glomex/vast-ima-player'
import type { Player, PlayerOptions } from '@glomex/vast-ima-player'
import type Artplayer from 'artplayer'
declare global {
@@ -7,15 +7,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
}