1 /*****************************************************************************
2 * rtp.h: rtp stream output module header
3 *****************************************************************************
4 * Copyright (C) 2003-2007 the VideoLAN team
5 * $Id: rtp.c 21407 2007-08-22 20:10:41Z courmisch $
7 * Authors: Laurent Aimar <fenrir@via.ecp.fr>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23 *****************************************************************************/
25 typedef struct rtsp_stream_t rtsp_stream_t;
26 typedef struct rtsp_stream_id_t rtsp_stream_id_t;
28 rtsp_stream_t *RtspSetup( sout_stream_t *p_stream, const vlc_url_t *url );
29 void RtspUnsetup( rtsp_stream_t *rtsp );
31 rtsp_stream_id_t *RtspAddId( rtsp_stream_t *rtsp, sout_stream_id_t *sid,
33 const char *dst, int ttl,
34 unsigned loport, unsigned hiport );
35 void RtspDelId( rtsp_stream_t *rtsp, rtsp_stream_id_t * );
37 char *SDPGenerate( const sout_stream_t *p_stream, const char *rtsp_url );
39 int rtp_add_sink( sout_stream_id_t *id, sout_access_out_t *access );
40 void rtp_del_sink( sout_stream_id_t *id, sout_access_out_t *access );