+ // Check if auto resolution is forbidden or not
+ if (this.id === -1) {
+ if (this.player_.peertube().isAutoResolutionForbidden()) {
+ this.addClass('disabled')
+ } else {
+ this.removeClass('disabled')
+ }
+ }
+
+ if (this.player_.peertube().isAutoResolutionOn()) {
+ this.selected(this.id === -1)
+ return
+ }
+