private renderer
private fakeRenderer
private autoResolution = true
+ private forbidAutoResolution = false
private isAutoResolutionObservation = false
private videoViewInterval
this.trigger('autoResolutionUpdate')
}
- disableAutoResolution () {
+ disableAutoResolution (forbid = false) {
+ if (forbid === true) this.forbidAutoResolution = true
+
this.autoResolution = false
this.trigger('autoResolutionUpdate')
}
+ isAutoResolutionForbidden () {
+ return this.forbidAutoResolution === true
+ }
+
getCurrentVideoFile () {
return this.currentVideoFile
}
}
private fallbackToHttp (done?: Function, play = true) {
+ this.disableAutoResolution(true)
+
this.flushVideoFile(this.currentVideoFile, true)
this.torrent = null
this.player.controlBar.on('mouseenter', () => disableInactivity())
settingsDialog.on('mouseenter', () => disableInactivity())
this.player.controlBar.on('mouseleave', () => enableInactivity())
- settingsDialog.on('mouseleave', () => enableInactivity())
+ // settingsDialog.on('mouseleave', () => enableInactivity())
}
private pickAverageVideoFile () {