From 448e57ba3fef071345e46f6f9f0772747ffb4147 Mon Sep 17 00:00:00 2001 From: Hampton Maxwell Date: Fri, 22 Jun 2018 19:32:36 -0700 Subject: [PATCH] Add note about IOException when using bigger setDataSource call --- .../src/main/java/com/brentvatne/react/ReactVideoView.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/android/src/main/java/com/brentvatne/react/ReactVideoView.java b/android/src/main/java/com/brentvatne/react/ReactVideoView.java index 8eabeff1..954130a1 100644 --- a/android/src/main/java/com/brentvatne/react/ReactVideoView.java +++ b/android/src/main/java/com/brentvatne/react/ReactVideoView.java @@ -253,6 +253,10 @@ public class ReactVideoView extends ScalableVideoView implements MediaPlayer.OnP 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); } else if (isAsset) { if (uriString.startsWith("content://")) {