Fix saved mute in embed
authorChocobozzz <me@florianbigard.com>
Thu, 27 Feb 2020 09:45:16 +0000 (10:45 +0100)
committerChocobozzz <me@florianbigard.com>
Fri, 28 Feb 2020 12:45:42 +0000 (13:45 +0100)
client/src/standalone/videos/embed.ts

index e3bcbc010e20f6222d4e57690422a8c12966a719..879850daf68adf461fbff343216f651b5d569f80 100644 (file)
@@ -129,7 +129,7 @@ export class PeerTubeEmbed {
 
       this.autoplay = this.getParamToggle(params, 'autoplay', false)
       this.controls = this.getParamToggle(params, 'controls', true)
-      this.muted = this.getParamToggle(params, 'muted', false)
+      this.muted = this.getParamToggle(params, 'muted', undefined)
       this.loop = this.getParamToggle(params, 'loop', false)
       this.title = this.getParamToggle(params, 'title', true)
       this.enableApi = this.getParamToggle(params, 'api', this.enableApi)