{#each [...Array(NB_BARS).keys()] as i (i)}
{/each}
diff --git a/front/src/Components/MyCamera.svelte b/front/src/Components/MyCamera.svelte
index e84d763d..f0952084 100644
--- a/front/src/Components/MyCamera.svelte
+++ b/front/src/Components/MyCamera.svelte
@@ -1,5 +1,5 @@
diff --git a/front/src/Components/Video/VideoMediaBox.svelte b/front/src/Components/Video/VideoMediaBox.svelte
index e5199a37..4cf629aa 100644
--- a/front/src/Components/Video/VideoMediaBox.svelte
+++ b/front/src/Components/Video/VideoMediaBox.svelte
@@ -11,13 +11,14 @@
import type { Streamable } from "../../Stores/StreamableCollectionStore";
import Woka from "../Woka/Woka.svelte";
- import { onMount } from "svelte";
+ import { onDestroy, onMount } from "svelte";
import { isMediaBreakpointOnly } from "../../Utils/BreakpointsUtils";
export let clickable = false;
export let peer: VideoPeer;
let streamStore = peer.streamStore;
+ let volumeStore = peer.volumeStore;
let name = peer.userName;
let statusStore = peer.statusStore;
let constraintStore = peer.constraintsStore;
@@ -29,6 +30,11 @@
let embedScreen: EmbedScreen;
let videoContainer: HTMLDivElement;
let minimized = isMediaBreakpointOnly("md");
+ let volume = 0;
+
+ const unsubscribe = volumeStore.subscribe((value) => {
+ volume = value ?? 0;
+ });
if (peer) {
embedScreen = {
@@ -48,6 +54,10 @@
onMount(() => {
resizeObserver.observe(videoContainer);
});
+
+ onDestroy(() => {
+ unsubscribe();
+ });
{#if $constraintStore && $constraintStore.audio !== false}
-
+
{/if}