initial localUserStore volume
This commit is contained in:
parent
0d27b4ad43
commit
aa38d1a5bd
1 changed files with 4 additions and 0 deletions
|
@ -19,6 +19,10 @@
|
||||||
let decreaseWhileTalking: boolean = true;
|
let decreaseWhileTalking: boolean = true;
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
|
volume = localUserStore.getAudioPlayerVolume();
|
||||||
|
audioManagerVolumeStore.setMuted(localUserStore.getAudioPlayerMuted());
|
||||||
|
setVolume();
|
||||||
|
|
||||||
unsubscriberFileStore = audioManagerFileStore.subscribe(() =>{
|
unsubscriberFileStore = audioManagerFileStore.subscribe(() =>{
|
||||||
HTMLAudioPlayer.pause();
|
HTMLAudioPlayer.pause();
|
||||||
HTMLAudioPlayer.loop = get(audioManagerVolumeStore).loop;
|
HTMLAudioPlayer.loop = get(audioManagerVolumeStore).loop;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue