You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you need to understand why it is empty and not allow it to be empty.
if rtsp DESCRIBE not have sprop-sps sprop-pps sprop-parameter-sets 。The code copied by some people doesn't parse these contents and push the stream 。
update parser.go like this
`
func (self CodecData) SPS() []byte {
if len(self.RecordInfo.SPS) > 0 {
return self.RecordInfo.SPS[0]
} else {
return nil
}
}
why in your https://github.com/deepch/RTSPtoWebRTC/blob/master/config.go
if codecVideo.SPS() != nil && codecVideo.PPS() != nil && len(codecVideo.SPS()) > 0 && len(codecVideo.PPS()) > 0 {
//ok
//log.Println("Ok Video Ready to play")
}
`
if codecVideo.SPS() == nil is panic
CodecData SPS() index error
src file path
How can I fix this problem
thank you
The text was updated successfully, but these errors were encountered: