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

Agora on laptop in advanced demo uses webcam with no option to turn off or not use webcam #47

Closed
pnguyen2232 opened this issue Feb 1, 2022 · 2 comments

Comments

@pnguyen2232
Copy link

pnguyen2232 commented Feb 1, 2022

I start the project in Unity 2019.4.0f1. I press "Desktop Screen Share" after putting in an agora stream channel.

I am greeted with my webcam turned on. I click "Share display" once and it will switch to the desktop screen.

image

There is no way to prevent webcam turning on, or an option to ignore it. I've attempted to debug the code for AgoraNativeBridge.MONITORINFO but these return either 40 or single digit values in Unity so I can't exactly tell what is monitor and what is a webcam.

@HugoChaan
Copy link
Contributor

Hello, We no longer maintain the code in the advanced demo. If you want to try the screen sharing function, please use the example in the link: ScreenShareOnDesktop

@icywind
Copy link
Collaborator

icywind commented Apr 4, 2022

@pnguyen2232 - the webcam is turned off when you are sharing the display. Before that, the demo shows the local video from webcam as default. To completely turn off the webcam, you can call EnableLocalVideo(false) when setting up the Agora engine.

@icywind icywind closed this as completed Apr 4, 2022
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

3 participants