(session *rtsp.SubSession)
| 73 | } |
| 74 | |
| 75 | func (group *Group) HandleNewRtspSubSessionDescribe(session *rtsp.SubSession) (ok bool, sdp []byte) { |
| 76 | Log.Debugf("[%s] [%s] rtsp sub describe.", group.UniqueKey, session.UniqueKey()) |
| 77 | |
| 78 | group.mutex.Lock() |
| 79 | defer group.mutex.Unlock() |
| 80 | |
| 81 | group.rtspSubSessionSet[session] = struct{}{} |
| 82 | |
| 83 | if group.sdpCtx == nil { |
| 84 | Log.Warnf("[%s] [%s] rtsp subSession describe but sdp not exist.", group.UniqueKey, session.UniqueKey()) |
| 85 | |
| 86 | return true, nil |
| 87 | } |
| 88 | return true, group.sdpCtx.RawSdp |
| 89 | } |
| 90 | |
| 91 | func (group *Group) HandleNewRtspSubSessionPlay(session *rtsp.SubSession) { |
| 92 | Log.Debugf("[%s] [%s] rtsp sub play.", group.UniqueKey, session.UniqueKey()) |
no test coverage detected