Android 推流--预览界面全屏设置

最近更新时间: 2017-08-21 17:26:00

要实现推流端预览界面全屏显示,可以参考修改我们github上面的demo的如下代码:

AspectFrameLayout afl = (AspectFrameLayout) findViewById(R.id.cameraPreview_afl);
        afl.setShowMode(AspectFrameLayout.SHOW_MODE.FULL); // REAL modify to FULL
        CameraPreviewFrameView cameraPreviewFrameView =
                (CameraPreviewFrameView) findViewById(R.id.cameraPreview_surfaceView);
        cameraPreviewFrameView.setListener(this);
以上内容是否对您有帮助?
  • Qvm free helper
    Close