sdkFactory.createAdDisplayContainer()
adDisplayContainer?.adContainer = viewGroup
With createAdDisplayContainer and adContainer being deprecated, but didn´t find any clear instruction with what should they be replaced, annd also, if I try to run the project with the version, and those deprecated elements, android gives me this Log
Hi Jose,
Thank you for getting back to us on this.
I tried to use the advanced sample app v3.16, this sample app uses the SDK version 3.16.2 as default SDK. I've updated the SDK version to version 3.19.0 and this triggers the deprecation of createAdDisplayContainer method. Following the AdDisplayContainer implementation as shown in this line. I was able to build the app successfully and I wasn't able to reproduce the issue that you're facing.
That being said, could please try the above sample app and update the SDK to the latest version and see if you will encounter the same issue? Please let us know the result.
Regards,
Sherwin Diesta
sdkSettings = sdkFactory.createImaSdkSettings()
adsRenderingSettings = sdkFactory.createAdsRenderingSettings()
adDisplayContainer = ImaSdkFactory.createAdDisplayContainer(viewGroup, this)
adsRenderingSettings?.enablePreloading = true
sdkSettings?.isDebugMode = BuildConfig.DEBUG
emVideoView?.blockPlayback = true
adsLoader = sdkFactory.createAdsLoader(context, sdkSettings, adDisplayContainer)
adsLoader?.addAdsLoadedListener(this)
adsLoader?.addAdErrorListener(this)
...
The bug is