[ANDROID] Fix reformating code that do not belong to this feature

This commit is contained in:
Axel Vencatareddy 2022-11-16 13:45:18 +01:00
parent c789363c5b
commit 0d70c53f53

View File

@ -790,40 +790,32 @@ class ReactExoplayerView extends FrameLayout implements
return new SsMediaSource.Factory(
new DefaultSsChunkSource.Factory(mediaDataSourceFactory),
buildDataSourceFactory(false)
)
.setDrmSessionManagerProvider(drmProvider)
.setLoadErrorHandlingPolicy(
).setDrmSessionManagerProvider(drmProvider)
.setLoadErrorHandlingPolicy(
config.buildLoadErrorHandlingPolicy(minLoadRetryCount)
)
.createMediaSource(mediaItem);
).createMediaSource(mediaItem);
case C.TYPE_DASH:
return new DashMediaSource.Factory(
new DefaultDashChunkSource.Factory(mediaDataSourceFactory),
buildDataSourceFactory(false)
)
.setDrmSessionManagerProvider(drmProvider)
.setLoadErrorHandlingPolicy(
).setDrmSessionManagerProvider(drmProvider)
.setLoadErrorHandlingPolicy(
config.buildLoadErrorHandlingPolicy(minLoadRetryCount)
)
.createMediaSource(mediaItem);
).createMediaSource(mediaItem);
case C.TYPE_HLS:
return new HlsMediaSource.Factory(
mediaDataSourceFactory
)
.setDrmSessionManagerProvider(drmProvider)
.setLoadErrorHandlingPolicy(
).setDrmSessionManagerProvider(drmProvider)
.setLoadErrorHandlingPolicy(
config.buildLoadErrorHandlingPolicy(minLoadRetryCount)
)
.createMediaSource(mediaItem);
).createMediaSource(mediaItem);
case C.TYPE_OTHER:
return new ProgressiveMediaSource.Factory(
mediaDataSourceFactory
)
.setDrmSessionManagerProvider(drmProvider)
.setLoadErrorHandlingPolicy(
).setDrmSessionManagerProvider(drmProvider)
.setLoadErrorHandlingPolicy(
config.buildLoadErrorHandlingPolicy(minLoadRetryCount)
)
.createMediaSource(mediaItem);
).createMediaSource(mediaItem);
default: {
throw new IllegalStateException("Unsupported type: " + type);
}