Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

How to upstream ARCore rendered content or achieve screen sharing #66

Open
khurramengr opened this issue Dec 13, 2018 · 0 comments
Open

Comments

@khurramengr
Copy link

Hi @rahulyaa I am trying to upstream ARCore rendered content which is being rendered in GLSurfaceView.
But in the SDK i don't see any option that allows me to do that, the SDK only allows to set FRONT or BACK facing cameras as the activeCamera.

    /**
     * Camera Switch click button handler.
     *
     * @param view
     */
    public void onCameraSwitch(android.view.View view) {
        Camera camera = null;
        Camera.Type cameraType = null;
        switch (currentCameraType) {
            case FRONTFACING:
                camera = this.backCamera;
                cameraType = Camera.Type.BACKFACING;
                break;
            case BACKFACING:
                camera = this.frontCamera;
                cameraType = Camera.Type.FRONTFACING;
                break;
            default:
        }
        try {
            this.videoService.setActiveCamera(camera);
            this.currentCameraType = cameraType;
            this.updateState();
        } catch (SFBException e) {
            e.printStackTrace();
        }
    }

Can you guide me further how to achieve this or may be screen sharing?

@khurramengr khurramengr changed the title How to achieve screen sharing How to upstream ARCore rendered content or screen sharing Dec 13, 2018
@khurramengr khurramengr changed the title How to upstream ARCore rendered content or screen sharing How to upstream ARCore rendered content or achieve screen sharing Dec 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant