Unverified Commit 448e57ba authored by Hampton Maxwell's avatar Hampton Maxwell Committed by GitHub
Browse files

Add note about IOException when using bigger setDataSource call

parent bb2b3eb3
Loading
Loading
Loading
Loading
+4 −0
Changes for android/src/main/java/com/brentvatne/react/ReactVideoView.java: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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://")) {