mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
implement server TLS support (RTSPS)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user