VideoAdPlayer

public interface VideoAdPlayer implements AdProgressProvider

Defines the set of methods that a video player must implement to be used by the IMA SDK, as well as a set of callbacks that it must fire. This player should use the callbacks provided while interacting with ads only. VideoAdPlayer interface should be controlled only by IMA SDK and should not be accessed by the application directly. Use AdsManager API to control ad playback.

Nested Class Summary

interface VideoAdPlayer.VideoAdPlayerCallback Callbacks that the player must fire. 

Public Method Summary

abstract void
abstract void
loadAd(String url)
Loads a video ad hosted at url.
abstract void
pauseAd()
Pauses playing the current ad.
abstract void
playAd()
Starts playing the video ad previously loaded by loadAd.
abstract void
removeCallback(VideoAdPlayer.VideoAdPlayerCallback callback)
Removes a callback.
abstract void
resumeAd()
This method was deprecated. - The SDK calls playAd to resume ads. Resumes playing the current ad. Should only be called by the SDK.
abstract void
stopAd()
Stops playing the current ad.

Inherited Method Summary

Public Methods

public abstract void addCallback (VideoAdPlayer.VideoAdPlayerCallback callback)

Adds a callback.

Parameters
callback

public abstract void loadAd (String url)

Loads a video ad hosted at url. Should only be called by the SDK.

Parameters
url

public abstract void pauseAd ()

Pauses playing the current ad. Should only be called by the SDK.

public abstract void playAd ()

Starts playing the video ad previously loaded by loadAd. Should only be called by the SDK.

public abstract void removeCallback (VideoAdPlayer.VideoAdPlayerCallback callback)

Removes a callback.

Parameters
callback

public abstract void resumeAd ()

This method was deprecated.
- The SDK calls playAd to resume ads. Resumes playing the current ad. Should only be called by the SDK.

public abstract void stopAd ()

Stops playing the current ad. Should only be called by the SDK.

Send feedback about...

IMA SDK for Android
Need help? Visit our support page.