Replies: 1 comment 1 reply
-
Hi @aler9 , sorry for insisting, but I would like to try creating a feature to do this. I would like to create a new path when receiving an RTSP call. I tried creating it in the method func (m *Manager) authenticateHTTP(req *Request) error { before authentication. But it doesn't work; it seems to restart the application's context and cancels the RTSP call. func (m *Server) createChannelHTTP() error { pathJson := fmt.Sprintf({ "name": "%s", "source" : "rtsp://xxxx:[email protected]:8554/%s" }, confName, confName) var p conf.OptionalPath //a.mutex.Lock() newConf := m.Conf.Clone() err = newConf.AddPath(confName, &p) err = newConf.Validate() m.Conf = newConf return nil |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
Is there a way to automatically register a new channel if it doesn't already exist? For example, when attempting to access the following RTSP URL:
rtsp://18.18.18.18:8554/channel1?user=x&pass=y&ip=18.18.18.18&port=8554&chan=Streaming/Channels/301
Thanks in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions