feat(trailer): Use selected variant URL to avoid adaptive fallback crashes in Media3 HLS

This commit is contained in:
tapframe 2026-04-01 15:02:10 +05:30
parent 993058825a
commit 14e03a7f4b

View file

@ -328,7 +328,8 @@ class InAppYouTubeExtractor {
(bestProgressive == null || bestManifest.height > bestProgressive.height)
val combinedUrl = if (bestCombinedIsManifest) {
bestManifest.manifestUrl
bestManifest.selectedVariantUrl
} else {
bestProgressive?.url
}