Merge pull request #212 from radev/master
Allow to use content:// schema as source.
This commit is contained in:
commit
1c07048b7b
@ -144,7 +144,12 @@ public class ReactVideoView extends ScalableVideoView implements MediaPlayer.OnP
|
|||||||
|
|
||||||
setDataSource(mThemedReactContext, parsedUrl, headers);
|
setDataSource(mThemedReactContext, parsedUrl, headers);
|
||||||
} else if (isAsset) {
|
} else if (isAsset) {
|
||||||
|
if (uriString.startsWith("content://")) {
|
||||||
|
Uri parsedUrl = Uri.parse(uriString);
|
||||||
|
setDataSource(mThemedReactContext, parsedUrl);
|
||||||
|
} else {
|
||||||
setDataSource(uriString);
|
setDataSource(uriString);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
setRawData(mThemedReactContext.getResources().getIdentifier(
|
setRawData(mThemedReactContext.getResources().getIdentifier(
|
||||||
uriString,
|
uriString,
|
||||||
|
Loading…
Reference in New Issue
Block a user