-
- All Implemented Interfaces:
-
com.brightcove.ima.AdDisplayContainerFactory
public class DefaultAdDisplayContainerFactory implements AdDisplayContainerFactory
The Default implementation of AdDisplayContainerFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultAdDisplayContainerFactory(ViewGroup viewGroup)
Creates an instance of AdDisplayContainerFactory, where the ViewGroup provided asthe constructor parameter will be used for the AdDisplayContainercreation.
-
Method Summary
Modifier and Type Method Description AdDisplayContainer
createAdDisplayContainer(GoogleIMAVideoAdPlayer googleIMAVideoAdPlayer)
AdDisplayContainer
createAdDisplayContainer(BaseAdVideoPlayer imaVideoPlayer)
Creates the AdDisplayContainer with the provided BaseAdVideoPlayer and the ViewGroup retrieved with getViewContainer StreamDisplayContainer
createStreamDisplayContainer(BaseAdVideoPlayer daiVideoPlayer)
Creates the StreamDisplayContainer with the provided BaseAdVideoPlayer and the ViewGroup retrieved with getViewContainer ViewGroup
getViewContainer()
Returns the ViewGroup container used for both,the creation of the GoogleIMAVideoAdPlayer and the AdDisplayContainer -
-
Constructor Detail
-
DefaultAdDisplayContainerFactory
DefaultAdDisplayContainerFactory(ViewGroup viewGroup)
Creates an instance of AdDisplayContainerFactory, where the ViewGroup provided asthe constructor parameter will be used for the AdDisplayContainercreation.- Parameters:
viewGroup
- the ad view container
-
-
Method Detail
-
createAdDisplayContainer
@Deprecated() AdDisplayContainer createAdDisplayContainer(GoogleIMAVideoAdPlayer googleIMAVideoAdPlayer)
-
createAdDisplayContainer
AdDisplayContainer createAdDisplayContainer(BaseAdVideoPlayer imaVideoPlayer)
Creates the AdDisplayContainer with the provided BaseAdVideoPlayer and the ViewGroup retrieved with getViewContainer
- Parameters:
imaVideoPlayer
- the Brightcove Ad Player for Google IMA
-
createStreamDisplayContainer
StreamDisplayContainer createStreamDisplayContainer(BaseAdVideoPlayer daiVideoPlayer)
Creates the StreamDisplayContainer with the provided BaseAdVideoPlayer and the ViewGroup retrieved with getViewContainer
-
getViewContainer
ViewGroup getViewContainer()
Returns the ViewGroup container used for both,the creation of the GoogleIMAVideoAdPlayer and the AdDisplayContainer
-
-
-
-