Jetpack compose and IMA SDK friendly obstruction register

480 views
Skip to first unread message

Viacom18 Digitalmedia (viacom18digitalmedia)

unread,
Sep 13, 2022, 12:30:38 PM9/13/22
to Interactive Media Ads SDK
We are building our video player UI using compose and want to register the compose created UI to the IMA SDK. Currently we do have option to use the android interop api for AndroidView via compose. 

However we are finding it difficult to do it entirely for all components on screen. 
Please help us with inputs or suggestion would help us solve this problem. 

We are doing something like this for each view 
ImaSdkFactory.getInstance().createFriendlyObstruction( ComposeView(this).apply {  setContent {  ComposableFunction("hello")  }  },  FriendlyObstructionPurpose.VIDEO_CONTROLS,  "This is the player's playback toggle button." )

IMA SDK

unread,
Sep 14, 2022, 2:49:37 AM9/14/22
to viacom18.d...@gmail.com, ima...@googlegroups.com

Hello,

 

Michael here from IMA SDK Team. Thank you for reaching out to us.

 

It appears that you are using a third party tool which we cannot fully comment as we have no knowledge on supporting that product. Having said that, please be informed that we can only give technical solutions to IMA SDK implementation concerns. On that note, we would recommend to pattern your work against our sample apps and see if you encounter any issue.

 

Additionally, should you need further assistance, kindly elaborate what is the exact issue/concern or error you want to be resolved within the SDK as the previous message does not appear to be an SDK issue in itself.

Regards,

Google Logo
Michael Angelo
IMA SDK Team
 


ref:_00D1U1174p._5004Q2eNx6w:ref

Viacom18 Digitalmedia (viacom18digitalmedia)

unread,
Sep 15, 2022, 9:15:38 AM9/15/22
to Interactive Media Ads SDK
Hi Micheal 

We are planning to use jetpack compose provided by Google Android SDK for ui development replacing the traditional xml based development. Currently IMA SDK expects view derived from xml viewid. 
We want to use the same but creating composeview and porting to androidview is the way we found. Would be great if IMA team shares its recommendation to pass compose created ui to OM SDK method for friendly obstruction. 

Regards
Viacom18 

Message has been deleted

IMA SDK

unread,
Sep 16, 2022, 4:03:01 PM9/16/22
to ima...@googlegroups.com, viacom18.d...@gmail.com
Hi Viacom18,

I work with Michael. We are aware that Jetpack Compose is the future of Android UI and is the current recommended UI tool to build Android apps.

Since we don't yet support Jetpack Compose and we don't have sample apps for it, we will need a sample of yours with the functionality of one of our sample apps with your attempts at Register video controls overlay obstructions added.

I raised with my team your request for Jetpack Compose support and samples for IMA SDK Android client side SDK. This request is subject to review. You may monitor our blog for an update.

Regards,

Google Logo
Aryeh
IMA SDK Team
 
​​​​​​​

ref:_00D1U1174p._5004Q2eNx6w:ref

IMA SDK

unread,
Sep 19, 2022, 1:49:57 PM9/19/22
to ima...@googlegroups.com, viacom18.d...@gmail.com
Hi Viacom18,

My team is curious what your difficulty is with registering friendly obstructions when using Jetpack Compose. Is it the number of components?

Viacom18 Digitalmedia (viacom18digitalmedia)

unread,
Sep 20, 2022, 4:43:00 AM9/20/22
to Interactive Media Ads SDK
Hi Team 
Yes we are looking to create player ui skin using compose. Which will create multiple ui view elements. Unlike previously with xml we can get all view id and pass it. With compose this is complicated as shown in the 1st code snippet for just one view. So one of the complication is the number of components to pass to ima. 

Regards
Viacom18 team 

IMA SDK

unread,
Sep 20, 2022, 6:21:39 AM9/20/22
to viacom18.d...@gmail.com, ima...@googlegroups.com

Hi Viacom18,

 

Thank you for sharing additional information. I will let the team know of your use case. You may keep an eye on our blog post for future updates.

 

Regards,

Google Logo
Michael Angelo
IMA SDK Team
 


ref:_00D1U1174p._5004Q2eNx6w:ref

IMA SDK

unread,
Oct 5, 2022, 5:57:09 AM10/5/22
to viacom18.d...@gmail.com, ima...@googlegroups.com

Hello Viacom18,

 

Hope you are doing well. I just want to get back here as we receive recommendation from our team that to register friendly obstructions as recommended in our guide, even if there are numerous components to iterate through.

Let us know if this wouldn't be possible on your end.

Regards,

Google Logo
Michael Angelo
IMA SDK Team
 


ref:_00D1U1174p._5004Q2eNx6w:ref
Reply all
Reply to author
Forward
0 new messages