diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-29 17:45:05 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-29 17:45:05 +0200 |
commit | 395ecf709dfa2cf66a65bfeacb1594b79ff963d4 (patch) | |
tree | 5a13ba84c762bc1785286eabc20e43f4eb9ae47b /client | |
parent | 3a6f351b255d21ec42578632600ba699885f350e (diff) | |
download | PeerTube-395ecf709dfa2cf66a65bfeacb1594b79ff963d4.tar.gz PeerTube-395ecf709dfa2cf66a65bfeacb1594b79ff963d4.tar.zst PeerTube-395ecf709dfa2cf66a65bfeacb1594b79ff963d4.zip |
Fix FPS label in resolution menu
Diffstat (limited to 'client')
-rw-r--r-- | client/src/assets/player/peertube-videojs-plugin.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/client/src/assets/player/peertube-videojs-plugin.ts b/client/src/assets/player/peertube-videojs-plugin.ts index 5fad139b9..e268510fa 100644 --- a/client/src/assets/player/peertube-videojs-plugin.ts +++ b/client/src/assets/player/peertube-videojs-plugin.ts | |||
@@ -134,7 +134,10 @@ class PeerTubePlugin extends Plugin { | |||
134 | } | 134 | } |
135 | 135 | ||
136 | getCurrentResolutionLabel () { | 136 | getCurrentResolutionLabel () { |
137 | return this.currentVideoFile ? this.currentVideoFile.resolution.label : '' | 137 | if (!this.currentVideoFile) return '' |
138 | |||
139 | const fps = this.currentVideoFile.fps >= 50 ? this.currentVideoFile.fps : '' | ||
140 | return this.currentVideoFile.resolution.label + fps | ||
138 | } | 141 | } |
139 | 142 | ||
140 | updateVideoFile ( | 143 | updateVideoFile ( |