MCPcopy
hub / github.com/q191201771/lal / HandleNewRtspSubSessionDescribe

Method HandleNewRtspSubSessionDescribe

pkg/logic/group__out_sub.go:75–89  ·  view source on GitHub ↗
(session *rtsp.SubSession)

Source from the content-addressed store, hash-verified

73}
74
75func (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
91func (group *Group) HandleNewRtspSubSessionPlay(session *rtsp.SubSession) {
92 Log.Debugf("[%s] [%s] rtsp sub play.", group.UniqueKey, session.UniqueKey())

Callers 1

Calls 1

UniqueKeyMethod · 0.65

Tested by

no test coverage detected