Skip to content

Commit

Permalink
[3/4] Label does not change after changing quality
Browse files Browse the repository at this point in the history
3/4 compatibility fix VideoJs 7+

The decision is very bad. I did not find another option to access the button to change the values. But it works.

kmoskwiak#129 (comment)
  • Loading branch information
BaNru authored Apr 4, 2019
1 parent aaa4c64 commit ac2aff0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/videojs-resolution-switcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
if(!this.player_)return false;
var selection = this.player_.currentResolution();
this.selected(this.options_.label === selection.label);
this.player_.controlBar.resolutionSwitcher.lastElementChild.textContent = selection.label;
};
MenuItem.registerComponent('ResolutionMenuItem', ResolutionMenuItem);

Expand Down

0 comments on commit ac2aff0

Please sign in to comment.