Skip to content

Commit 1a507e7

Browse files
committed
fix: update the screen share track
1 parent addeed3 commit 1a507e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/RoomScreen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function ParticipantTile({ participant }) {
5353

5454
const cameraTrack = tracks.find((t) => t.source === Track.Source.Camera && t.publication?.track);
5555
const screenShareTrack = tracks.find((t) => t.source === Track.Source.ScreenShare && t.publication?.track);
56-
const videoTrack = cameraTrack || screenShareTrack;
56+
const videoTrack = screenShareTrack || cameraTrack;
5757
const publication = videoTrack?.publication;
5858

5959
useEffect(() => {

0 commit comments

Comments
 (0)