Bind call buttons and set ringing timeout
- Accept call with or without video
- Ringing / connection timeout
- Close camera when call ends
- Display incoming call type (audio vs video)
GitLab: #154
GitLab: #165
GitLab: #168
Change-Id: I93ba7148941656b5bebd3ca38898bce0d4db41ca
diff --git a/client/src/components/CallButtons.tsx b/client/src/components/CallButtons.tsx
index 6e77b39..f6f7275 100644
--- a/client/src/components/CallButtons.tsx
+++ b/client/src/components/CallButtons.tsx
@@ -284,7 +284,7 @@
<ColoredCallButton
aria-label="answer call audio"
onClick={() => {
- acceptCall();
+ acceptCall(false);
}}
Icon={PlaceAudioCallIcon}
paletteColor={(theme) => theme.palette.success}
@@ -300,7 +300,7 @@
<ColoredCallButton
aria-label="answer call video"
onClick={() => {
- acceptCall();
+ acceptCall(true);
}}
paletteColor={(theme) => theme.palette.success}
Icon={VideoCameraIcon}