From 49cd5b6d018e62e6ed148458d658c32d0035688a Mon Sep 17 00:00:00 2001 From: Emrah Kaya Date: Sat, 9 Jun 2018 23:04:31 +0200 Subject: [PATCH] passing headers to setDataSource when network video --- android/src/main/java/com/brentvatne/react/ReactVideoView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/brentvatne/react/ReactVideoView.java b/android/src/main/java/com/brentvatne/react/ReactVideoView.java index d265a1a1..3d3968ff 100644 --- a/android/src/main/java/com/brentvatne/react/ReactVideoView.java +++ b/android/src/main/java/com/brentvatne/react/ReactVideoView.java @@ -254,7 +254,7 @@ public class ReactVideoView extends ScalableVideoView implements MediaPlayer.OnP headers.putAll(toStringMap(mRequestHeaders)); } - setDataSource(uriString); + setDataSource(mThemedReactContext, parsedUrl, headers); } else if (isAsset) { if (uriString.startsWith("content://")) { Uri parsedUrl = Uri.parse(uriString);