Skip to content

Commit

Permalink
Turned Permisssions OFF
Browse files Browse the repository at this point in the history
  • Loading branch information
nacheco committed Aug 14, 2022
1 parent f00b658 commit d883e83
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 31 deletions.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Volt</title>
<title>Volt⚡ - A Minimalist Take On Video Conferencing</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
3 changes: 2 additions & 1 deletion src/SocketContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ const ContextProvider = ({ children }) => {
const userVideo = useRef(null);
const connectionRef = useRef(null);

// Ask For Permission
useEffect(() => {
navigator.mediaDevices
.getUserMedia({ video: true, audio: true })
.getUserMedia({ video: false, audio: false })
.then((currentStream) => {
setStream(currentStream);
try {
Expand Down
29 changes: 0 additions & 29 deletions src/components/Dashboard/Dashboard.jsx
Original file line number Diff line number Diff line change
@@ -1,37 +1,8 @@
import React from "react";
import { Typography, AppBar } from "@material-ui/core";
import { makeStyles } from "@material-ui/core/styles";

import VideoPlayer from "./VideoPlayer";
import Sidebar from "./Sidebar";
import Notifications from "./Notification";

const useStyles = makeStyles((theme) => ({
appBar: {
borderRadius: 15,
margin: "30px 100px",
display: "flex",
flexDirection: "row",
justifyContent: "center",
alignItems: "center",
width: "600px",
border: "2px solid black",

[theme.breakpoints.down("xs")]: {
width: "90%",
},
},
image: {
marginLeft: "15px",
},
wrapper: {
display: "flex",
flexDirection: "column",
alignItems: "center",
width: "100%",
},
}));

const Dashboard = () => {
return (
<div className="flex flex-col items-center w-full h-[60vh] my-12">
Expand Down

0 comments on commit d883e83

Please sign in to comment.