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

想要让后置摄像头向左旋转90度,设置CameraConfiguration参数无效,该怎么解决呢? #3

Open
roybill opened this issue Feb 25, 2022 · 0 comments

Comments

@roybill
Copy link

roybill commented Feb 25, 2022

    //初始化 camera 参数
    var cameraConfiguration = CameraConfiguration.Builder()
        .setRotation(45)      //无效
        .setOrientation(CameraConfiguration.Orientation.LANDSCAPE)  //无效
        .setFacing(CameraConfiguration.Facing.BACK) //默认打开后置摄像头
        .setFps(25)
        .setPreview(320, 240)
        .build()

    mLive.setCameraConfigure(cameraConfiguration)
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

1 participant