Skip to content

Commit

Permalink
refactor(flat-rtc): add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrious committed May 5, 2022
1 parent 1c9562e commit e7fb340
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions services/rtc/flat-rtc-agora-electron/src/rtc-share-screen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ export class RTCShareScreen extends FlatRTCShareScreen {
const { uid } = this._params$.value;
try {
if (active) {
// this is a bug in agora SDK, when the `desktop` screen sharing is done,
// and then the `web` side does the screen sharing,
// the `desktop` will have a black screen.
// this is because the SDK has `mute` the remote screen sharing stream
this.client.muteRemoteVideoStream(uid, false);
this.client.setupRemoteVideo(uid, this._el$.value);
this.client.setupViewContentMode(uid, 1, undefined);
Expand Down

0 comments on commit e7fb340

Please sign in to comment.