From a56b4d148c2f06e7dc8a3f7c047a43dca8da57f5 Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Thu, 9 Feb 2023 13:53:06 +0200 Subject: [PATCH] Fixed android build error --- .../java/com/brentvatne/exoplayer/ReactExoplayerView.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java b/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java index 0acc0d00..00983c4e 100644 --- a/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java +++ b/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java @@ -806,7 +806,7 @@ class ReactExoplayerView extends FrameLayout implements } switch (type) { case CONTENT_TYPE_SS: - mediaSource = SsMediaSource.Factory( + mediaSource = new SsMediaSource.Factory( new DefaultSsChunkSource.Factory(mediaDataSourceFactory), buildDataSourceFactory(false) ).setDrmSessionManagerProvider(drmProvider) @@ -815,7 +815,7 @@ class ReactExoplayerView extends FrameLayout implements ).createMediaSource(mediaItem); break; case CONTENT_TYPE_DASH: - mediaSource = DashMediaSource.Factory( + mediaSource = new DashMediaSource.Factory( new DefaultDashChunkSource.Factory(mediaDataSourceFactory), buildDataSourceFactory(false) ).setDrmSessionManagerProvider(drmProvider) @@ -824,7 +824,7 @@ class ReactExoplayerView extends FrameLayout implements ).createMediaSource(mediaItem); break; case CONTENT_TYPE_HLS: - mediaSource = HlsMediaSource.Factory( + mediaSource = new HlsMediaSource.Factory( mediaDataSourceFactory ).setDrmSessionManagerProvider(drmProvider) .setLoadErrorHandlingPolicy( @@ -832,7 +832,7 @@ class ReactExoplayerView extends FrameLayout implements ).createMediaSource(mediaItem); break; case CONTENT_TYPE_OTHER: - mediaSource = ProgressiveMediaSource.Factory( + mediaSource = new ProgressiveMediaSource.Factory( mediaDataSourceFactory ).setDrmSessionManagerProvider(drmProvider) .setLoadErrorHandlingPolicy(