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)
private async buildDock (videoInfo: VideoDetails, configResponse: Response) {
if (!this.controls) return
+ // On webtorrent fallback, player may have been disposed
+ if (!this.player.player_) return
+
const title = this.title ? videoInfo.name : undefined
const config: ServerConfig = await configResponse.json()