Feat/add rtsp support (#3677)

* feat(android) : add rtsp support
This commit is contained in:
Olivier Bouillet
2024-04-16 10:41:39 +02:00
committed by GitHub
parent 336b9f0220
commit 2285eba8f0
7 changed files with 34 additions and 4 deletions

View File

@@ -146,7 +146,7 @@ const Video = forwardRef<VideoRef, ReactVideoProps>(
if (!uri) {
console.log('Trying to load empty source');
}
const isNetwork = !!(uri && uri.match(/^https?:/));
const isNetwork = !!(uri && uri.match(/^(rtp|rtsp|http|https):/));
const isAsset = !!(
uri &&
uri.match(