How to share screen without enabling webcam? #211
-
|
Hello, It seems when we _rtcEngine.EnableVideo() the webcam stream starts. However I only want to share my screen and not enable webcam. Is this possible? _rtcEngine.EnableLocalVideo(false) is not working. I only want to share desktop screen and don't want to activate the webcam at all. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Can anyone help me? Because this problem leads to awkward situations like when a user is selecting which tab or window she would like to share her webcam feed is shown to all other users. |
Beta Was this translation helpful? Give feedback.
-
|
hi @burakkaraceylan , actually you can do this with a small code change. public int JoinChannel(string token, string channelId, string info, uint uid, ChannelMediaOptions options)Now, there is a small bug that will make you unable to enable the publishVideo option in the next run. You will need to make a small change in clientmanager.js, in the resetclient() function: resetClient() {
this.is_screensharing = false; // set to default
this.videoSubscribing = true;
this.audioSubscribing = true;
this.videoPublishing = false;
this.audioPublishing = true;
localTracks.audioMixingTrack = null;
}The bug fix above will be put into dev/refactor8 and merge back to main when ready. But you can start doing that in your project before the release. |
Beta Was this translation helpful? Give feedback.
hi @burakkaraceylan , actually you can do this with a small code change.
You will want to use the ChannelMediaOptions to disable video publish when joining the channel. See API
Now, there is a small bug that will make you unable to enable the publishVideo option in the next run. You will need to make a small change in clientmanager.js, in the resetclient() function: