From 395ecf709dfa2cf66a65bfeacb1594b79ff963d4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 29 Jun 2018 17:45:05 +0200 Subject: Fix FPS label in resolution menu --- client/src/assets/player/peertube-videojs-plugin.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'client/src') 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 ( -- cgit v1.2.3