UNPKG

video-ad-sdk

Version:

VAST/VPAID SDK that allows video ads to be played on top of any player

14 lines (11 loc) 338 B
import type {VastChain, VastEventTrackerOptions} from '../../types' import {pixelTracker} from './pixelTracker' export const trackProgress = ( _vastChain: VastChain, {data = {}, tracker = pixelTracker}: VastEventTrackerOptions ): void => { const {progressUri} = data if (progressUri) { tracker(progressUri, {...data}) } }