From 27f143c6a0d44230584edca6d69c48330d410f39 Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Sat, 12 Mar 2022 14:36:14 -0800 Subject: [PATCH] Enable media debug Signed-off-by: James Ketrenos --- client/src/App.js | 6 ++-- client/src/MediaControl.js | 60 ++++++++++++++++++++------------------ 2 files changed, 33 insertions(+), 33 deletions(-) diff --git a/client/src/App.js b/client/src/App.js index a94ab02..5e8fcb1 100755 --- a/client/src/App.js +++ b/client/src/App.js @@ -39,12 +39,10 @@ const Table = () => { const [player, setPlayer] = useState(undefined); const fields = [ 'id', 'state', 'color', 'name' ]; - /* useEffect(() => { - console.log(peers); + console.log(`app - media-agent - peers`, peers); }, [peers]); - */ - + const onWsOpen = (event) => { console.log(`ws: open`); setError(""); diff --git a/client/src/MediaControl.js b/client/src/MediaControl.js index d04db3c..d54893a 100644 --- a/client/src/MediaControl.js +++ b/client/src/MediaControl.js @@ -7,7 +7,7 @@ import VolumeUp from '@mui/icons-material/VolumeUp'; import MicOff from '@mui/icons-material/MicOff'; import Mic from '@mui/icons-material/Mic'; import { GlobalContext } from "./GlobalContext.js"; -const debug = false; +const debug = true; /* Proxy object so we can pass in srcObject to