Skip to content

Commit

Permalink
fix: local cache resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
lovegaoshi committed Mar 1, 2024
1 parent e61fe19 commit f7cc2ad
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,8 @@ private MediaSource buildMediaSource(Uri uri, String overrideExtension, DrmSessi
);
break;
case CONTENT_TYPE_OTHER:
if (RNVSimpleCache.INSTANCE.getCacheDataSourceFactory() == null) {
if (uri.toString().startsWith("file://") ||
RNVSimpleCache.INSTANCE.getCacheDataSourceFactory() == null) {
mediaSourceFactory = new ProgressiveMediaSource.Factory(
mediaDataSourceFactory
);
Expand Down

0 comments on commit f7cc2ad

Please sign in to comment.