Skip to content

Commit

Permalink
feat(video): [closes #180] mute self screen stream audio
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyckahn committed Nov 4, 2023
1 parent 6a67119 commit 27cbbb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Room/PeerVideo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { VideoStreamType } from 'models/chat'
import { SelectedPeerStream } from './RoomVideoDisplay'

interface PeerVideoProps {
isSelfScreenStream?: boolean
isSelfVideo?: boolean
numberOfVideos: number
onVideoClick?: (
Expand All @@ -29,6 +30,7 @@ const nextPerfectSquare = (base: number) => {
}

export const PeerVideo = ({
isSelfScreenStream,
isSelfVideo,
numberOfVideos,
onVideoClick,
Expand Down Expand Up @@ -87,6 +89,7 @@ export const PeerVideo = ({
>
<video
playsInline
muted={isSelfScreenStream}
ref={videoRef}
onClick={handleVideoClick}
style={{
Expand Down
1 change: 1 addition & 0 deletions src/components/Room/RoomVideoDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ export const RoomVideoDisplay = ({
)}
{selfScreenStream && (
<PeerVideo
isSelfScreenStream
numberOfVideos={numberOfVideos}
onVideoClick={handleVideoClick}
userId={userId}
Expand Down

0 comments on commit 27cbbb1

Please sign in to comment.