deepch / RTSPtoWeb

RTSP Stream to WebBrowser
MIT License
1.33k stars 313 forks source link

Websocket message is not sending #469

Open Surekha95 opened 5 months ago

Surekha95 commented 5 months ago

I'm trying to send some web socket message when StreamChannelCodecs throws error, but it is not sending and written error as time="2024-06-06T17:44:17+05:30" level=error msg="write tcp 192.168.124.129:8084->192.168.124.128:63796: i/o timeout" call=Send channel=1 func=HTTPAPIServerStreamMSE module=http_mse stream=demo0

I have updated like this defer Storage.ClientDelete(c.Param("uuid"), cid, c.Param("channel")) codecs, err := Storage.StreamChannelCodecs(c.Param("uuid"), c.Param("channel")) if err != nil { requestLogger.WithFields(logrus.Fields{ "call": "StreamCodecs", }).Errorln(err.Error()) //sendErrorMessage(conn, requestLogger, "StreamCodecs") err := wsutil.WriteServerMessage(conn, ws.OpBinary, []byte{8}) if err != nil { requestLogger.WithFields(logrus.Fields{ "call": "Send", }).Errorln(err.Error()) } return }