cleaning up
This commit is contained in:
@@ -1,24 +1,3 @@
|
||||
/**
|
||||
* take in the rooms
|
||||
* which ones am I in
|
||||
* on mounting, call all other folks
|
||||
*
|
||||
* on someone untuning from a line and they are not in any other lines
|
||||
* if they are in the peer connections that we have stored, then destroy them and remove them
|
||||
*
|
||||
* on someone tuning into a line, they are seen in the list of ids for me
|
||||
* if they are not in my local peers storage then I want to initiate connections so that I can communicate with them
|
||||
*
|
||||
*
|
||||
* on me untuning from a line, we need to destroy the right one from the store of peers and destroy the connection
|
||||
*
|
||||
*
|
||||
* on me changing my media devices, I need to replace stream for all peer connections so that they get a whole new set
|
||||
*
|
||||
*
|
||||
* listen for any calls to me, as well as any answers back to me
|
||||
*/
|
||||
|
||||
import React, { useEffect, useContext, useState, useRef, useMemo, useCallback } from 'react';
|
||||
import Peer from 'simple-peer';
|
||||
import useAuth from './AuthProvider';
|
||||
|
||||
@@ -178,7 +178,7 @@ function UserProfileAvatar() {
|
||||
if (videoRef.current && userLocalStream) videoRef.current.srcObject = userLocalStream;
|
||||
}, [userLocalStream]);
|
||||
|
||||
if (userLocalStream) return <video ref={videoRef} muted height={'60'} width={'60'} autoPlay />;
|
||||
if (userLocalStream) return <video ref={videoRef} muted height={'50'} width={'50'} autoPlay />;
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user