This commit is contained in:
freearhey
2026-05-02 13:29:34 +03:00
parent 6826742c6b
commit 8f7940c8ca
8 changed files with 160 additions and 78 deletions

View File

@@ -18,7 +18,7 @@ import fs from 'node:fs'
export function isURI(string: string): boolean {
try {
const url = new URL(string)
return /^(http:|https:|mmsh:|rtsp:|rtmp:)/.test(url.protocol)
return /^(http:|https:|mmsh:|rtsp:|rtmp:|srt:|rtp:|udp:)/.test(url.protocol)
} catch {
return false
}