mirror of
https://github.com/Monibuca/plugin-rtsp.git
synced 2025-09-26 19:51:14 +08:00
增加强制指定拉流协议的配置
This commit is contained in:
@@ -112,7 +112,9 @@ func (conf *RTSPConfig) OnPacketRTP(ctx *gortsplib.ServerHandlerOnPacketRTPCtx)
|
||||
if p, ok := conf.Load(ctx.Session); ok {
|
||||
switch v := p.(type) {
|
||||
case *RTSPPublisher:
|
||||
v.Tracks[ctx.TrackID].WriteRTPPack(ctx.Packet)
|
||||
if v.Tracks[ctx.TrackID] != nil {
|
||||
v.Tracks[ctx.TrackID].WriteRTPPack(ctx.Packet)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user