Skip to content

Commit

Permalink
feat(MediaSettings): add the option to disable streams by default whe…
Browse files Browse the repository at this point in the history
…n joining the call

Signed-off-by: DorraJaouad <[email protected]>
  • Loading branch information
DorraJaouad committed Oct 7, 2024
1 parent c9eac69 commit 7f13da2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/components/MediaSettings/MediaSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@
@refresh="updateDevices"
@update:deviceId="handleVideoInputIdChange" />
<MediaDevicesSpeakerTest />
<NcCheckboxRadioSwitch v-if="!isPublicShareAuthSidebar"
class="checkbox"
:checked="cameraAndMicrophoneDefaultDisabled"
@update:checked="setCameraAndMicrophoneDefaultDisabled">
{{ t('spreed', 'Always have camera and microphone turned off by default') }}
</NcCheckboxRadioSwitch>
</template>

<template #tab-panel:backgrounds>
Expand Down Expand Up @@ -679,6 +685,10 @@ export default {
this.videoInputId = videoInputId
this.updatePreferences('videoinput')
},
setCameraAndMicrophoneDefaultDisabled(value) {
this.settingsStore.setCameraAndMicrophoneDefaultDisabled(this.token, value)
},
},
}
</script>
Expand Down Expand Up @@ -760,7 +770,7 @@ export default {
.checkbox {
display: flex;
justify-content: center;
justify-content: flex-start;
margin: calc(var(--default-grid-baseline) * 2);
&--warning {
Expand Down

0 comments on commit 7f13da2

Please sign in to comment.