Skip to content

Commit

Permalink
remove old code.
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwebrtc committed Jul 15, 2024
1 parent 85aec95 commit 96519fc
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/src/participant/local.dart
Original file line number Diff line number Diff line change
Expand Up @@ -296,15 +296,6 @@ class LocalParticipant extends Participant<LocalTrackPublication> {
track.codec = publishOptions.videoCodec;
}

// prefer to maintainResolution for screen share
if (track.source == TrackSource.screenShareVideo) {
var sender = track.transceiver!.sender;
var parameters = sender.parameters;
parameters.degradationPreference =
rtc.RTCDegradationPreference.MAINTAIN_RESOLUTION;
await sender.setParameters(parameters);
}

if ([TrackSource.camera, TrackSource.screenShareVideo]
.contains(track.source)) {
var degradationPreference = publishOptions.degradationPreference ??
Expand Down

0 comments on commit 96519fc

Please sign in to comment.