| rjw | 87753e6 | 2022-05-17 16:03:18 +0800 | [diff] [blame] | 1 | #ifndef LYNQ_RTP_H |
| 2 | #define LYNQ_RTP_H |
| 3 | |
| 4 | #ifdef __cplusplus |
| 5 | extern "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 | |
| 12 | typedef enum{ |
| 13 | RTP_CLIENT = 0, |
| 14 | RTP_SERVER =1, |
| 15 | }LYNQ_Rtp_Mode; |
| 16 | |
| 17 | int lynq_set_rtp_mode_media_play(const LYNQ_Rtp_Mode rtp_mode); |
| 18 | int lynq_set_rtp_ip_media_play(LYNQ_Rtp_Mode rtp_mode,const char* ip,const int ip_length); |
| 19 | int lynq_set_rtp_port_media_play(LYNQ_Rtp_Mode rtp_mode,const int port); |
| 20 | int 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 | |
| 22 | int lynq_get_rtp_ip_media_play(const LYNQ_Rtp_Mode rtp_mode, char* ip, const int ip_length); |
| 23 | int lynq_get_rtp_port_media_play(LYNQ_Rtp_Mode rtp_mode,int* port); |
| 24 | int lynq_get_rtp_param_media_play(LYNQ_Rtp_Mode rtp_mode,char *file_address,int* clock_rate,int* channels,int* latency); |
| 25 | |
| 26 | int lynq_start_rtp_server_media_play(); |
| 27 | int lynq_stop_rtp_server_media_play(); |
| 28 | |
| 29 | |
| 30 | #ifdef __cplusplus |
| 31 | } |
| 32 | #endif |
| 33 | |
| 34 | #endif |