mirror of
https://github.com/Monibuca/plugin-rtmp.git
synced 2025-09-26 19:51:38 +08:00
fit engine update
This commit is contained in:
6
main.go
6
main.go
@@ -68,14 +68,12 @@ var conf = &RTMPConfig{
|
||||
var RTMPPlugin = InstallPlugin(conf)
|
||||
|
||||
func filterStreams() (ss []*Stream) {
|
||||
Streams.RLock()
|
||||
defer Streams.RUnlock()
|
||||
for _, s := range Streams.Map {
|
||||
Streams.Range(func(key string, s *Stream) {
|
||||
switch s.Publisher.(type) {
|
||||
case *RTMPReceiver, *RTMPPuller:
|
||||
ss = append(ss, s)
|
||||
}
|
||||
}
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user