Add note about IOException when using bigger setDataSource call

This commit is contained in:
Hampton Maxwell 2018-06-22 19:32:36 -07:00 committed by GitHub
parent bb2b3eb306
commit 448e57ba3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -253,6 +253,10 @@ public class ReactVideoView extends ScalableVideoView implements MediaPlayer.OnP
headers.putAll(toStringMap(mRequestHeaders)); headers.putAll(toStringMap(mRequestHeaders));
} }
/* According to https://github.com/react-native-community/react-native-video/pull/537
* there is an issue with this where it can cause a IOException.
* TODO: diagnose this exception and fix it
*/
setDataSource(mThemedReactContext, parsedUrl, headers); setDataSource(mThemedReactContext, parsedUrl, headers);
} else if (isAsset) { } else if (isAsset) {
if (uriString.startsWith("content://")) { if (uriString.startsWith("content://")) {