|
Revision 63dbcdb802838799d9aa53d0106d9fbf12baca35, 1.9 kB
(checked in by Rémi Denis-Courmont <rdenis@simphalempin.com>, 2 months ago)
|
RTP: open the RTCP port
At least, we won't be sending ICMP errors from now.
|
- Property mode set to
100644
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
typedef struct rtp_pt_t rtp_pt_t; |
|---|
| 25 |
struct rtp_pt_t |
|---|
| 26 |
{ |
|---|
| 27 |
void *(*init) (demux_t *); |
|---|
| 28 |
void (*destroy) (demux_t *, void *); |
|---|
| 29 |
void (*decode) (demux_t *, void *, block_t *); |
|---|
| 30 |
uint32_t frequency; |
|---|
| 31 |
uint8_t number; |
|---|
| 32 |
}; |
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 |
typedef struct rtp_session_t rtp_session_t; |
|---|
| 36 |
rtp_session_t *rtp_session_create (demux_t *); |
|---|
| 37 |
void rtp_session_destroy (demux_t *, rtp_session_t *); |
|---|
| 38 |
void rtp_receive (demux_t *, rtp_session_t *, block_t *); |
|---|
| 39 |
int rtp_add_type (demux_t *demux, rtp_session_t *ses, const rtp_pt_t *pt); |
|---|
| 40 |
|
|---|
| 41 |
|
|---|
| 42 |
|
|---|
| 43 |
struct demux_sys_t |
|---|
| 44 |
{ |
|---|
| 45 |
rtp_session_t *session; |
|---|
| 46 |
struct srtp_session_t *srtp; |
|---|
| 47 |
int fd; |
|---|
| 48 |
int rtcp_fd; |
|---|
| 49 |
|
|---|
| 50 |
unsigned caching; |
|---|
| 51 |
unsigned timeout; |
|---|
| 52 |
uint8_t max_src; |
|---|
| 53 |
uint16_t max_dropout; |
|---|
| 54 |
uint16_t max_misorder; |
|---|
| 55 |
bool autodetect; |
|---|
| 56 |
bool framed_rtp; |
|---|
| 57 |
}; |
|---|
| 58 |
|
|---|