blob: 01cbe51ebda560d0af336456e4b77468e3664acf [file] [log] [blame]
rjw87753e62022-05-17 16:03:18 +08001#ifndef LYNQ_RTP_H
2#define LYNQ_RTP_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#define MAX_IP_LENGTH 128
9#define MAX_EN_CODING_NAME_LENGTH 32
10#define MAX_CMD_SIZE 512
11
12typedef enum{
13 RTP_CLIENT = 0,
14 RTP_SERVER =1,
15}LYNQ_Rtp_Mode;
16
17int lynq_set_rtp_mode_media_play(const LYNQ_Rtp_Mode rtp_mode);
18int lynq_set_rtp_ip_media_play(LYNQ_Rtp_Mode rtp_mode,const char* ip,const int ip_length);
19int lynq_set_rtp_port_media_play(LYNQ_Rtp_Mode rtp_mode,const int port);
20int lynq_set_rtp_param_media_play(LYNQ_Rtp_Mode rtp_mode,char *file_address,const int clock_rate,const int channels,const int latency);
21
22int lynq_get_rtp_ip_media_play(const LYNQ_Rtp_Mode rtp_mode, char* ip, const int ip_length);
23int lynq_get_rtp_port_media_play(LYNQ_Rtp_Mode rtp_mode,int* port);
24int lynq_get_rtp_param_media_play(LYNQ_Rtp_Mode rtp_mode,char *file_address,int* clock_rate,int* channels,int* latency);
25
26int lynq_start_rtp_server_media_play();
27int lynq_stop_rtp_server_media_play();
28
29
30#ifdef __cplusplus
31}
32#endif
33
34#endif