Webrtc playback error, code termination
/usr/local/go/src/runtime/panic.go:88 (0x10348c4) goPanicIndex: panic(boundsError{x: int64(x), signed: true, y: y, code: boundsIndex}) /Users/mac/go/pkg/mod/github.com/deepch/[email protected]/codec/h264parser/parser.go:666 (0x16f240b) CodecData.SPS: return self.RecordInfo.SPS[0] /Users/mac/Project/goland/RTSPtoWebRTC/config.go:186 (0x16f20f3) (*ConfigST).coGe: if codecVideo.SPS() != nil && codecVideo.PPS() != nil && len(codecVideo.SPS()) > 0 && len(codecVideo.PPS()) > 0 { /Users/mac/Project/goland/RTSPtoWebRTC/http.go:74 (0x16f3899) HTTPAPIServerStreamCodec: codecs := Config.coGe(c.Param("uuid")) /Users/mac/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165 (0x16c959a) (*Context).Next: c.handlersc.index /Users/mac/Project/goland/RTSPtoWebRTC/http.go:170 (0x16f6290) CORSMiddleware.func1: c.Next() /Users/mac/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165 (0x16c959a) (*Context).Next: c.handlersc.index /Users/mac/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:99 (0x16deb08) CustomRecoveryWithWriter.func1: c.Next() /Users/mac/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165 (0x16c959a) (*Context).Next: c.handlersc.index /Users/mac/go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:241 (0x16ddc44) LoggerWithConfig.func1: c.Next() /Users/mac/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165 (0x16c959a) (*Context).Next: c.handlersc.index /Users/mac/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:489 (0x16d45b7) (*Engine).handleHTTPRequest: c.Next() /Users/mac/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:445 (0x16d3d1b) (*Engine).ServeHTTP: engine.handleHTTPRequest(c) /usr/local/go/src/net/http/server.go:2843 (0x12f5582) serverHandler.ServeHTTP: handler.ServeHTTP(rw, req) /usr/local/go/src/net/http/server.go:1925 (0x12f0c8c) (*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req) /usr/local/go/src/runtime/asm_amd64.s:1374 (0x106c4c0) goexit: BYTE $0x90 // NOP
I tested Haikang series, Dahua series and Huawei series cameras respectively; Haikang and Dahua play normally. When I play Huawei RTSP, the code stops running
make access to your camera via the Internet.
I tested Haikang series, Dahua series and Huawei series cameras respectively; Haikang and Dahua play normally. When I play Huawei RTSP, the code stops running
maybe you should check your sps,maybe the rtsp sdp does not contain sps info,then you crash,if you need some help,you can ask me