Google IMA SDK for Android



com.google.ads.interactivemedia.api.player
Interface VideoAdPlayer


public interface VideoAdPlayer

Defines the set of methods that a video player must implement to be used by the SDK, as well as a set of callbacks that it must fire.


Nested Class Summary
static interface VideoAdPlayer.VideoAdPlayerCallback
          Callbacks that the player must fire.
 
Method Summary
 void addCallback(VideoAdPlayer.VideoAdPlayerCallback callback)
          Adds a callback.
 void playAd(String url)
          Plays a video ad hosted at url.
 void removeCallback(VideoAdPlayer.VideoAdPlayerCallback callback)
          Removes a callback.
 void stopAd()
          Stops playing the ad that is currently showing.
 

Method Detail

playAd

void playAd(String url)
Plays a video ad hosted at url.


stopAd

void stopAd()
Stops playing the ad that is currently showing.


addCallback

void addCallback(VideoAdPlayer.VideoAdPlayerCallback callback)
Adds a callback.


removeCallback

void removeCallback(VideoAdPlayer.VideoAdPlayerCallback callback)
Removes a callback.