Please move this statement into `onFetchAvailableQualities`:
```javascript
if (this.config.hasHDQualities) {
  this.trigger('videoQualityControl.qualitiesAreAvailable');
}
```