Added support for muting audio and video from participants
This commit is contained in:
@@ -4,6 +4,87 @@
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
|
||||
> .controls {
|
||||
position: absolute;
|
||||
z-index: 10;
|
||||
right: 0;
|
||||
top: 0;
|
||||
display: flex;
|
||||
flex-direction:; row;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
|
||||
> .button {
|
||||
flex: 0 0 auto;
|
||||
margin: 4px;
|
||||
border-radius: 2px;
|
||||
background-position: center;
|
||||
background-size: 75%;
|
||||
background-repeat: no-repeat;
|
||||
background-color: rgba(#000, 0.5);
|
||||
cursor: pointer;
|
||||
transition-property: opacity, background-color;
|
||||
transition-duration: 0.15s;
|
||||
|
||||
+desktop() {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
opacity: 0.85;
|
||||
|
||||
&:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
+mobile() {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
}
|
||||
|
||||
&.unsupported {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
&.disabled {
|
||||
pointer-events: none;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
&.on {
|
||||
background-color: rgba(#fff, 0.7);
|
||||
}
|
||||
|
||||
&.mic {
|
||||
&.on {
|
||||
background-image: url('/resources/images/icon_mic_black_on.svg');
|
||||
}
|
||||
|
||||
&.off {
|
||||
background-image: url('/resources/images/icon_mic_white_off.svg');
|
||||
background-color: rgba(#d42241, 0.7);
|
||||
}
|
||||
|
||||
&.unsupported {
|
||||
background-image: url('/resources/images/icon_mic_white_unsupported.svg');
|
||||
}
|
||||
}
|
||||
|
||||
&.webcam {
|
||||
&.on {
|
||||
background-image: url('/resources/images/icon_webcam_black_on.svg');
|
||||
}
|
||||
|
||||
&.off {
|
||||
background-image: url('/resources/images/icon_webcam_white_on.svg');
|
||||
}
|
||||
|
||||
&.unsupported {
|
||||
background-image: url('/resources/images/icon_webcam_white_unsupported.svg');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+mobile() {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -11,47 +92,6 @@
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
> .indicators {
|
||||
position: absolute;
|
||||
z-index: 10
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
display: flex;
|
||||
flex-direction:; row;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
|
||||
> .icon {
|
||||
flex: 0 0 auto;
|
||||
margin: 4px;
|
||||
margin-left: 0;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
background-position: center;
|
||||
background-size: 75%;
|
||||
background-repeat: no-repeat;
|
||||
transition-property: opacity;
|
||||
transition-duration: 0.15s;
|
||||
|
||||
+desktop() {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
&.raise-hand {
|
||||
background-image: url('/resources/images/icon_remote_raise_hand.svg');
|
||||
}
|
||||
|
||||
&.mic-off {
|
||||
background-image: url('/resources/images/icon_remote_mic_white_off.svg');
|
||||
}
|
||||
|
||||
&.webcam-off {
|
||||
background-image: url('/resources/images/icon_remote_webcam_white_off.svg');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.incompatible-video {
|
||||
position: absolute;
|
||||
z-index: 2
|
||||
|
||||
Reference in New Issue
Block a user