rtsp.c File Reference

Include dependency graph for rtsp.c:


Data Structures

struct  rtsp_client_es_t
struct  rtsp_client_t
struct  media_es_t
struct  vod_media_t
struct  vod_sys_t
struct  rtsp_cmd_t

Defines

#define HOST_TEXT   N_( "RTSP host address" )
#define HOST_LONGTEXT
#define THROTTLE_TEXT   N_( "Maximum number of connections" )
#define THROTTLE_LONGTEXT
#define RAWMUX_TEXT   N_( "MUX for RAW RTSP transport" )
#define SESSION_TIMEOUT_TEXT
#define SESSION_TIMEOUT_LONGTEXT

Typedefs

typedef struct media_es_t media_es_t

Enumerations

enum  rtsp_cmd_type_t {
  RTSP_CMD_TYPE_NONE, RTSP_CMD_TYPE_PLAY, RTSP_CMD_TYPE_PAUSE, RTSP_CMD_TYPE_STOP,
  RTSP_CMD_TYPE_SEEK, RTSP_CMD_TYPE_REWIND, RTSP_CMD_TYPE_FORWARD, RTSP_CMD_TYPE_ADD,
  RTSP_CMD_TYPE_DEL
}

Functions

static int Open (vlc_object_t *)
 Probes and initializes.
static void Close (vlc_object_t *)
 Releases resources.
int vlc_entry__main (module_t *p_module)
const char * vlc_entry_license__main (void)
static vod_media_tMediaNew (vod_t *, const char *, input_item_t *)
static void MediaDel (vod_t *, vod_media_t *)
static void MediaAskDel (vod_t *, vod_media_t *)
static int MediaAddES (vod_t *, vod_media_t *, es_format_t *)
static void MediaDelES (vod_t *, vod_media_t *, es_format_t *)
static void * CommandThread (vlc_object_t *p_this)
static void CommandPush (vod_t *, rtsp_cmd_type_t, vod_media_t *, const char *psz_session, double f_arg, const char *psz_arg)
static rtsp_client_tRtspClientNew (vod_media_t *, char *)
static rtsp_client_tRtspClientGet (vod_media_t *, const char *)
static void RtspClientDel (vod_media_t *, rtsp_client_t *)
static int RtspCallback (httpd_callback_sys_t *, httpd_client_t *, httpd_message_t *, const httpd_message_t *)
static int RtspCallbackES (httpd_callback_sys_t *, httpd_client_t *, httpd_message_t *, const httpd_message_t *)
static char * SDPGenerate (const vod_media_t *, httpd_client_t *cl)
static void sprintf_hexa (char *s, uint8_t *p_data, int i_data)
static float ParseNPT (const char *str)

Define Documentation

#define HOST_LONGTEXT

Value:

N_( \
    "This defines the address, port and path the RTSP VOD server will listen " \
    "on.\nSyntax is address:port/path. The default is to listen on all "\
    "interfaces (address 0.0.0.0), on port 554, with no path.\nTo listen " \
    "only on the local interface, use \"localhost\" as address." )

#define HOST_TEXT   N_( "RTSP host address" )

#define RAWMUX_TEXT   N_( "MUX for RAW RTSP transport" )

#define SESSION_TIMEOUT_LONGTEXT

Value:

N_( "Defines what timeout option to add " \
    "to the RTSP session ID string. Setting it to a negative number removes " \
    "the timeout option entirely. This is needed by some IPTV STBs (such as " \
    "those made by HansunTech) which get confused by it. The default is 5." )

#define SESSION_TIMEOUT_TEXT

Value:

N_( "Sets the timeout option in the RTSP " \
    "session string" )

#define THROTTLE_LONGTEXT

Value:

N_( "This limits the maximum number of clients " \
    "that can connect to the RTSP VOD. 0 means no limit."  )

#define THROTTLE_TEXT   N_( "Maximum number of connections" )


Typedef Documentation

typedef struct media_es_t media_es_t


Enumeration Type Documentation

