diff rtsp.h @ 6112:3e5c6c575f69 libavformat

Add RTSP tunneling over HTTP Patch by Josh Allmann, joshua dot allmann at gmail dot com
author mstorsjo
date Tue, 08 Jun 2010 12:40:34 +0000
parents 7c2221a89902
children 68fba42e1dea
line wrap: on
line diff
--- a/rtsp.h	Tue Jun 08 12:26:51 2010 +0000
+++ b/rtsp.h	Tue Jun 08 12:40:34 2010 +0000
@@ -49,6 +49,15 @@
     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 @@
     /** 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;
 
 /**