passing headers to setDataSource when network video

This commit is contained in:
Emrah Kaya 2018-06-09 23:04:31 +02:00
parent f340025a09
commit 49cd5b6d01

View File

@ -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);