aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/assets/player')
-rw-r--r--client/src/assets/player/resolution-menu-button.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/client/src/assets/player/resolution-menu-button.ts b/client/src/assets/player/resolution-menu-button.ts
index e30074173..d53a24151 100644
--- a/client/src/assets/player/resolution-menu-button.ts
+++ b/client/src/assets/player/resolution-menu-button.ts
@@ -35,11 +35,16 @@ class ResolutionMenuButton extends MenuButton {
35 createMenu () { 35 createMenu () {
36 const menu = new Menu(this.player_) 36 const menu = new Menu(this.player_)
37 for (const videoFile of this.player_.peertube().videoFiles) { 37 for (const videoFile of this.player_.peertube().videoFiles) {
38 let label = videoFile.resolution.label
39 if (videoFile.fps && videoFile.fps >= 50) {
40 label += videoFile.fps
41 }
42
38 menu.addChild(new ResolutionMenuItem( 43 menu.addChild(new ResolutionMenuItem(
39 this.player_, 44 this.player_,
40 { 45 {
41 id: videoFile.resolution.id, 46 id: videoFile.resolution.id,
42 label: videoFile.resolution.label, 47 label,
43 src: videoFile.magnetUri 48 src: videoFile.magnetUri
44 }) 49 })
45 ) 50 )