Fighting with SurfaceView, Camera and OpenGL

后端 未结 4 2045
轮回少年
轮回少年 2020-12-14 23:15

We\'ve been fighting with some problems relating to SurfaceViews for more than a week, and find no proper solution to them. We read the other questions in the forum regardin

4条回答
  •  臣服心动
    2020-12-15 00:00

    try this:

    mLayout.addView(mRenderView);
    mLayout.addView(mCustomSurfaceView);
    
    // without this line, the camera preview cannot be displayed 
    // when running activity at first time.
    mCustomSurfaceView.setZOrderMediaOverlay(true);
    

    this worked for me :)

提交回复
热议问题