Enumerator:
RTSP_CMD_TYPE_NONE 
RTSP_CMD_TYPE_PLAY 
RTSP_CMD_TYPE_PAUSE 
RTSP_CMD_TYPE_STOP 
RTSP_CMD_TYPE_SEEK 
RTSP_CMD_TYPE_REWIND 
RTSP_CMD_TYPE_FORWARD 
RTSP_CMD_TYPE_ADD 
RTSP_CMD_TYPE_DEL 


Function Documentation

static void Close ( vlc_object_t p_this  )  [static]

Releases resources.

Close the module.

Destroys the X11 window.

Disconnect from the X server.

Close a SDL video output.

It destroys an OpenGL vout display.

Terminate a vout display created by Open.

It destroyes a Direct3D vout display.

Terminate an output method created by Open.

Release the drawable.

Close a libcaca video output.

Close a aa video output method.

Close the filter.

Terminate a splitter module.

This function closes a clone video splitter module.

Common close function.

Releases allocate resources.

Close: Destructor.

Parameters:
p_this pointer to this filter object
p_this,: the filter object

static void CommandPush ( vod_t p_vod,
rtsp_cmd_type_t  i_type,
vod_media_t p_media,
const char *  psz_session,
double  f_arg,
const char *  psz_arg 
) [static]

static void * CommandThread ( vlc_object_t p_this  )  [static]

static int MediaAddES ( vod_t p_vod,
vod_media_t p_media,
es_format_t p_fmt 
) [static]

static void MediaAskDel ( vod_t p_vod,
vod_media_t p_media 
) [static]

References CommandPush(), and RTSP_CMD_TYPE_DEL.

static void MediaDel ( vod_t p_vod,
vod_media_t p_media 
) [static]

static void MediaDelES ( vod_t p_vod,
vod_media_t p_media,
es_format_t p_fmt 
) [static]

static vod_media_t * MediaNew ( vod_t p_vod,
const char *  psz_name,
input_item_t p_item 
) [static]

static int Open ( vlc_object_t p_this  )  [static]

Probes and initializes.

Status of this demuxer: Real Media format -----------------.

Basic chorus/flanger/delay audio filter This implements a variable delay filter for VLC.

Todo:

  • Improve CDDB support (non-blocking, cache, .

Open the module.

Create an X11 window.

Probe the X server.

This function initializes SDL vout method.

It creates an OpenGL vout display.

This function allocates and initialize the DirectX vout display.

It creates a Direct3D vout display.

This function allocates and initializes a FB vout method.

Find the drawable set by libvlc application.

This function initializes libcaca vout method.

This function allocates and initializes a aa vout method.

This function allocates and initializes a Wall splitter module.

Open the filter.

This function allocates and initializes a Clone splitter module.

Open: initialize and create stuff.

Connect to the sftp server and ask for a file.

Parameters:
p_this,: the vlc_object
Returns:
VLC_SUCCESS if everything was fine
Parameters:
p_this 
p_this,: the filter object
Returns:
VLC_SUCCESS or vlc error codes

Todo:
Reinstate meta codec name

static float ParseNPT ( const char *  str  )  [static]

static int RtspCallback ( httpd_callback_sys_t p_args,
httpd_client_t cl,
httpd_message_t answer,
const httpd_message_t query 
) [static]

static int RtspCallbackES ( httpd_callback_sys_t p_args,
httpd_client_t cl,
httpd_message_t answer,
const httpd_message_t query 
) [static]

static void RtspClientDel ( vod_media_t p_media,
rtsp_client_t p_rtsp 
) [static]

static rtsp_client_t * RtspClientGet ( vod_media_t p_media,
const char *  psz_session 
) [static]

static rtsp_client_t * RtspClientNew ( vod_media_t p_media,
char *  psz_session 
) [static]

static char * SDPGenerate ( const vod_media_t p_media,
httpd_client_t cl 
) [static]

static void sprintf_hexa ( char *  s,
uint8_t *  p_data,
int  i_data 
) [static]

References hex(), and i.

Referenced by Add(), and MediaAddES().

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 


Generated on Tue May 25 08:05:08 2010 for VLC by  doxygen 1.5.6