mirror of
https://github.com/AlexxIT/go2rtc.git
synced 2025-09-26 20:31:11 +08:00
Show all streams in list
This commit is contained in:
@@ -35,13 +35,14 @@ func Get(name string) *Stream {
|
||||
}
|
||||
|
||||
func All() map[string]interface{} {
|
||||
active := map[string]interface{}{}
|
||||
all := map[string]interface{}{}
|
||||
for name, stream := range streams {
|
||||
if stream.Active() {
|
||||
active[name] = stream
|
||||
}
|
||||
all[name] = stream
|
||||
//if stream.Active() {
|
||||
// all[name] = stream
|
||||
//}
|
||||
}
|
||||
return active
|
||||
return all
|
||||
}
|
||||
|
||||
var log zerolog.Logger
|
||||
|
Reference in New Issue
Block a user