[vlc-devel] quicktime player playback over rtsp

Martin Lindhe martin at startwars.org
Tue Jan 15 12:35:38 CET 2008


Hello, this patch "fixes" playback in quicktime player, using vlc as 
rtsp server.
However i do not suggest to apply it as is, as it's not a proper fix to 
the problem.

The problem is that quicktime player sends the following RTSP header, 
where vlc don't like the "Range" value being present.

PLAY rtsp://10.10.10.240:5554/bc106 RTSP/1.0
CSeq: 4
Range: npt=0.000000-
x-prebuffer: maxtime=2.000000
Session: 4f6d09539d6d398e
User-Agent: QuickTime/7.3 (qtver=7.3;os=Windows NT 5.1Service Pack 2)


--- a/rtsp.c.org
+++ b/rtsp.c
@@ -597,11 +597,6 @@ static int RtspHandler( rtsp_stream_t *rtsp, 
rtsp_stream_id_t *id,
             answer->i_status = 200;
 
             psz_session = httpd_MsgGet( query, "Session" );
-            if( httpd_MsgGet( query, "Range" ) != NULL )
-            {
-                answer->i_status = 456; /* cannot seek */
-                break;
-            }
 
             vlc_mutex_lock( &rtsp->lock );
             ses = RtspClientGet( rtsp, psz_session );




More information about the vlc-devel mailing list