mirror of
https://github.com/Monibuca/plugin-rtsp2.git
synced 2025-09-26 19:51:16 +08:00
fix: setTracks filter media
This commit is contained in:
@@ -27,6 +27,9 @@ func (p *RTSPPublisher) OnEvent(event any) {
|
||||
|
||||
func (p *RTSPPublisher) setTracks() {
|
||||
for _, m := range p.Conn.Medias {
|
||||
if m.Direction != core.DirectionRecvonly {
|
||||
continue
|
||||
}
|
||||
for _, c := range m.Codecs {
|
||||
var handler core.HandlerFunc
|
||||
switch c.Name {
|
||||
|
Reference in New Issue
Block a user