Skip to content

Commit aa4eb19

Browse files
committed
adding audio output selection in waiting room
1 parent ea1ee2f commit aa4eb19

File tree

5 files changed

+129
-76
lines changed

5 files changed

+129
-76
lines changed

package-lock.json

Lines changed: 36 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"@testing-library/react": "^11.1.0",
1414
"@testing-library/user-event": "^12.1.10",
1515
"@vonage/video-effects": "^0.1.0",
16-
"@vonage/video-express": "^1.1.4",
16+
"@vonage/video-express": "^1.2.0",
1717
"axios": "^0.21.1",
1818
"body-parser": "^1.19.0",
1919
"concurrently": "^6.2.0",

src/App.js

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
BrowserRouter as Router,
55
Switch,
66
Route,
7-
Redirect
7+
Redirect,
88
} from 'react-router-dom';
99
import { UserContext } from './context/UserContext';
1010
import VideoRoom from './components/VideoRoom';
@@ -27,40 +27,41 @@ const theme = () => {
2727
palette: {
2828
type: 'light',
2929
primary: {
30-
main: primary
30+
main: primary,
3131
},
3232
secondary: {
33-
main: secondary
33+
main: secondary,
3434
},
3535
bodyBackground: {
36-
black: '#131415'
36+
black: '#131415',
3737
},
3838
callBackground: {
39-
main: '#20262D'
39+
main: '#20262D',
4040
},
4141
toolbarBackground: {
42-
main: '#41464D'
42+
main: '#41464D',
4343
},
4444
activeButtons: {
4545
green: '#1C8731',
46-
red: '#D50F2C'
47-
}
48-
}
46+
red: '#D50F2C',
47+
},
48+
},
4949
});
5050
};
5151

5252
function App() {
5353
const [user, setUser] = useState({
5454
videoEffects: {
5555
backgroundBlur: false,
56-
virtualBackground: false
56+
virtualBackground: false,
5757
},
5858
defaultSettings: {
5959
publishAudio: true,
6060
publishVideo: true,
6161
audioSource: undefined,
62-
videoSource: undefined
63-
}
62+
videoSource: undefined,
63+
audioOutput: undefined,
64+
},
6465
});
6566
const userValue = useMemo(() => ({ user, setUser }), [user, setUser]);
6667
return (
@@ -78,7 +79,7 @@ function App() {
7879
<Route path="*">
7980
<Redirect
8081
to={{
81-
pathname: '/'
82+
pathname: '/',
8283
}}
8384
/>
8485
</Route>

0 commit comments

Comments
 (0)