I've got a HorizontalPager from Accompanist and 2 ...
# compose
j
I've got a HorizontalPager from Accompanist and 2 pages both with an ExoPlayer view. When I set the ExoPlayer to resizeMode=RESIZE_MODE_ZOOM, the video zooms correctly, but somehow the surfaces of the video overlap. What would be the correct way to fix this? Somehow clipping it? (Modifier.clipToBounds didn't work) Change from SurfaceView to TextureView?
Example:
c
@Mihai Popa
n
@Joey did you find a solution for this? (running into the same problem)
j
Unfortunately not yet, for now I left it as is as the app is still in early production, so perhaps one of the next compose releases magically fixes it ¯\_(ツ)_/¯
j
As a workaround you can use
surface_type="texture_view"
but this will need to be done via xml. Using exoplayer via xml is discussed here: https://kotlinlang.slack.com/archives/CJLTWPH7S/p1616167769216000