AdPlaybackController
The object provides an API for controlling ad playback. It allows playing an ad once. To play the ad again, create a new AdPlaybackController instance.
Methods
Name |
Type (Returned) |
Description |
|
Returns the current ad size. |
|
|
Returns the current ad playback state. |
|
|
boolean |
Shows if the creative can be skipped. |
|
void |
Pauses the ad. |
|
void |
Starts playing the ad. Warning The method can only be called once, all subsequent calls are ignored. |
|
void |
Resumes playing the ad. |
|
void |
Skips all ads at once (all AdPods). Before calling the method, the player needs to make sure the |
|
void |
Stops the ad. |
|
Subscribes to an ad event. |
|
|
number |
Returns the current volume in the range [0; 1]. The actual volume is only returned after calling the |
|
void |
Sets the volume in the range [0; 1]. Setting the volume is only available after the ad starts playing (the Alert Setting it to a value different from zero may pause the video if no video element is activated. This is due to the browser auto play policies. We recommend only a user action turning on the volume. |
|
boolean |
Status that shows if ad volume control is available. Acceptable values:
The actual status is available immediately after calling the Note The status is returned regardless of whether the volume controls are visible. |
|
Returns the time until the ad creative can be skipped |
|
|
Returns the remaining playback time for the entire ad block. |
|
|
Returns the remaining playback time for the current ad creative. |
|
|
Returns the duration of the entire ad block. |
|
|
Returns the duration of the current ad creative. |