Removed log

This commit is contained in:
Mehdi Osman 2021-12-05 20:34:34 +01:00 committed by GitHub
parent 762b681f90
commit 963470ea71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,6 @@ const ChatWindow: FC<Props> = function ChatWindow({ userId, incomeStream, localS
const iid = setInterval(() => {
const settings = incomeStream.getVideoTracks()[0]?.getSettings()
const isDummyVideoTrack = !!settings ? (settings.width === 2 || settings.frameRate === 0) : true
console.log(isDummyVideoTrack, settings)
const shouldBeEnabled = !isDummyVideoTrack
if (shouldBeEnabled !== localVideoEnabled) {
setRemoteVideoEnabled(shouldBeEnabled)