Hi!
Thanks for getting back to me.
- Do you want this in client side or DAI or both?
Client side i believe :) not sure what DAI is.
- SDK's have requirements to use them correctly - making configChange in Manifest a requirement may be easier for users of your SDK than other styles of continuity because there's a great deal of plumbing in a configuration change that has to take place. Is there a real desire for this by end users/publishers?
I understand that SDK can put up requirements towards their clients. But the problem is that our clients can typically not control the config changes as well since our organisation and therefore the apps are really structured in modules. Not all of our platforms (apps, our clients, or consumers of the SDK) are written in pure Android. some of them are written in React-Native which makes handeling activities and states really hard if not impossible. That's why when a video goes full screen we actually create a NEW activity (FullscreenActivity.kt) and decouple the ExoPlayer from the previously playing Textureview and pass it into the newly created textureview by FullscreenActivity.kt. This is why configchanges are out of the question. And why we need to rebind the ad display container to a new container.
What style would you be interested in i.e. passing app context and attaching activity context dynamically, or exposing a method to get the VAST and save it and restart from the middle or something else?
I would be interested in some kind of setter on the `AdDisplayContainer` to rebind a new ad container to the currently playing ad.
Something like this:
// we first create the original (inline player) ad display container
val adDisplayContainer = ImaSdkFactory.createAdDisplayContainer(currentAdContainerViewGroup, adPlayer)
// Video and ad are playing
// user decides to play fullscreen
// FullscreenActivity.kt gets created, new VideoView gets created, and gets binded to the currently playing ExoPlayer
// Ima SDK now needs to rebind to the newly created ad container
adDisplayContainer.setAdContainer(newlyCreatedAdContainerViewGroup)
// IMA SDK starts to draw the overlay in the new container
I hope the abvove usecase / flow makes sense.
Thanks in advance. If need be I'm always available for a call.
Toby Bonhof