diff --git a/common/src/main/java/com/liskovsoft/smartyoutubetv2/common/exoplayer/selector/TrackSelectorUtil.java b/common/src/main/java/com/liskovsoft/smartyoutubetv2/common/exoplayer/selector/TrackSelectorUtil.java index b06c3c233..1ee89a64a 100644 --- a/common/src/main/java/com/liskovsoft/smartyoutubetv2/common/exoplayer/selector/TrackSelectorUtil.java +++ b/common/src/main/java/com/liskovsoft/smartyoutubetv2/common/exoplayer/selector/TrackSelectorUtil.java @@ -11,6 +11,7 @@ import java.util.HashMap; public class TrackSelectorUtil { private static final String CODEC_SHORT_AV1 = "av01"; + private static final String CODEC_SHORT_AV1_FIXED = "av1"; private static final String CODEC_SHORT_AVC = "avc"; private static final String CODEC_SHORT_VP9 = "vp9"; private static final String CODEC_SHORT_VP9_HDR = "vp9.2"; @@ -134,7 +135,8 @@ public class TrackSelectorUtil { for (String codecName : codecNames) { if (codec.contains(codecName)) { - return codecName; + return codecName + .replace(CODEC_SHORT_AV1, CODEC_SHORT_AV1_FIXED); } }