aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/resolution-menu-button.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/assets/player/resolution-menu-button.ts')
-rw-r--r--client/src/assets/player/resolution-menu-button.ts7
1 files changed, 3 insertions, 4 deletions
diff --git a/client/src/assets/player/resolution-menu-button.ts b/client/src/assets/player/resolution-menu-button.ts
index 2efc8de69..d317a5efc 100644
--- a/client/src/assets/player/resolution-menu-button.ts
+++ b/client/src/assets/player/resolution-menu-button.ts
@@ -8,10 +8,7 @@ class ResolutionMenuButton extends MenuButton {
8 label: HTMLElement 8 label: HTMLElement
9 9
10 constructor (player: videojs.Player, options) { 10 constructor (player: videojs.Player, options) {
11 options.label = 'Quality'
12 super(player, options) 11 super(player, options)
13
14 this.controlText_ = 'Quality'
15 this.player = player 12 this.player = player
16 13
17 player.peertube().on('videoFileUpdate', () => this.updateLabel()) 14 player.peertube().on('videoFileUpdate', () => this.updateLabel())
@@ -51,7 +48,7 @@ class ResolutionMenuButton extends MenuButton {
51 this.player_, 48 this.player_,
52 { 49 {
53 id: -1, 50 id: -1,
54 label: 'Auto', 51 label: this.player_.localize('Auto'),
55 src: null 52 src: null
56 } 53 }
57 )) 54 ))
@@ -77,4 +74,6 @@ class ResolutionMenuButton extends MenuButton {
77 return this.player_.peertube().getCurrentResolutionLabel() 74 return this.player_.peertube().getCurrentResolutionLabel()
78 } 75 }
79} 76}
77ResolutionMenuButton.prototype.controlText_ = 'Quality'
78
80MenuButton.registerComponent('ResolutionMenuButton', ResolutionMenuButton) 79MenuButton.registerComponent('ResolutionMenuButton', ResolutionMenuButton)