# Interface: PlayerAds

PixellotPlayer.PlayerAds

Pixellot web-sdk's ads manager.

Works with preroll and midrolls which were passed to player instance

param instance of player

# Table of contents

# Properties

# Methods

# Properties

# adsData

adsData: AdSource[]

# Methods

# playAd

playAd(source): void

Immediately play ad.

# Parameters

Name Type Description
source string Source of the ad player.ads.playAd('https://ads/url');

# Returns

void


# setAdsData

setAdsData(ads): void

Will set both preRoll and midRolls for video.

By default will clear the previous ads,

# Parameters

Name Type
ads AdSource[]

# Returns

void