From cebf28c5688eae285a19db139f6c04bf4a07bb9d Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Thu, 9 Apr 2020 11:48:15 +1000 Subject: [PATCH] Removed autoplay and trigerred play with script --- src/components/Stream.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Stream.js b/src/components/Stream.js index 95994c1..5204684 100644 --- a/src/components/Stream.js +++ b/src/components/Stream.js @@ -5,10 +5,11 @@ function Stream({ stream, muted }) { useEffect(() => { if (audioRef.current) { audioRef.current.srcObject = stream; + audioRef.current.play(); } }, [stream]); - return