Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebRTC android SurfaceViewRender, how to full screen and not over screen? #174

Open
c80617 opened this issue Jun 15, 2018 · 4 comments
Open

Comments

@c80617
Copy link

c80617 commented Jun 15, 2018

I use surfaceViewRender to render my remote webRTC stream, and I want to make the remote stream fill my device screen. I try this code:

pipRenderer.setScalingType(ScalingType.SCALE_ASPECT_FILL);
but actually the display size would over my screen size,

I try to scale the width to fit it:

pipRenderer.setScaleX(0.8f);
but the result become more strange,

does anybody can tell how to do this? I want make the stream auto fit the screen size but do not over screen, I will very appreciate to you!!

@lionlions
Copy link

I face the same issue.
Does anyone know how to fix it???

@fukemy
Copy link

fukemy commented Oct 4, 2021

same problem here, did anyone fixed it?

@lchesteree
Copy link

lchesteree commented Nov 17, 2021

I think that If you set the layout_width and layout_height of SurfaceViewRenderer are match_parent, you need to change to wrap_content

@StrikeZXA
Copy link

I think that If you set the layout_width and layout_height of SurfaceViewRenderer are match_parent, you need to change to wrap_content

You were right. I managed to solve the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants