Unexpected RTSP Connection Disconnection
I'm using RTSPtoWeb as the media server for my web application. A few weeks ago, my client reported that 352x240 cameras weren't displaying on the WebRTC player in my React webapp.
After investigation, I discovered the root cause: the noVideo timer was being triggered because key frames weren't being received for 10 seconds, causing the connection to drop. However, this particular camera only sends key frames via RTSP, and the same RTSP URL works perfectly in VLC Player.
Root Cause in RTSPv2 Client (VDK)
The issue stems from an incorrect condition in the IsKeyFrame detection logic within the vdk library's RTSPv2 client. I've identified and fixed this problem in a pull request:
Fix: deepch/vdk#122
Once this pull request is merged, RTSPtoWeb should update to the latest version of the library to resolve this disconnection issue.