]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix initial audio volume not corresponding to what's displayed
authorThibG <thib@sitedethib.com>
Mon, 15 Jun 2020 14:43:30 +0000 (16:43 +0200)
committerThibaut Girka <thib@sitedethib.com>
Wed, 17 Jun 2020 15:20:14 +0000 (17:20 +0200)
Port 755e8c76ab28a99905c66082757d892939e70c49 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
app/javascript/flavours/glitch/features/audio/index.js

index 49e91227fa9aeb949686cc1b9544a365dd7683a0..ba3534492952d35a1ed6753011fd792532bc0bfe 100644 (file)
@@ -125,6 +125,7 @@ class Audio extends React.PureComponent {
         this.wavesurfer.createPeakCache();
         this.wavesurfer.load(this.props.src);
         this.wavesurfer.toggleInteraction();
+        this.wavesurfer.setVolume(this.state.volume);
         this.loaded = true;
       }