Methods
closeAd()
Stops/skips the current ad.
customEvent(eventName)
Sends reporting event to Weborama servers. Makes additional custom reporting possible.
Parameters:
Name | Type | Description |
---|---|---|
eventName |
String |
The name of the event, e.g.: "user_playgame". Event name may only contain letters, numbers and underscores (A-Za-z0-9). No spaces or any other characters allowed. |
exitClick(clickNameopt)
Triggers an exit click. Opens the exit URL that is related to the specified 'click' parameter.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
clickName |
String | <optional> |
"default" | Reference string, e.g.: 'default', 'extra1', 'extra2', etc. |
pauseVideo()
Pauses the video player.
resumeVideo()
Resumes the video player.
setAdVolume(vol)
Set video player volume function. IMPORTANT: Publisher's player needs to support it.
Parameters:
Name | Type | Description |
---|---|---|
vol |
Number | The desired volume level. Value between 0 and 1. |
showStopButton()
Shows the stop button that makes it possible to skip the ad.
userInteraction()
Reports a user interaction event to indicate the user has engaged. After this call it is allowed to pause (pauseVideo) the video to allow longer interaction. If you the video is paused, remember to either make resuming possible (resumeVideo) or to show the stopAd button (showStopButton).