diff options
author | Josh Allmann <joshua.allmann@gmail.com> | 2010-06-08 12:40:34 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-06-08 12:40:34 +0000 |
commit | f5d33f5241413c681dbf7e42208eb63ab791aa60 (patch) | |
tree | 036cafd7143c7811ddb13d7040aa1c7fbbd793d2 /libavformat/rtsp.h | |
parent | a26c3c211e558bf114731862c65b5cff6eb6203f (diff) | |
download | ffmpeg-f5d33f5241413c681dbf7e42208eb63ab791aa60.tar.gz |
Add RTSP tunneling over HTTP
Patch by Josh Allmann, joshua dot allmann at gmail dot com
Originally committed as revision 23536 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtsp.h')
-rw-r--r-- | libavformat/rtsp.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h index a28bb94bb2..d6460457a5 100644 --- a/libavformat/rtsp.h +++ b/libavformat/rtsp.h @@ -49,6 +49,15 @@ enum RTSPTransport { RTSP_TRANSPORT_NB }; +/** + * Transport mode for the RTSP data. This may be plain, or + * tunneled, which is done over HTTP. + */ +enum RTSPControlTransport { + RTSP_MODE_PLAIN, /**< Normal RTSP */ + RTSP_MODE_TUNNEL /**< RTSP over HTTP (tunneling) */ +}; + #define RTSP_DEFAULT_PORT 554 #define RTSP_MAX_TRANSPORTS 8 #define RTSP_TCP_MAX_PACKET_SIZE 1472 @@ -282,6 +291,9 @@ typedef struct RTSPState { /** Additional output handle, used when input and output are done * separately, eg for HTTP tunneling. */ URLContext *rtsp_hd_out; + + /** RTSP transport mode, such as plain or tunneled. */ + enum RTSPControlTransport control_transport; } RTSPState; /** |