mirror of
https://github.com/Monibuca/plugin-rtsp2.git
synced 2025-09-27 03:55:52 +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() {
|
func (p *RTSPPublisher) setTracks() {
|
||||||
for _, m := range p.Conn.Medias {
|
for _, m := range p.Conn.Medias {
|
||||||
|
if m.Direction != core.DirectionRecvonly {
|
||||||
|
continue
|
||||||
|
}
|
||||||
for _, c := range m.Codecs {
|
for _, c := range m.Codecs {
|
||||||
var handler core.HandlerFunc
|
var handler core.HandlerFunc
|
||||||
switch c.Name {
|
switch c.Name {
|
||||||
|
Reference in New Issue
Block a user