comms setup and devices and cleanup

This commit is contained in:
talksik
2022-05-31 16:33:15 -05:00
parent 0841105731
commit 8b3ebdf9ce
3 changed files with 6 additions and 89 deletions
@@ -18,7 +18,11 @@ export function CommunicationsProvider({ children }: { children: React.ReactNode
// todo save the selected devices in localstorage
useEffect(() => {}, []);
useEffect(() => {
navigator.mediaDevices.getDisplayMedia().then((mediaStream) => {
console.log('selected stream', mediaStream);
});
}, []);
return (
<CommunicationsContext.Provider value={{ userDeviceSelections }}>