diff --git a/src/Video.tsx b/src/Video.tsx index 09de1742..bf4824d7 100644 --- a/src/Video.tsx +++ b/src/Video.tsx @@ -154,7 +154,12 @@ const Video = forwardRef( const isLocalAssetFile = typeof _source === 'number' || - ('uri' in _source && typeof _source.uri === 'number'); + ('uri' in _source && typeof _source.uri === 'number') || + ('uri' in _source && + typeof _source.uri === 'string' && + (_source.uri.startsWith('file://') || + _source.uri.startsWith('content://') || + _source.uri.startsWith('.'))); const resolvedSource = resolveAssetSourceForVideo(_source); let uri = resolvedSource.uri || ''; @@ -168,7 +173,7 @@ const Video = forwardRef( const isAsset = !!( uri && uri.match( - /^(assets-library|ipod-library|file|content|ms-appx|ms-appdata):/, + /^(assets-library|ipod-library|file|content|ms-appx|ms-appdata|asset):/, ) );