Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tauri/src/windows/camera/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ function ConsumerComponent({
</div>
)}
{visibleTracks.map((track) => {
const isSelfTrack = callTokens?.cameraTrackId === track?.publication?.trackSid;

return (
<div className="relative overflow-hidden rounded-lg group" key={track.sid}>
<VideoTrack
Expand All @@ -126,6 +128,7 @@ function ConsumerComponent({
track?.participant?.isSpeaking ?
"1px solid rgba(157, 253, 49, 0.8)"
: "1px solid rgba(0, 0, 0, 0.1)",
transform: isSelfTrack ? "scaleX(-1)" : undefined,
}}
/>
{callTokens?.cameraTrackId === track?.publication?.trackSid && (
Expand Down