aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/resolution-menu-button.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-06-29 16:41:29 +0200
committerChocobozzz <me@florianbigard.com>2018-06-29 17:10:54 +0200
commit3a6f351b255d21ec42578632600ba699885f350e (patch)
treefdc770f5f59a87a929a5c85da9aed783e9676097 /client/src/assets/player/resolution-menu-button.ts
parent34b19192901b0f872c72ce8d94a69aeba51d1c29 (diff)
downloadPeerTube-3a6f351b255d21ec42578632600ba699885f350e.tar.gz
PeerTube-3a6f351b255d21ec42578632600ba699885f350e.tar.zst
PeerTube-3a6f351b255d21ec42578632600ba699885f350e.zip
Handle higher FPS for high resolution (test)
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, 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 )