fix(exoplayer): allow uri to high case

This commit is contained in:
olivier bouillet 2022-09-14 21:58:39 +02:00
parent f31e47f360
commit f4f9e28fb1

View File

@ -386,11 +386,12 @@ public class ReactExoplayerViewManager extends ViewGroupManager<ReactExoplayerVi
} }
private boolean startsWithValidScheme(String uriString) { private boolean startsWithValidScheme(String uriString) {
return uriString.startsWith("http://") String lowerCaseUri = uriString.toLowerCase();
|| uriString.startsWith("https://") return lowerCaseUri.startsWith("http://")
|| uriString.startsWith("content://") || lowerCaseUri.startsWith("https://")
|| uriString.startsWith("file://") || lowerCaseUri.startsWith("content://")
|| uriString.startsWith("asset://"); || lowerCaseUri.startsWith("file://")
|| lowerCaseUri.startsWith("asset://");
} }
private @ResizeMode.Mode int convertToIntDef(String resizeModeOrdinalString) { private @ResizeMode.Mode int convertToIntDef(String resizeModeOrdinalString) {