fix(exoplayer): allow uri to high case
This commit is contained in:
parent
f31e47f360
commit
f4f9e28fb1
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user