passing headers to setDataSource when network video
This commit is contained in:
parent
f340025a09
commit
49cd5b6d01
@ -254,7 +254,7 @@ public class ReactVideoView extends ScalableVideoView implements MediaPlayer.OnP
|
|||||||
headers.putAll(toStringMap(mRequestHeaders));
|
headers.putAll(toStringMap(mRequestHeaders));
|
||||||
}
|
}
|
||||||
|
|
||||||
setDataSource(uriString);
|
setDataSource(mThemedReactContext, parsedUrl, headers);
|
||||||
} else if (isAsset) {
|
} else if (isAsset) {
|
||||||
if (uriString.startsWith("content://")) {
|
if (uriString.startsWith("content://")) {
|
||||||
Uri parsedUrl = Uri.parse(uriString);
|
Uri parsedUrl = Uri.parse(uriString);
|
||||||
|
Loading…
Reference in New Issue
Block a user