implement server TLS support (RTSPS)

This commit is contained in:
aler9
2020-12-13 19:18:15 +01:00
parent c11f056530
commit aaae3b45a7
7 changed files with 334 additions and 35 deletions

View File

@@ -27,8 +27,8 @@ func ParseURL(s string) (*URL, error) {
return nil, err
}
if u.Scheme != "rtsp" {
return nil, fmt.Errorf("wrong scheme")
if u.Scheme != "rtsp" && u.Scheme != "rtsps" {
return nil, fmt.Errorf("unsupported scheme '%s'", u.Scheme)
}
return (*URL)(u), nil