mirror of
https://github.com/Monibuca/plugin-rtmp.git
synced 2025-09-27 03:58:28 +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)
|
var RTMPPlugin = InstallPlugin(conf)
|
||||||
|
|
||||||
func filterStreams() (ss []*Stream) {
|
func filterStreams() (ss []*Stream) {
|
||||||
Streams.RLock()
|
Streams.Range(func(key string, s *Stream) {
|
||||||
defer Streams.RUnlock()
|
|
||||||
for _, s := range Streams.Map {
|
|
||||||
switch s.Publisher.(type) {
|
switch s.Publisher.(type) {
|
||||||
case *RTMPReceiver, *RTMPPuller:
|
case *RTMPReceiver, *RTMPPuller:
|
||||||
ss = append(ss, s)
|
ss = append(ss, s)
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user