Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix wrong audio only resolution label for hls

Chocobozzz8ff604c7e300
diff --git a/client/src/assets/player/videojs-components/resolution-menu-button.ts b/client/src/assets/player/videojs-components/resolution-menu-button.ts
index 86be03af76..2de3ece19a 100644
--- a/client/src/assets/player/videojs-components/resolution-menu-button.ts
+++ b/client/src/assets/player/videojs-components/resolution-menu-button.ts
@@ -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