diff options
Diffstat (limited to 'client/src/assets')
-rw-r--r-- | client/src/assets/player/shared/settings/resolution-menu-button.ts | 3 | ||||
-rw-r--r-- | client/src/assets/player/shared/settings/resolution-menu-item.ts | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/client/src/assets/player/shared/settings/resolution-menu-button.ts b/client/src/assets/player/shared/settings/resolution-menu-button.ts index 8bd5b4f03..a0b349f67 100644 --- a/client/src/assets/player/shared/settings/resolution-menu-button.ts +++ b/client/src/assets/player/shared/settings/resolution-menu-button.ts | |||
@@ -68,7 +68,8 @@ class ResolutionMenuButton extends MenuButton { | |||
68 | this.menu.addChild(new ResolutionMenuItem( | 68 | this.menu.addChild(new ResolutionMenuItem( |
69 | this.player_, | 69 | this.player_, |
70 | { | 70 | { |
71 | id: d.id, | 71 | id: d.id + '', |
72 | resolutionId: d.id, | ||
72 | label, | 73 | label, |
73 | selected: d.selected | 74 | selected: d.selected |
74 | }) | 75 | }) |
diff --git a/client/src/assets/player/shared/settings/resolution-menu-item.ts b/client/src/assets/player/shared/settings/resolution-menu-item.ts index 6047f52f7..678eb368b 100644 --- a/client/src/assets/player/shared/settings/resolution-menu-item.ts +++ b/client/src/assets/player/shared/settings/resolution-menu-item.ts | |||
@@ -3,7 +3,7 @@ import videojs from 'video.js' | |||
3 | const MenuItem = videojs.getComponent('MenuItem') | 3 | const MenuItem = videojs.getComponent('MenuItem') |
4 | 4 | ||
5 | export interface ResolutionMenuItemOptions extends videojs.MenuItemOptions { | 5 | export interface ResolutionMenuItemOptions extends videojs.MenuItemOptions { |
6 | id: number | 6 | resolutionId: number |
7 | } | 7 | } |
8 | 8 | ||
9 | class ResolutionMenuItem extends MenuItem { | 9 | class ResolutionMenuItem extends MenuItem { |
@@ -21,7 +21,7 @@ class ResolutionMenuItem extends MenuItem { | |||
21 | this.autoResolutionEnabled = true | 21 | this.autoResolutionEnabled = true |
22 | this.autoResolutionChosen = '' | 22 | this.autoResolutionChosen = '' |
23 | 23 | ||
24 | this.resolutionId = options.id | 24 | this.resolutionId = options.resolutionId |
25 | this.label = options.label | 25 | this.label = options.label |
26 | 26 | ||
27 | player.peertubeResolutions().on('resolutionChanged', () => this.updateSelection()) | 27 | player.peertubeResolutions().on('resolutionChanged', () => this.updateSelection()) |