When playing RTSP source videos, black screen appears but no error is reported(web server and janus server all have no error)。some RTSP sources are correct,some not。
I used the standard IP cameras,they are all encoded by H.264,every one of them can be opened by VLC。
“It works with VLC” means nothing, VLC can open everything. The H.264 stack in browsers for WebRTC is much more picky, and may not be able to decode all H.264 streams. Make sure the baseline profile is advertised in the fmtp attribute and that should usually help decoding it anyway, but it’s not a guarantee.
Hello, Thank you very much for your response. I have found the problem and solved it.
The fmtp attributes of the cameras I used are the same.
The problem is that some cameras video streams of the I frame interval is set too high. I turned it down,and then RTSP display in web take effect.