Fix wrong audio only resolution label for hls
authorChocobozzz <me@florianbigard.com>
Wed, 29 Jan 2020 13:22:32 +0000 (14:22 +0100)
committerChocobozzz <me@florianbigard.com>
Wed, 29 Jan 2020 13:22:32 +0000 (14:22 +0100)
client/src/assets/player/videojs-components/resolution-menu-button.ts

index 86be03af761deb5a8b69587fc0cc520d1f595330..2de3ece19a5caa81dbe086f1e05f4fadf6da267c 100644 (file)
@@ -75,7 +75,7 @@ class ResolutionMenuButton extends MenuButton {
       // Skip auto resolution, we'll add it ourselves
       if (d.id === -1) continue
 
-      const label = d.id === 0
+      const label = d.label === '0p'
         ? this.player.localize('Audio-only')
         : d.label