WebRTC:设置SurfaceView自动缩放显示
2021-07-20 本文已影响0人
墨韵
代码修改位置
public class MySurfaceView extends SurfaceViewRenderer {
@Override
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
// super.onLayout(changed, left, top, right, bottom);
// 设置left = right;
// org.webrtc.EglRenderer.class#renderFrameOnRenderThread()
// scaleY=1.0F
super.onLayout(changed, /*left*/right, top, right, bottom);
}
}