From 322d7e993dd79b312a1105555d9f8fe06b12e3e2 Mon Sep 17 00:00:00 2001 From: EETVApps <168638691+EETVApps@users.noreply.github.com> Date: Fri, 28 Jun 2024 10:43:55 +0100 Subject: [PATCH] fix(android): added setAllowChunklessPreparation to HlsMediaSource.Factory to allow build success on projects without HLS support (#3948) (#3950) Co-authored-by: Darren Taft --- .../java/androidx/media3/exoplayer/hls/HlsMediaSource.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/android/src/main/java/androidx/media3/exoplayer/hls/HlsMediaSource.java b/android/src/main/java/androidx/media3/exoplayer/hls/HlsMediaSource.java index 69f11f1f..478bcaee 100644 --- a/android/src/main/java/androidx/media3/exoplayer/hls/HlsMediaSource.java +++ b/android/src/main/java/androidx/media3/exoplayer/hls/HlsMediaSource.java @@ -30,5 +30,9 @@ public class HlsMediaSource { public MediaSource createMediaSource(MediaItem mediaItem) { return null; } + + public Factory setAllowChunklessPreparation(boolean allowChunklessPreparation) { + return this; + } } }