Skip to content

Commit

Permalink
squash: fix test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
jallamsetty1 committed Nov 11, 2024
1 parent 436e6e6 commit b803935
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/RTC/TraceablePeerConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -971,10 +971,10 @@ TraceablePeerConnection.prototype._remoteTrackAdded = function(stream, track, tr
stream,
track,
ssrc: trackSsrc,
videoType: mediaType === MediaType.VIDEO ? VideoType.CAMERA : undefined
videoType: peerMediaInfo?.videoType
};

if (this._remoteSsrcMap.has(sourceName)) {
if (this._remoteSsrcMap.has(sourceName) && mediaType === MediaType.VIDEO) {
trackDetails.videoType = this._remoteSsrcMap.get(sourceName).videoType;
}

Expand Down

0 comments on commit b803935

Please sign in to comment.