Refactor the ConferenceCallManager class

This commit is contained in:
Robert Long
2021-08-06 14:56:14 -07:00
parent dff8a1acd3
commit 8e2688b3db
7 changed files with 325 additions and 366 deletions

View File

@@ -104,12 +104,12 @@ export function Room({ manager }) {
);
}
function Participant({ userId, stream, muted, local }) {
function Participant({ userId, stream, local }) {
const videoRef = useRef();
useEffect(() => {
if (stream) {
if (muted) {
if (local) {
videoRef.current.muted = true;
}