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
-1
View File
@@ -93,7 +93,6 @@
"typescript": "~4.5.4"
},
"dependencies": {
"@100mslive/react-sdk": "^0.1.0",
"@emotion/react": "^11.9.0",
"@emotion/styled": "^11.8.1",
"@getstation/electron-google-oauth2": "^2.1.0",
@@ -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 }}>