Added video calling

This commit is contained in:
Mitchell McCaffrey
2020-03-19 12:02:31 +11:00
parent 25ee35de44
commit fb43cc3fc2
8 changed files with 97 additions and 15 deletions

17
src/components/Party.js Normal file
View File

@@ -0,0 +1,17 @@
import React from "react";
import { Flex } from "theme-ui";
import PartyVideo from "./PartyVideo";
function Party({ streams }) {
return (
<Flex p={4} bg="highlight" sx={{ flexDirection: "column", width: "200px" }}>
{Object.entries(streams).map(([id, stream]) => (
<PartyVideo key={id} stream={stream} />
))}
</Flex>
);
}
export default Party;