Skip to content

Commit

Permalink
Merge pull request #20 from AsianCat54x/master
Browse files Browse the repository at this point in the history
Prevent screen from overlapping with the panels
  • Loading branch information
sbalikondwar committed Oct 21, 2021
2 parents 6d8b5b4 + 4089bfc commit 41121c2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/VideoTrack/VideoTrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import {styled} from '@material-ui/core/styles';
import useMediaStreamTrack from '../../hooks/useMediaStreamTrack/useMediaStreamTrack';

const Video = styled('video')({
height: '100%',
width: '100%',
maxHeight: '100%',
objectFit: 'contain',
});

export default function VideoTrack({ track, isLocal, priority, mainParticipant }) {
Expand Down Expand Up @@ -35,5 +34,5 @@ export default function VideoTrack({ track, isLocal, priority, mainParticipant }
// console.log(priority)
// const mainParticipantStyle = isLocal && isFrontFacing && priority === 'high' ? { height: '100%', objectFit: 'cover' } : {}

return <Video ref={videoElementRef} style={{...style, ...{ height: '100%', objectFit: 'cover' }}} />;
return <Video ref={videoElementRef} style={{...style, ...{ height: '100%' }}} />;
}

0 comments on commit 41121c2

Please sign in to comment.