I sometimes have issues. I thought it was the loveance card, but even with an Iframe it sometimes stops and won’t restart until I restart the container.
When it works I get the following in the logs:
13:10:01.200 DBG [webrtc] new consumer url=fynn_camera
13:10:01.257 DBG [streams] probe producer url=rtsp://admin:[email protected]:88/videoMain
13:10:01.937 DBG [streams] start producer url=rtsp://admin:[email protected]:88/videoMain
TODO: webrtc ontrack &{mu:{w:{state:0 sema:0} writerSem:0 readerSem:0 readerCount:0 readerWait:0} id:2e1d963c-203a-4cf7-994f-799efdb66eb5 streamID:6Yk3m4hN69YNNYnrs2TMQucn00RLbshXrxgq payloadType:111 kind:1 ssrc:718835236 codec:{RTPCodecCapability:{MimeType:audio/opus ClockRate:48000 Channels:2 SDPFmtpLine:minptime=10;useinbandfec=1 RTCPFeedback:[{Type:transport-cc Parameter:}]} PayloadType:111 statsID:} params:{HeaderExtensions:[{URI:http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01 ID:4}] Codecs:[{RTPCodecCapability:{MimeType:audio/opus ClockRate:48000 Channels:2 SDPFmtpLine:minptime=10;useinbandfec=1 RTCPFeedback:[{Type:transport-cc Parameter:}]} PayloadType:111 statsID:}]} rid: receiver:0x400009a2a0 peeked:[144 239 1 224 250 229 74 247 42 216 142 36 190 222 0 1 65 0 1 0 120 11 228 193 54 236 197 141 140 73 70 153 4 197 170 237 146 231 99 74 58 24 152 238 98 203 96 255 108 27 41 0] peekedAttributes:map[0:0x400022ca00]}
So, instantly after the ‘new consumer’ entry it starts the stream. When it doesn’t work I get the following:
13:08:05.835 DBG [webrtc] new consumer url=fynn_camera
TODO: webrtc ontrack &{mu:{w:{state:0 sema:0} writerSem:0 readerSem:0 readerCount:0 readerWait:0} id:68bce349-6d72-4145-9b25-80013bb05a11 streamID:xL3JRwRR1X7GDJSuY49cDhli94jKg2jUOFvC payloadType:111 kind:1 ssrc:1048239277 codec:{RTPCodecCapability:{MimeType:audio/opus ClockRate:48000 Channels:2 SDPFmtpLine:minptime=10;useinbandfec=1 RTCPFeedback:[{Type:transport-cc Parameter:}]} PayloadType:111 statsID:} params:{HeaderExtensions:[{URI:http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01 ID:4}] Codecs:[{RTPCodecCapability:{MimeType:audio/opus ClockRate:48000 Channels:2 SDPFmtpLine:minptime=10;useinbandfec=1 RTCPFeedback:[{Type:transport-cc Parameter:}]} PayloadType:111 statsID:}]} rid: receiver:0x400007a960 peeked:[144 239 20 14 109 141 80 4 62 122 220 173 190 222 0 1 65 0 1 0 120 11 228 193 54 236 197 141 140 73 70 153 4 197 170 237 146 231 99 74 58 24 152 238 98 203 96 255 108 27 41 0] peekedAttributes:map[0:0x4000643b80]}
So the stream never starts.
I also got another error:
12:30:54.482 WRN [streams] start error=“parse "\xcb\x00\rK": net/url: invalid control character in URL” url=rtsp://admin:[email protected]:88/videoMain
The reason this is weird, is because it has never changed. I don’t understand why it does this.