fixing header more with search bar or not

This commit is contained in:
talksik
2022-05-05 04:37:56 -05:00
parent 4f8922678c
commit fbcd97ca89
3 changed files with 37 additions and 20 deletions
@@ -24,6 +24,15 @@ function Video({ peer }: { peer: Peer }) {
console.log("stream coming in, adding video src object");
if (videoRef?.current) videoRef.current.srcObject = remoteStream;
// check if other user muted
setInterval(() => {
const videoAvailabe = remoteStream
.getVideoTracks()
.find((track) => track.enabled);
if (!videoAvailabe) console.log("someone muted!!! ooo");
});
});
peer.on("close", () => {