-
- All Implemented Interfaces:
-
com.brightcove.player.event.Component
,com.google.ads.interactivemedia.v3.api.AdErrorEvent.AdErrorListener
,com.google.ads.interactivemedia.v3.api.AdEvent.AdEventListener
,com.google.ads.interactivemedia.v3.api.AdsLoader.AdsLoadedListener
,com.google.ads.interactivemedia.v3.api.player.ContentProgressProvider
public class GoogleDAIComponent extends BaseIMAComponent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
GoogleDAIComponent.Builder
public interface
GoogleDAIComponent.Listener
Callback for listening methods from the DAI plugin
-
Field Summary
Fields Modifier and Type Field Description private Video
fallbackVideo
-
Method Summary
Modifier and Type Method Description void
setFallbackVideo(Video video)
Sets fallback Video in case ads stream fails. void
requestVOD(String contentSourceID, String videoID, String apiKey)
void
requestLiveStream(String assetKey, String apiKey)
void
onAdsManagerLoaded(AdsManagerLoadedEvent event)
void
skipCurrentAd()
void
onAdError(AdErrorEvent event)
Ad
getCurrentAd()
void
onAdEvent(AdEvent event)
GoogleDAIVideoStreamPlayer
getVideoAdPlayer()
Returns the current GoogleDAIVideoStreamPlayer, or null if it has not been created yet. StreamDisplayContainer
getStreamDisplayContainer()
Returns the current StreamDisplayContainer, or null if it has not been created yet. void
addCallback(GoogleDAIComponent.Listener callback)
void
removeCallback(GoogleDAIComponent.Listener callback)
void
onRelease()
-
Methods inherited from class com.brightcove.ima.BaseIMAComponent
clean, getAdPosition, getAdPositionLong, getAdsRenderingSettings, getContentPositionLong, getContentProgress, getCurrentAdIndex, getCurrentAdsRequests, getImaSdkSettings, getSupportedProgressiveMimeTypes, isPlayingAd, setContentPosition, skipCurrentAd, skipCurrentAds, updateAdTargetingValues, useAdRules
-
Methods inherited from class com.brightcove.player.event.AbstractComponent
addListener, addOnceListener, getEventEmitter, removeListener, removeListeners
-
Methods inherited from class com.google.ads.interactivemedia.v3.api.AdErrorEvent.AdErrorListener
onAdError
-
Methods inherited from class com.google.ads.interactivemedia.v3.api.AdsLoader.AdsLoadedListener
onAdsManagerLoaded
-
Methods inherited from class com.google.ads.interactivemedia.v3.api.AdEvent.AdEventListener
onAdEvent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
setFallbackVideo
void setFallbackVideo(Video video)
Sets fallback Video in case ads stream fails.
-
requestVOD
void requestVOD(String contentSourceID, String videoID, String apiKey)
-
requestLiveStream
void requestLiveStream(String assetKey, String apiKey)
-
onAdsManagerLoaded
void onAdsManagerLoaded(AdsManagerLoadedEvent event)
-
skipCurrentAd
void skipCurrentAd()
-
onAdError
void onAdError(AdErrorEvent event)
-
getCurrentAd
Ad getCurrentAd()
-
onAdEvent
void onAdEvent(AdEvent event)
-
getVideoAdPlayer
@Nullable() GoogleDAIVideoStreamPlayer getVideoAdPlayer()
Returns the current GoogleDAIVideoStreamPlayer, or null if it has not been created yet.
-
getStreamDisplayContainer
@Nullable() StreamDisplayContainer getStreamDisplayContainer()
Returns the current StreamDisplayContainer, or null if it has not been created yet.
-
addCallback
void addCallback(GoogleDAIComponent.Listener callback)
-
removeCallback
void removeCallback(GoogleDAIComponent.Listener callback)
-
onRelease
void onRelease()
-
-
-
-