Skip to content

Commit

Permalink
Disable simulcasted screen share for FF (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidzhao authored Mar 19, 2022
1 parent 80407b9 commit 082bd30
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/room/participant/LocalParticipant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
} from '../track/options';
import { Track } from '../track/Track';
import { constraintsForOptions, mergeDefaultOptions } from '../track/utils';
import { isFireFox } from '../utils';
import Participant from './Participant';
import { ParticipantTrackPermission, trackPermissionToProto } from './ParticipantTrackPermission';
import { computeVideoEncodings, mediaTrackToLocalTrack } from './publishUtils';
Expand Down Expand Up @@ -359,6 +360,12 @@ export default class LocalParticipant extends Participant {
track.stopOnMute = true;
}

if (track.source === Track.Source.ScreenShare && isFireFox()) {
// Firefox does not work well with simulcasted screen share
// we frequently get no data on layer 0 when enabled
opts.simulcast = false;
}

// handle track actions
track.on(TrackEvent.Muted, this.onTrackMuted);
track.on(TrackEvent.Unmuted, this.onTrackUnmuted);
Expand Down

0 comments on commit 082bd30

Please sign in to comment.