This commit is contained in:
2023-12-01 11:03:24 +01:00
parent d1472c42cf
commit 691e42fb70
6 changed files with 480 additions and 219 deletions

View File

@@ -9,11 +9,9 @@ function App() {
const [focusedIndex, setFocusedIndex] = useState<number>(-1)
useEffect(() => {
start()
.then((streams) => Promise.all(streams))
.then((streams) => {
setMediaStreams(streams)
})
start().then((streams) => {
setMediaStreams(streams)
})
}, [])
const handleClick = (index: number) => (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => {