Add media filter for RTSP source #198

This commit is contained in:
Alexey Khit
2023-08-21 14:07:07 +03:00
parent f80f179e4c
commit 69a3a30a0e
3 changed files with 12 additions and 0 deletions
+1
View File
@@ -101,6 +101,7 @@ func rtspHandler(rawURL string) (core.Producer, error) {
if rawQuery != "" {
query := streams.ParseQuery(rawQuery)
conn.Backchannel = query.Get("backchannel") == "1"
conn.Media = query.Get("media")
conn.Transport = query.Get("transport")
}