Has anyone faced this kind of thing you can see in...
# compose-android
b
Has anyone faced this kind of thing you can see in the code that the icon and text is inside a column but if you see the inspector the icon and the text are not inside it also they are not visible even the condition i gave is true do anyone have idea
z
Does your remote video view use SurfaceView? Based on the docs I’m not sure compose/view interop is gonna support overlays like you’re trying to do. But I’m pretty inexperienced with surface stuff so it might be supported fine and your issue completely different. @Nader Jawad probably knows.
b
@Zach Klippenstein (he/him) [MOD] Yes actually i fixed it by replacing it with TextureView i was using Chime Sdk of AWS for video call stuff and that was causing usual problems and their view was on surface so i changed it to TextureView and it is totally fine now
👍🏻 1
n
Depends on how your remoteVideoView is implemented. By default SurfaceView content is shown behind the View hierarchy. The SurfaceView itself draws a hole punch, effectively clearing pixels to reveal the surface that has the video content behind the rest of the UI. It might be the case that your remoteVideoView itself has z-above which means the video content is shown on top of the rest of the UI making it invisible despite your box/column ordering. While using TextureView would work around this issue, there are a few limitations here which include increased resource utilization and battery consumption. The Android team as been pushing for developers to favor SurfaceView usage over TextureView for these reasons. Additionally newer display tech (ex. HDR rendering/adaptive refresh rate) can only be supported through SurfaceView not TextureView
b
@Nader Jawad so what should i do here i want to have overlays its a part of the feature here in my app any suggestions on how to achieve that
n
You probably want to look into the SurfaceView usage and make sure that setZOrderOnTop is set to false
b
Okk ill check although the view is coming from chime SDK let me see if i can change that