From: Chocobozzz Date: Fri, 29 Jun 2018 15:45:05 +0000 (+0200) Subject: Fix FPS label in resolution menu X-Git-Tag: v1.0.0-beta.10.pre.1~102 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=395ecf709dfa2cf66a65bfeacb1594b79ff963d4;p=oweals%2Fpeertube.git Fix FPS label in resolution menu --- 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 { } getCurrentResolutionLabel () { - return this.currentVideoFile ? this.currentVideoFile.resolution.label : '' + if (!this.currentVideoFile) return '' + + const fps = this.currentVideoFile.fps >= 50 ? this.currentVideoFile.fps : '' + return this.currentVideoFile.resolution.label + fps } updateVideoFile (