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) {
return uriString.startsWith("http://")
|| uriString.startsWith("https://")
|| uriString.startsWith("content://")
|| uriString.startsWith("file://")
|| uriString.startsWith("asset://");
String lowerCaseUri = uriString.toLowerCase();
return lowerCaseUri.startsWith("http://")
|| lowerCaseUri.startsWith("https://")
|| lowerCaseUri.startsWith("content://")
|| lowerCaseUri.startsWith("file://")
|| lowerCaseUri.startsWith("asset://");
}
private @ResizeMode.Mode int convertToIntDef(String resizeModeOrdinalString) {