Closed DDPlay123 closed 1 month ago
Have you tried setScalingType
?
Yes, I have tried SCALE_ASPECT_FIT
, SCALE_ASPECT_FILL
, and SCALE_ASPECT_BALANCED
. They all displayed the same result.
In fact, if you use a screen shared from a mobile phone, the result will match the SCALE_ASPECT_FIT
ratio.
However, if you share the screen from a tablet or a computer, the displayed result will follow the SCALE_ASPECT_FILL
ratio.
No matter what parameter I set the ScaleType of the TextureViewRenderer to, it has no effect.
Ah, I think the problem is how the scalingType works here. The scalingType affects how the renderer view gets measured, rather than changing how the video renders within its view.
Try wrapping the TextureViewRenderer within a FrameLayout set to the size you need, and then using a width/height of wrap_content
on the TextureViewRenderer.
Oh, I didn't notice this issue. I tried setting the height of the TextureViewRenderer to wrap_content
, and now the problem is solved. Thank you very much for your suggested solution.
Describe the bug When screen sharing, the recipient receives a partially cropped video and cannot see the entire shared content.
Expected behavior Ideally, the recipient should be able to see the entire screen sharing display.
Screenshots This is device A, and device A is responsible for sharing the screen.
This is device B, and device B displays the screen of device A.
Device Info:
Additional context This is my setup.