webrtc-streamer icon indicating copy to clipboard operation
webrtc-streamer copied to clipboard

Webrtc integrated play RTSP

Open bingjue123 opened this issue 1 year ago • 4 comments

I am testing Webrtc-streamer to play RTSP video streams;

The RSTP video stream of live video can be played normally, and the video stream address is as follows: "rtsp://admin:[email protected]:554/dac/realplay/2E691C9D-2E85-4A70-9CBA-482CF5461F9C1/MAIN/TCP?streamform=rtp"

However, the RSTP video stream that plays the video playback cannot be played normally, and the video stream address is as follows: "rtsp://admin:[email protected]:554/dac/playback/camera/2E691C9D-2E85-4A70-9CBA-482CF5461F9C1/MAIN/TCP?starttime=20240217T050658Z&endtime=20240217T061853Z&name=00000004992000000&size=1064651716&streamform=rtp" image 提示

bingjue123 avatar Feb 18 '24 07:02 bingjue123

In VLC test RTSP address can be played normally

bingjue123 avatar Feb 18 '24 07:02 bingjue123

Hi @bingjue123,

Only starttime & ntptime are decoded from rtsp url. Increasing loglevel should help you. It send a first PLAY, then a PAUSE, then a 2nd PLAY, I don't really understand why not just send PLAY with starttime... To debug you could use live555helpertest

Best Regards, Michel.

mpromonet avatar Feb 18 '24 10:02 mpromonet

This is the RTSP returned by the monitor interface, and I can't change it; image

bingjue123 avatar Feb 19 '24 01:02 bingjue123

try changing & to ? in url, it should work Result: rtsp://admin:[email protected]:554/dac/playback/camera/2E691C9D-2E85-4A70-9CBA-482CF5461F9C1/MAIN/TCP?starttime=20240217T050658Z?endtime=20240217T061853Z?name=00000004992000000?size=1064651716?streamform=rtp

marcelimati avatar Mar 22 '24 07:03 marcelimati