Skip to content

Commit

Permalink
Merge pull request #18 from DispatchCommit/patch-1
Browse files Browse the repository at this point in the history
Add configuration option for placementIndex
  • Loading branch information
chrisboustead authored Jan 17, 2020
2 parents e5da5cc + e8e308b commit f609f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class HlsQualitySelectorPlugin {
const placementIndex = player.controlBar.children().length - 2;
const concreteButtonInstance = player.controlBar.addChild(this._qualityButton,
{componentClass: 'qualitySelector'},
placementIndex);
this.config.placementIndex || placementIndex);

concreteButtonInstance.addClass('vjs-quality-selector');
if (!this.config.displayCurrentQuality) {
Expand Down

0 comments on commit f609f50

Please sign in to comment.