aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-06-13 14:05:46 +0200
committerChocobozzz <me@florianbigard.com>2022-06-13 14:05:46 +0200
commitf552ca84a568b77062d3e4fc06fb9e3096529b1b (patch)
treeb05be3525878a73bb07c74a96d7ce1b6ea5b4a80 /client/src/assets/player/shared
parent85cfe29be65b34ae816bcecf5413c2655a3b76f3 (diff)
downloadPeerTube-f552ca84a568b77062d3e4fc06fb9e3096529b1b.tar.gz
PeerTube-f552ca84a568b77062d3e4fc06fb9e3096529b1b.tar.zst
PeerTube-f552ca84a568b77062d3e4fc06fb9e3096529b1b.zip
Upgrade client dependencies
Diffstat (limited to 'client/src/assets/player/shared')
-rw-r--r--client/src/assets/player/shared/settings/resolution-menu-button.ts3
-rw-r--r--client/src/assets/player/shared/settings/resolution-menu-item.ts4
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'
3const MenuItem = videojs.getComponent('MenuItem') 3const MenuItem = videojs.getComponent('MenuItem')
4 4
5export interface ResolutionMenuItemOptions extends videojs.MenuItemOptions { 5export interface ResolutionMenuItemOptions extends videojs.MenuItemOptions {
6 id: number 6 resolutionId: number
7} 7}
8 8
9class ResolutionMenuItem extends MenuItem { 9class 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())