this.label = options.label
this.id = options.id
- player.peertube().on('videoFileUpdate', () => this.update())
+ player.peertube().on('videoFileUpdate', () => this.updateSelection())
}
handleClick (event) {
this.player_.peertube().updateResolution(this.id)
}
- update () {
+ updateSelection () {
this.selected(this.player_.peertube().getCurrentResolutionId() === this.id)
}
}